forked from aicage/aicage
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Stefan Kuhn edited this page Feb 26, 2026
·
24 revisions
Run AI coding agents in Docker with a clean separation between your host and the agent runtime.
- How it works
- CLI options
- Docker run pass-through args
- Images and layers
- Base image tooling
- Known hiccups
- Host networking
- Customization entry point
- Update behavior
- How to debug
When your environment uses proxies, aicage forwards HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and NO_PROXY
into local image builds and container runtime automatically.
- Prerequisites:
- Docker
- Python 3.10+ and
pipx
pipx install aicage
cd /path/to/project
aicage --yes <agent>--yes accepts suggested defaults and skips setup prompts. This is the fastest first run.
Built-in agent examples:
aicage --yes claude
aicage --yes codex
aicage --yes copilot
aicage --yes crush
aicage --yes droid
aicage --yes gemini
aicage --yes goose
aicage --yes opencode
aicage --yes qwenaicage mounts your project and your agent config into a container that already has a full dev toolchain and the agent.
You can also add your own custom agents. See Customization.
If you want full interactive setup instead of defaults:
- Show project config path and contents:
aicage --config info - Remove config if needed:
aicage --config removeoraicage --config remove <agent> - Run again without
--yes:aicage <agent> - Screenshot placeholder: full setup prompt flow
- Pass arguments to the agent:
aicage <agent> resume <session-id>
- Share additional host folders:
aicage --share ~/.m2 <agent>aicage --share /path/to/data:ro <agent>
- Let the agent use Docker:
aicage --docker <agent>
- Set environment variables:
aicage -e FOO=bar -- <agent>
- Use proxies:
-
aicageforwardsHTTP_PROXY,HTTPS_PROXY,ALL_PROXY, andNO_PROXY. - See CLI options.
-
- Use host networking or custom networks:
- See Host networking.
- On Windows with a Linux container/WSL workspace:
- set
git config --global core.autocrlf trueon the Windows host to avoid line-ending diffs.
- set
- Run into first-use setup issues:
- See Known hiccups.
- Add custom tools/agents/base images:
| CLI | Agent | Homepage |
|---|---|---|
| claude | Claude Code | https://claude.com/product/claude-code |
| codex | Codex CLI | https://developers.openai.com/codex/cli |
| copilot | GitHub Copilot CLI | https://github.com/features/copilot/cli |
| crush | Crush | https://github.com/charmbracelet/crush |
| droid | Factory CLI | https://factory.ai/product/cli |
| gemini | Gemini CLI | https://geminicli.com |
| goose | Goose CLI | https://block.github.io/goose |
| opencode | OpenCode | https://opencode.ai |
| qwen | Qwen Code | https://qwenlm.github.io/qwen-code-docs |