Concepts
How Swarm AI connects AI agents to lab devices.
How It Works
Claude/Your App ──▶ Swarm Cloud ──▶ swarm-client ──▶ Devices
(MCP/API) (hosted) (in your lab) (physical)
- You ask Claude to control a device
- Claude calls Swarm AI via MCP
- Swarm Cloud routes the command to your lab
- swarm-client executes on the physical device
- Results flow back to Claude
Device IDs
Each device has a unique device_id set during swarm-client configuration:
lab1-shaker-01building-a-centrifugemy-preciseflex
Use these IDs when talking to Claude or calling the API.
Authentication
All access requires an API key:
- MCP: Configured in Claude Desktop/Code settings
- REST API: Pass in
X-API-Keyheader
Your API key is tied to your organization. You only see your own devices.
Security
- All traffic encrypted (HTTPS/WSS)
- Device commands execute locally in your lab
- Only commands and responses travel through Swarm Cloud
What's Next?
- Claude Desktop Setup - Connect Claude Desktop
- Claude Code Setup - Connect Claude Code
- swarm-client Setup - Set up on-premise connectivity