Skip to main content

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 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
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://qwenlm.github.io/qwen-code-docs
qwen Qwen Code https://opencode.ai

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.

Image updates are handled automatically; see Updates.

aicage options

  • --dry-run prints the composed docker run command without executing it.
  • --docker mounts /run/docker.sock into the container to enable Docker-in-Docker workflows.
  • --share <path> mounts a host path into the container at the same path. Repeatable; add :ro for read-only. Missing paths are created (file if a suffix is present, otherwise a directory).
  • --config info prints the project config path and its contents.

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

This version

0.9.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aicage-0.9.9.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aicage-0.9.9-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file aicage-0.9.9.tar.gz.

File metadata

  • Download URL: aicage-0.9.9.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aicage-0.9.9.tar.gz
Algorithm Hash digest
SHA256 210b874e920866b8d7cdbe9ba27d4ed39d21d094211791128aee48f47ca57bcb
MD5 4cf5d84b66b44d22953ddb5294149b40
BLAKE2b-256 f962f8bb730cc71abfb0100f7cb2eb68583c998fd312dc973d01946693557d9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aicage-0.9.9.tar.gz:

Publisher: release.yml on aicage/aicage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aicage-0.9.9-py3-none-any.whl.

File metadata

  • Download URL: aicage-0.9.9-py3-none-any.whl
  • Upload date:
  • Size: 106.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aicage-0.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2e48d54c27a799a2442d40940d5ccc5a23241019bb5b36d46b09a19d515df7e2
MD5 4373f284c8dfd3f957eeb2e0ecb97688
BLAKE2b-256 30bb675b9b1ebdb333ebcf04c3e760d6338691ceb67583aeb581fb0e869cefae

See more details on using hashes here.

Provenance

The following attestation bundles were made for aicage-0.9.9-py3-none-any.whl:

Publisher: release.yml on aicage/aicage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page