Running Agents
Caged supports any AI coding agent that can work inside a Linux terminal. You can either use the built-in--agents flag for automatic setup, or install agents manually.
Quick Start with --agents
The easiest way to set up agents is using the --agents flag:
.caged.yaml:
Supported Agents
If required environment variables are missing, the agent will be installed but may not work until you set them. Add secrets to your
.caged.yaml or pass --env flags.Manual Agent Setup
Claude Code
Claude Code is Anthropic’s agentic coding tool.Recommended Config
Cursor
Use Cursor’s remote SSH feature to connect to a Caged sandbox.- Create a sandbox:
caged up --template node-20 - Get SSH details:
caged ssh-config cage-a1b2c3d4 - Add to
~/.ssh/config - In Cursor: Remote SSH → Connect to Host → cage-a1b2c3d4
Aider
Aider works directly in the terminal.Recommended Config
Custom MCP Agents
Connect any MCP-compatible agent via WebSocket:- File read/write tools
- Terminal execution tools
- Git operations
- Environment management