CLI Commands
The Caged CLI organizes commands into groups. The main sandbox management commands are undercaged sandboxes, with shortcut aliases available for convenience.
caged login
Authenticate with your Caged account via browser.caged.dev/auth/device where you approve the CLI access. The CLI automatically receives your credentials once approved — no manual key copying needed.
Manual login (API key)
If you prefer to paste an API key directly (CI environments, headless servers):~/.config/caged/config.json.
caged up
Create a sandbox from.caged.yaml in the current directory.
Examples:
caged sandboxes
Thesandboxes command group manages sandbox lifecycle.
caged sandboxes list
List all sandboxes. Alias:caged list, caged ls.
Examples:
caged sandboxes create
Create and start a new sandbox. Alias:caged run.
Examples:
caged sandboxes connect
Connect to a running sandbox’s interactive terminal. Alias:caged connect.
ssh into the sandbox. Output streams live, so long-running commands and AI agents show their progress in real time. Arrow keys, tab completion, Ctrl+C, colors, and terminal resizing all work.
caged exec.
caged sandboxes exec
Execute a single command in a sandbox and return the output. Alias:caged exec.
caged sandboxes sleep
Pause a running sandbox. No compute charges while sleeping. Alias:caged sleep.
caged sandboxes wake
Resume a sleeping sandbox. Alias:caged wake.
caged sandboxes destroy
Destroy a sandbox permanently. Alias:caged destroy, caged rm.
caged sandboxes logs
View sandbox event logs. Alias:caged logs.
caged mcp
Run a Model Context Protocol server over stdio, bridged to a running sandbox. MCP clients like Claude Desktop and Cursor spawn this command locally — no WebSocket setup or session tokens required.filesystem_read, filesystem_write,
terminal_exec, git_commit, and more) that execute inside the isolated VM.
The sandbox must be running — wake it with caged wake <sandbox-id> first if
it’s sleeping.
caged version
Print CLI version.Shortcut Aliases
For convenience, sandbox commands have shortcuts at the top level:
These shortcuts are provided for backward compatibility and convenience. Both forms work identically.
caged policy
Manage security policies (Cage Rules).caged policy list
List all policies for your account.caged policy templates
Show available policy templates.caged policy apply
Apply a built-in template to your account.soc2, hipaa, dev-only, restrictive, permissive
caged policy delete
Delete a policy by ID.caged eval
Manage agent eval scenarios and runs (Cage Eval).caged eval list
List all eval scenarios.caged eval load
Load scenarios from a YAML file. Supports suite files (.caged-eval.yaml) and single scenario files (*.scenario.yaml).