Runs agentic coding assistants in docker containers
Project description
aicage
Run your favorite AI coding agents comfortably in Docker.
Why use aicage?
Agents need deep access (read code, run shells, install deps). Their built-in safety checks are naturally limited.
Running agents in containers gives a hard boundary - while the experience stays the same. See Why cage agents? for the full rationale.
Quickstart
-
Prerequisites:
- Docker
- Python 3.10+ and
pipx
-
Install:
pipx install aicage
-
Navigate to your project directory.
-
Use one of these commands:
aicage claude aicage codex aicage copilot aicage crush aicage droid aicage gemini aicage goose aicage opencode aicage qwen
Full documentation
The complete user documentation lives in the wiki: aicage.wiki
Base images
The first run asks which base image to use; pick Ubuntu or whatever matches your Linux distro.
All base images have the same stack of tools installed.
Agents
| 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 |
Your existing CLI config for each agent is mounted inside the container so you can keep using your preferences and credentials.
Customization
You can customize images at three levels: extensions, agents, and base images.
- Extensions: Customization-Extensions
- Custom agents: Customization-Agents
- Custom base images: Customization-Base-Images
Image updates are handled automatically; see Updates.
aicage options
--dry-runprints the composeddocker runcommand without executing it.--dockermounts/run/docker.sockinto the container to enable Docker-in-Docker workflows.--share <path>mounts a host path into the container at the same path. Repeatable; add:rofor read-only.--config infoprints the project config path and its contents.--config remove [<agent>]removes the full project config or only one agent entry.
Configuration file formats are documented in CONFIG.md. Extension authoring is documented in doc/extensions.md.
Why cage agents?
AI coding agents read your code, run shells, install packages, and edit files. That power is useful, but granting it directly on the host expands your risk surface.
Where built-in safety is limited:
- Allow/deny lists only cover known patterns; unexpected commands or attack paths can slip through.
- Some agents work fully only after relaxing their own safety modes, broadening what they can touch.
- “Read-only project” features are software rules. Other projects and files still sit alongside them on the same host.
How aicage mitigates this:
- Containers create a hard boundary: the agent can access only what you explicitly mount. Day-to-day use stays familiar—just with the host kept out of reach.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aicage-0.9.20.tar.gz.
File metadata
- Download URL: aicage-0.9.20.tar.gz
- Upload date:
- Size: 50.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70c44102e59c4df026db1860e3620f44461d104e33b50ada381e69f78e8c3ca
|
|
| MD5 |
c84019c171a63c5685379fc5dc333057
|
|
| BLAKE2b-256 |
8a0a756dc07c1e39bc4517ff823bc192d0ad8146e8f2d3e4dd5ff99c1f589a03
|
Provenance
The following attestation bundles were made for aicage-0.9.20.tar.gz:
Publisher:
release.yml on aicage/aicage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aicage-0.9.20.tar.gz -
Subject digest:
e70c44102e59c4df026db1860e3620f44461d104e33b50ada381e69f78e8c3ca - Sigstore transparency entry: 960455083
- Sigstore integration time:
-
Permalink:
aicage/aicage@201ca0f7f6feb6bce1dcf9616882fe76144f0e58 -
Branch / Tag:
refs/tags/0.9.20 - Owner: https://github.com/aicage
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@201ca0f7f6feb6bce1dcf9616882fe76144f0e58 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aicage-0.9.20-py3-none-any.whl.
File metadata
- Download URL: aicage-0.9.20-py3-none-any.whl
- Upload date:
- Size: 113.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b185c25b94db3caa333c28ce2fe8dd97f3e099ce925999c882b290d18b48c76
|
|
| MD5 |
b13d8b3f8df417353d5ba046a54fb72a
|
|
| BLAKE2b-256 |
a36ddadd2d10c7df6777333288dfdcb120a2142ae4e2f01d96f39ef87bca64b6
|
Provenance
The following attestation bundles were made for aicage-0.9.20-py3-none-any.whl:
Publisher:
release.yml on aicage/aicage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aicage-0.9.20-py3-none-any.whl -
Subject digest:
6b185c25b94db3caa333c28ce2fe8dd97f3e099ce925999c882b290d18b48c76 - Sigstore transparency entry: 960455139
- Sigstore integration time:
-
Permalink:
aicage/aicage@201ca0f7f6feb6bce1dcf9616882fe76144f0e58 -
Branch / Tag:
refs/tags/0.9.20 - Owner: https://github.com/aicage
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@201ca0f7f6feb6bce1dcf9616882fe76144f0e58 -
Trigger Event:
push
-
Statement type: