Deploy AI coding agents in Docker containers with transparent egress proxy, credential injection, and Telegram messaging.
- Data-driven plugins — runtime (codex, claude-code, pi) and feature plugins configured via YAML
- Transparent gateway — all agent traffic routes through a proxy for credential injection and MITM
- Telegram channel — chat with your agent via Telegram (access control, session management, commands)
- Custom runtime — install packages, mount volumes, run startup hooks
- Multi-agent — run multiple agents from a single
fleet.yaml - One command —
agent-sandbox generate && agent-sandbox compose up --build
# Install
curl -fsSL https://raw.githubusercontent.com/donbader/agent-sandbox/main/install.sh | bash
# Scaffold a project
mkdir my-agent && cd my-agent
agent-sandbox init
# Or write config manually
cat > agent.yaml << 'EOF'
name: coder
runtime: codex
features:
- plugin: github-pat
token: "${GITHUB_PAT}"
- plugin: telegram
access_control:
allowed_users: ["@yourname"]
- plugin: custom-runtime
commands:
- "apt-get update && apt-get install -y --no-install-recommends ripgrep && rm -rf /var/lib/apt/lists/*"
runtime_volumes:
- "agent-home:{{ .AGENT_HOME }}"
EOF
# Generate and run
agent-sandbox generate
agent-sandbox compose up --build -d
agent-sandbox compose logs -fagent-sandbox init # interactive project scaffold
agent-sandbox generate # agent.yaml → .build/ (Dockerfile, docker-compose.yml)
agent-sandbox validate # check config without generating
agent-sandbox plugins # list available plugins
agent-sandbox compose ... # docker compose passthrough
agent-sandbox upgrade # self-update┌─────────────────┐ ┌──────────────────────┐
│ Gateway │◄────────│ Agent Container │
│ - proxy/DNS │ │ Channel Manager │
│ - MITM │ │ (spawns agent) │
│ - cred inject │ │ Agent Runtime │
└─────────────────┘ └──────────────────────┘
All agent traffic flows through the gateway container via default route. The gateway injects credentials (GitHub PAT, API keys) without exposing them to the agent environment.
- Configuration — agent.yaml reference
- Plugins — available runtime and feature plugins
- Troubleshooting
- Security
- Roadmap — what's done, what's next
See examples/ for working setups.
MIT