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

At a glance

How it runs
CLI
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
IncusLinux (or macOS via Colima/Lima)Docker inside containerShell / CLINetwork accessLocal filesystem
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

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.

  1. Developers running multiple AI agents in parallel on the same project who need fully isolated sessions that cannot leak into each other
  2. Anyone opening an untrusted third-party repo who wants to inspect it safely via coi shell --profile hardened under maximum lockdown
  3. Teams worried about agents reaching SSH keys, .env files, or Git tokens, who want credentials to never enter the agent environment by default
  4. Engineers who want real-time alerts and forensics on agent behavior, piping coi audit JSONL logs into a SIEM
  5. Maintainers needing unattended automation via cron plus coi run --prompt-name for nightly dependency updates, tests, and PRs
  6. 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?

Pros
  • 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 hardened preset overrides weaker global config, making untrusted-code inspection safe with one flag
Limitations
  • Depends on Incus and a Linux host; macOS only works indirectly via Colima/Lima, and Windows support is not mentioned
  • First coi build takes 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?

FollowAgents source review · FARS-2.1
Major gaps
50/ 100 5-point scale 2.5 / 5
Trust 12/29
Reliability 6/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability12 / 18 · 3.3/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability3 / 8 · 1.9/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision f31861f3d124 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/code-on-incus.svg)](https://followagents.com/en/agents/code-on-incus)
<a href="https://followagents.com/en/agents/code-on-incus"><img src="https://followagents.com/badge/code-on-incus.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
The README explicitly supports Claude Code (default), Codex CLI, opencode, pi, and omp (Oh My Pi), selectable via config or profile; Aider and Cursor are on the way.
Can the agent reach my SSH keys or environment variables?
Not by default. SSH keys, .env files, Git tokens, and host environment variables never enter the container unless you explicitly mount them; when needed, forward a host socket or mint a short-lived per-session token.
Will I lose my work?
No. Whether containers are ephemeral (deleted on exit) or persistent, workspace files and session history are always saved back to the host, and --resume/--continue restores full conversation history.
What if threat detection kills an agent that was working fine?
coi auto-pauses on HIGH and auto-kills on CRITICAL threats. Use coi audit to inspect the JSONL event log, and tune strictness via network modes (restricted/allowlist/open) and profiles.
What does it cost?
The project is an MIT-licensed open-source tool with no subscription; the real costs are host resources plus whatever the AI tool inside the container charges for API usage.
Is Code on Incus (coi) open source?
Yes. The source code is on GitHub (coipond/coi) under the MIT licence.
Is Code on Incus (coi) safe to use?
FollowAgents' FARS review (Nov 07, 2026) scored Code on Incus (coi) 12/29 on trust and safety. None of the eight safety controls the review checks for was missing outright. The repository has changed since that review.
Is Code on Incus (coi) still maintained?
Yes. The latest commit on GitHub is from 2026-11-12, within the last 30 days. The latest release is v0.16.0 (2026-10-23).
Who makes Code on Incus (coi)?
Code on Incus (coi) is published on GitHub by the account coipond. FollowAgents has not verified which person or company is behind that account.
What is Code on Incus (coi)'s official website?
The project's GitHub repository lists https://coipond.ai as its website. That link is set by the repository owner; the source code itself is on GitHub (coipond/coi).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.