Open Source
Caged publishes several components as open-source under the MIT license. You can use these independently or combine them for a fully self-hosted setup.Repositories
CLI
Command-line interface for managing sandboxes
Sandbox Agent
Lightweight agent running inside each sandbox VM
MCP Server
Model Context Protocol server for AI coding agents
CLI
Thecaged CLI lets developers create, manage, and connect to sandboxes from the terminal.
Sandbox Agent
The agent runs inside each Firecracker microVM and provides:- Heartbeat — reports health to the host every 5 seconds
- Metrics collection — CPU, memory, disk usage
- Socket communication — JSON message protocol over Unix socket
- Graceful shutdown — responds to host shutdown commands
Install
Docker
Configuration
| Flag / Env | Description | Default |
|---|---|---|
--workspace / CAGED_WORKSPACE | Workspace root directory | /workspace |
--socket / CAGED_SOCKET | Communication socket path | /run/caged/agent.sock |
--heartbeat-interval / CAGED_HEARTBEAT_INTERVAL | Heartbeat interval | 5s |
--metrics-interval / CAGED_METRICS_INTERVAL | Metrics collection interval | 10s |
--log-level / CAGED_LOG_LEVEL | Log level (debug, info, warn, error) | info |
MCP Server
A standalone Model Context Protocol server that exposes filesystem, terminal, and git tools to AI agents.Install
Docker
Usage
Configuration
| Flag / Env | Description | Default |
|---|---|---|
--mode / CAGED_MCP_MODE | Transport: stdio or ws | stdio |
--port / CAGED_MCP_PORT | WebSocket listen port | 9090 |
--workspace / CAGED_MCP_WORKSPACE | Workspace root directory | . |
--read-only / CAGED_MCP_READ_ONLY | Disable write/exec tools | false |
--allowed-commands / CAGED_MCP_ALLOWED_COMMANDS | Comma-separated command allowlist | (all) |
--log-level / CAGED_MCP_LOG_LEVEL | Log level | info |
Available Tools
Filesystem:file_read— Read file contentsfile_write— Write/create filesfile_list— List directory contentsfile_delete— Delete filesfile_search— Search files by glob pattern
terminal_exec— Execute shell commands (respects allowlist)
git_status— Show working tree statusgit_diff— Show file diffsgit_log— Show commit historygit_commit— Create a commit
Contributing
We welcome contributions to all open-source repos. Each repo has aCONTRIBUTING.md with guidelines.