Troubleshooting
Common issues and solutions when working with Swarm AI.
Claude Desktop / Claude Code
Tools Not Appearing
Symptoms: Claude doesn't mention Swarm AI tools or says it can't control devices.
Solutions:
-
Check your config file - Verify the JSON is valid (no trailing commas):
{
"mcpServers": {
"swarm": {
"url": "https://swarm.cheshirelabs.io/mcp",
"transport": "streamable-http",
"headers": {
"X-API-Key": "your-api-key-here"
}
}
}
} -
Verify the URL - Must be exactly
https://swarm.cheshirelabs.io/mcp -
Check your API key - Ensure it's correct and active
-
Restart Claude - Config changes require a restart
-
Ask Claude directly:
"What MCP servers do you have access to?"
Authentication Errors
Symptoms: Claude says it can't authenticate or API key is invalid.
Solutions:
- Double-check your API key (no extra spaces or characters)
- Ensure the key is in the
headerssection, not at the top level - Contact us if your key may have expired
swarm-client
Connection Failed
Symptoms: swarm-client can't connect to Swarm Cloud.
Solutions:
-
Check network access:
curl https://swarm.cheshirelabs.io/healthShould return a success response.
-
Verify API key - Ensure
SWARM_API_KEYenvironment variable is set -
Check firewall - Ensure outbound HTTPS (443) is allowed
-
Review logs - swarm-client logs show connection details
Device Not Connecting
Symptoms: Device doesn't appear in swarm-client startup or device list.
Solutions:
-
Check physical connection:
- USB cable connected?
- Device powered on?
- Status lights normal?
-
Verify port/address:
- For USB: Check the port (COM3, /dev/ttyUSB0, etc.)
- For network: Ping the device IP
-
Check exclusivity:
- Close any other software using the device
- Only one process can access a serial port
-
Review config:
{
"device_id": "my-shaker",
"type": "shaker",
"driver": "inheco_thermoshake",
"config": {
"port": "COM3"
}
}
Frequent Disconnections
Symptoms: swarm-client repeatedly reconnects.
Solutions:
- Check network stability - Wired connection recommended
- Disable sleep mode - Ensure computer doesn't sleep
- Review logs - Look for specific error messages
- Check API key - Ensure it hasn't been revoked
Device Operations
"Device Not Found"
Symptoms: Claude or API says device doesn't exist.
Solutions:
- Check device_id spelling - IDs are case-sensitive
- List available devices:
"What devices are connected to Swarm AI?"
- Verify swarm-client is running - Device must be connected
"Device Not Initialized"
Symptoms: Operation fails because device needs initialization.
Solutions:
- Initialize the device:
"Initialize the shaker"
- Wait for completion - Initialization can take 10-30 seconds
- Check for errors - Some devices fail initialization if busy
Operation Timeout
Symptoms: Command takes too long and times out.
Solutions:
- Check device status - Is it physically responsive?
- Try again - Temporary network issues can cause timeouts
- Check swarm-client - Ensure it's still running and connected
- Reduce operation time - Very long operations may timeout
Operation Failed
Symptoms: Command returns an error from the device.
Solutions:
-
Check device state:
- Door closed? (for centrifuges)
- Plate present? (for sealers)
- Not already running?
-
Check parameters:
- Speed within range?
- Temperature valid?
- Duration reasonable?
-
Review device-specific errors - Error message often indicates the issue
Transporter Issues
"Position Not Found"
Symptoms: Transporter can't find a teachpoint.
Solutions:
- List teachpoints:
"What positions are saved for the robot?"
- Check name spelling - Teachpoint names are case-sensitive
- Create the position if it doesn't exist
Movement Errors
Symptoms: Robot won't move to position or errors during movement.
Solutions:
- Check for obstructions - Physical obstacles in path?
- Verify position is reachable - Within robot's workspace?
- Reduce speed - Complex movements may fail at high speed
- Re-initialize - After emergency stop, robot needs re-initialization
Teaching Mode Issues
Symptoms: Can't enable free mode or save positions.
Solutions:
- Ensure robot is initialized first
- Disable free mode before saving:
"Disable free mode" "Save current position as new_point"
- Check coordinate type - Use cartesian for pick/place positions
REST API
401 Unauthorized
Symptoms: API returns 401 error.
Solutions:
- Check
X-API-Keyheader is present - Verify API key is correct
- Ensure no extra whitespace in key
404 Not Found
Symptoms: API returns 404 for device operations.
Solutions:
- Verify device_id exists
- Check endpoint URL is correct
- Ensure swarm-client is running with that device
400 Bad Request
Symptoms: API returns 400 error.
Solutions:
- Check request body JSON is valid
- Verify all required parameters are present
- Ensure parameter values are within valid ranges
Getting Help
During the beta, we provide direct support:
- Contact us with your issue
- Include relevant logs and error messages
- We'll help diagnose and resolve the issue
For urgent issues with running lab operations, include:
- Device ID
- Operation attempted
- Error message received
- Time of occurrence