Code on Incus (coi)
Give each AI coding agent its own isolated machine with root, Docker, systemd — and active threat defense.
- Source repo
- coipond/coi
- Stars
- ★ 784
- Last updated
- today
- License
- MIT
- Primary language
- Go
- FA score
- 50/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Developers running multiple AI agents in parallel on the same project who need fully isolated sessions that cannot leak into each other
- Not a fit if
- Windows users: no Windows support is mentioned
- Teams unwilling to install and maintain Incus themselves
- Users who need Aider or Cursor: not yet supported
- Website
- coipond.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-12latest release v0.16.0 (2026-10-23)+1.1 ★/day over 7 days
- Source review
- 50/100 · Major gaps
What does this agent do, and when should you use it?
code-on-incus (coi) is an open-source (MIT) Go CLI that runs AI coding agents — Claude Code, Codex CLI, opencode, pi, omp — inside their own Incus system containers. Each container is a full OS with root, systemd, and native Docker, so agents install packages and run services like on a real server while remaining unable to touch the host or see credentials. Kernel-level active defense uses nftables to catch reverse shells, C2 connections, exfiltration, and DNS tunneling in real time, auto-pausing on HIGH and auto-killing on CRITICAL threats. Workspace files and session history are always persisted, and credentials never enter the container unless explicitly mounted. The deployment boundary is a Linux host with Incus (macOS works via Colima/Lima); a single coi shell command starts a coding session.
coi creates an Incus system container keyed by hash(workspace, session_name), mounts the project at /workspace with correct file ownership, and runs the configured AI tool (claude/codex/opencode/pi/omp) with bypass or interactive permission_mode from config.toml. For security, kernel-level monitoring (three nftables network modes, DNS pinning, egress and per-host port controls) detects threats in real time and responds automatically — auto-pause on HIGH, auto-kill on CRITICAL — logging every event as JSONL that coi audit can stream into a SIEM or jq. Profiles bundle image, tool, resource limits, mounts, network mode, and agent instructions into inheritable templates; the built-in hardened preset applies restricted networking, secret masking, an ephemeral container, and no SSH-agent forwarding. coi run --prompt executes prompts headlessly for automation with host cron (e.g., nightly dependency updates and PRs); prompts are honored only from trusted-scope config (~/.coi/config.toml), so cloned repos cannot inject them.
- Developers running multiple AI agents in parallel on the same project who need fully isolated sessions that cannot leak into each other
- Anyone opening an untrusted third-party repo who wants to inspect it safely via
coi shell --profile hardenedunder maximum lockdown - Teams worried about agents reaching SSH keys, .env files, or Git tokens, who want credentials to never enter the agent environment by default
- Engineers who want real-time alerts and forensics on agent behavior, piping
coi auditJSONL logs into a SIEM - Maintainers needing unattended automation via cron plus
coi run --prompt-namefor nightly dependency updates, tests, and PRs - Users who want persistent dev environments that survive restarts, keeping installed packages and resumable session history
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://raw.githubusercontent.com/mensfeld/code-on-incus/master/install.sh | bash
- Config files
~/.coi/config.toml- Install notes cover
- macOS · Linux
How do you install or deploy this agent?
Requires Linux with Incus installed (macOS works via Colima/Lima — see the wiki macOS Setup Guide). Install: curl -fsSL https://raw.githubusercontent.com/mensfeld/code-on-incus/master/install.sh | bash. Build the base image on first use (~5–10 min): coi build. Then start coding from any project directory with coi shell.
How do you use this agent?
Run coi shell in a project directory to start an interactive session (Claude Code by default). Configure tools and permission modes in ~/.coi/config.toml or a per-repo .coi/config.toml (e.g., [tool] name = "codex", permission_mode = "bypass" for autonomous or "interactive" to ask first). Common commands: coi run -- npm test (run any command in the sandbox, output streamed, exit code propagated), coi run --prompt "..." (headless prompt execution), coi run --prompt-name nightly (run a named prompt from the config [prompts] table, cron-friendly), coi shell --profile rust-dev (launch a named profile), coi shell --profile hardened (maximum lockdown preset), coi monitor (live security dashboard), coi top (per-container resource usage), coi attach (join a running session), coi audit (stream the JSONL threat-event log), and coi shutdown / kill / clean for container management.
What are this agent's strengths and limitations?
- Real machine, not a locked box: Incus system containers give agents root, systemd, and native Docker — packages, services, and cron work like a server, with correct host file ownership and no chown
- Active defense, not just a wall: kernel-level (nftables) monitoring catches reverse shells, C2, exfiltration, DNS tunneling, and credential scanning, with auto-pause on HIGH and auto-kill on CRITICAL
- Clear credential model: SSH keys, .env files, and host env vars never enter the container unless explicitly mounted; sharing uses socket forwarding or short-lived tokens instead
- Parallel agents stay fully isolated on the same project, each slot with its own home directory; workspace files and session history always persist and are resumable
- Profiles support inheritance and the zero-setup
hardenedpreset overrides weaker global config, making untrusted-code inspection safe with one flag
- Depends on Incus and a Linux host; macOS only works indirectly via Colima/Lima, and Windows support is not mentioned
- First
coi buildtakes 5–10 minutes, and users must install and maintain Incus themselves - Headless prompt mode currently supports only the claude tool and requires permission_mode = "bypass"; Aider and Cursor are not yet supported
- Automated kill/pause responses can interrupt a working agent, so users must understand threat tiers and network modes (restricted/allowlist/open)
- The README provides no performance benchmarks or false-positive rates for threat detection, so effectiveness must be evaluated independently
How does this agent compare with similar options?
The README includes a comparison table: versus Docker sandboxes, code-on-incus offers default credential isolation, kernel-level (nftables) real-time threat detection with auto-kill/auto-pause on reverse shells and exfiltration, three network isolation modes, and JSONL audit logging, while Docker sandboxes only partially isolate credentials and offer none of these; bare metal offers no isolation or detection. The author chose Incus (a modern LXD fork) system containers over Docker application containers for a full init system and second-level startup.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Code on Incus (coi) This agent | 50 · Major gaps | CLIFree + model costs | ★ 784 | today | Go | Codex · Claude Code |
| sandboxed.sh | 53 · Major gaps | Self-hosted serviceFree + model costs | ★ 714 | today | Lean | Codex · Claude Code |
| Ordewell | 87 · Good | CLIFree + model costs | ★ 210 | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| NeuroSquad Terminal Dashboard | 80 · Good | CLIFree + model costs | ★ 90 | 1mo ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README describes container isolation, credentials excluded by default, startup grant listings, and network and threat-response options. However, the product gives the agent root, Docker, and systemd inside the container, and the core runtime and monitoring implementation is not included here to substantiate least privilege or the security claims. The README describes installation and container operations with host and external effects, and mentions cleanup, but this sample does not explain per-action confirmation, complete data flows, sensitive-data safeguards, or recovery. go.mod lists pinned dependency versions but no dependency security or update policy. The license and documentation name an author, while publisher identity is unverified; attribution and maintenance-path evidence is limited.
The README's feature descriptions and examples are broadly consistent. SKILL.md gives a concrete schema, validation, and error-output workflow, and the CI file describes build and test tiers; however, the sample omits the main implementation needed to confirm CLI and threat-monitoring behavior. Installation depends on Incus, macOS additionally requires Colima/Lima, and the first build is time-consuming, so availability is only partly addressed. The entry point prints errors and maps exit codes, and the skill describes validation errors, but evidence about ordinary runtime failure messages is incomplete.
The README names its intended users, supported tools, Linux and macOS paths, and interactive and headless scenarios. SKILL.md defines a clear trigger for profile work, directs the agent to the CLI schema, and explains that project profiles have some isolation-weakening settings stripped. These details help set capability boundaries; the sample does not fully enumerate platform and tool limitations, so full marks are not justified.
The README separates quick start, features, commands, and documentation links, and provides configuration examples plus links to the FAQ, troubleshooting, and migration guide. SKILL.md has a named workflow and cautions. Installation guidance demonstrates a curl pipeline and brief platform requirements but does not include full setup detail in this sample. The MIT license text is complete. A release badge is present, but no changelog or clear maintenance responsibility is shown. Names and configuration locations are mostly consistent across examples.
Coi combines a full Linux container, persistent workspace, coding-agent tools, resource settings, and threat-event logs into a usable isolated development environment. Commands, configuration examples, and the profile skill make the output actionable. This value depends on Incus or the macOS VM path, initial build time, and container resources; the sample does not quantify costs or independently substantiate protective effectiveness, so points are deducted.
README claims receive partial support from command and configuration examples and CI workflows. The test samples show attach flows and assertions, while CI describes unit and integration test tiers. But key claims about threat detection and credential isolation are not directly supported by the main implementation in the sample, and the README comparison table has no corresponding evidence here. Some documentation distinguishes defaults from user configuration, but the boundary between claims and demonstrated facts remains incomplete, so only partial credit is warranted.
- The agent has root, Docker, and systemd inside its container. The sample omits the core isolation and threat-monitoring implementation, so protective effectiveness cannot be confirmed from this evidence.
- The README recommends running the installer through a curl pipeline. Review the script first and confirm the resulting Incus, network, and host installation changes are intended.
- Avoid forwarding credentials, environment variables, or host directories into the container unless needed and the grant scope is understood; the README says these grants change the default isolation.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.16.0 Release v0.16.0
Release notes excerpt
Installation Quick Install (Linux) ```bash Install latest version curl -fsSL https://raw.githubusercontent.com/coipond/coi/master/install.sh | bash ``` Manual Installation Download the appropriate binary for your system: Linux AMD64 (x86_64) ```bash wget https://github.com/coipond/coi/releases/download/v0.16.0/coi-linux-amd64 chmod +x coi-linux-amd64 sudo mv coi-linux-amd64 /usr/local/bin/coi ``` Linux ARM64 (aarch64) ```bash wget https://github.com/coipond/coi/releases/download/v0.16.0/coi-linux-arm64 chmod +x coi-linux-arm64 …View on GitHub ↗ -
v0.15.0 Release v0.15.0
Release notes excerpt
Installation Quick Install (Linux) ```bash Install latest version curl -fsSL https://raw.githubusercontent.com/coipond/coi/master/install.sh | bash ``` Manual Installation Download the appropriate binary for your system: Linux AMD64 (x86_64) ```bash wget https://github.com/coipond/coi/releases/download/v0.15.0/coi-linux-amd64 chmod +x coi-linux-amd64 sudo mv coi-linux-amd64 /usr/local/bin/coi ``` Linux ARM64 (aarch64) ```bash wget https://github.com/coipond/coi/releases/download/v0.15.0/coi-linux-arm64 chmod +x coi-linux-arm64 …View on GitHub ↗ -
v0.14.0 Release v0.14.0
Release notes excerpt
Installation Quick Install (Linux) ```bash Install latest version curl -fsSL https://raw.githubusercontent.com/coipond/coi/master/install.sh | bash ``` Manual Installation Download the appropriate binary for your system: Linux AMD64 (x86_64) ```bash wget https://github.com/coipond/coi/releases/download/v0.14.0/coi-linux-amd64 chmod +x coi-linux-amd64 sudo mv coi-linux-amd64 /usr/local/bin/coi ``` Linux ARM64 (aarch64) ```bash wget https://github.com/coipond/coi/releases/download/v0.14.0/coi-linux-arm64 chmod +x coi-linux-arm64 …View on GitHub ↗
FAQ
Which AI tools does it support?
Can the agent reach my SSH keys or environment variables?
Will I lose my work?
What if threat detection kills an agent that was working fine?
coi audit to inspect the JSONL event log, and tune strictness via network modes (restricted/allowlist/open) and profiles.What does it cost?
Is Code on Incus (coi) open source?
Is Code on Incus (coi) safe to use?
Is Code on Incus (coi) still maintained?
Who makes Code on Incus (coi)?
What is Code on Incus (coi)'s official website?
Thanks — we use this to improve the page.