Skip to main content

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:
Or in your .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.

Cursor

Use Cursor’s remote SSH feature to connect to a Caged sandbox.
  1. Create a sandbox: caged up --template node-20
  2. Get SSH details: caged ssh-config cage-a1b2c3d4
  3. Add to ~/.ssh/config
  4. In Cursor: Remote SSH → Connect to Host → cage-a1b2c3d4

Aider

Aider works directly in the terminal.

Custom MCP Agents

Connect any MCP-compatible agent via WebSocket:
The WebSocket endpoint provides:
  • File read/write tools
  • Terminal execution tools
  • Git operations
  • Environment management

Agent Comparison

Monitoring Agent Activity

While an agent is running, you can monitor it from the dashboard or CLI:
All agent actions (file writes, terminal commands, LLM calls) are recorded and visible in the session replay.