coipond/coi
Incus-based CLI for running coding agents apart from host credentials and services
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Coi is a self-hosted Go CLI that runs coding agents in Incus system containers. coi build prepares the base image; coi shell launches the configured tool interactively, while coi run executes a command or prompt without an interactive session. Each container gives the agent root, systemd, and Docker in a full Linux userspace, but shares the host kernel. The project is mounted at /workspace; writes persist on the host under the user's ownership.
The module targets Go 1.26.0 and depends on Cobra, BurntSushi TOML, JSON Schema v6, go-systemd/v22, and miekg/dns. The tree includes cmd/, internal/, profiles/, and schema/. Integration is at the CLI and configuration layers, not through a demonstrated MCP server: an inheritable TOML profile selects the image, tool, limits, mounts, network policy, build scripts, and agent instructions.
Key Capabilities & Differentiators
Claude Code is the default. Coi also supports Codex CLI, OpenCode v1 and v2, pi, Oh My Pi, and Goose. Codex, OpenCode v1, Oh My Pi, and Goose must be included when building the image. Parallel slots have separate home directories; persistent instances keep their installed packages, while ephemeral instances discard the container on exit. Workspace changes and session history survive either lifecycle.
Network policy offers open, restricted, and allowlist egress modes with nftables, DNS pinning, and per-host port controls. Monitoring targets reverse shells, command-and-control traffic, exfiltration, and DNS tunneling; detected HIGH events pause the container, and CRITICAL events terminate it. Read-only Git hooks and IDE settings, protected paths, and a guard against direct commits and pushes to main address repository risks. coi audit streams JSONL threat events for downstream analysis.
Trade-offs & Limitations
Compared with running an agent directly on the host, Coi reduces ambient exposure of credentials and environment variables and adds egress controls. Compared with a conventional application container, it gives the agent a full init system and Docker inside the environment, at the cost of administering Incus, base images, and another layer of state. A simple build or test job may not need that setup; a workload that requires a separate kernel belongs in a VM or microVM.
The most important boundary is the writable workspace: changes are saved to the host immediately, so disposing of the container does not undo edits or deletion. Explicit mounts and forwarded secrets also expand what the agent can reach. Treat automated threat response and branch guards as layers rather than guarantees. For unattended work, use scoped credentials, review project profiles before adopting them, and validate the egress policy and monitoring on representative workloads.
Hardware & Deployment Guide
Run Coi on Linux with Incus; on macOS, it runs through a Linux VM using Colima or Lima. Use a Linux release binary or inspect install.sh before running it, then run coi build and coi shell from the project directory. Use coi health to verify the setup. Configure opt-in agents before the build: an existing persistent container retains the image it was created from, so rebuilding the base alone does not update that instance.
For CI or cron, coi run --prompt-name nightly runs a predefined prompt headlessly; command exit codes propagate. Start with profile CPU and memory limits and size the host with coi top under representative builds and concurrent sessions. This self-hosts execution, not inference: authentication and network requirements depend on the chosen agent and backend. The release list progresses from v0.15.0 to v0.17.0, but the excerpts show installation instructions rather than identifiable feature changes.
/workspace writes back to the host with the user's ownership; host credentials are not forwarded by default, and coi shell lists explicit grants.coi validate profile checks profiles.coi run propagates exit status, coi top reports per-container CPU, memory, and I/O, and coi audit exposes JSONL threat events.Linux teams running one or more coding agents that need Docker, systemd, or package installs, with reusable limits and restricted egress.
You only need a thin CLI wrapper, cannot administer Incus, must keep the project directory read-only, or require separate kernels for untrusted tenants.
Quick Start & Installation
# 1. Install curl -fsSL https://raw.githubusercontent.com/coipond/coi/master/install.sh | bash # 2. Build the base image (first time only, ~5-10 min) coi build # 3. Start coding, from any project directory cd your-project coi shell
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| coi ★ | 804 | +12 | Go | MIT | Incus-based CLI for running coding agents apart from host credentials and servic |
| cc-switch | 159.1k | +1.6k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| herdr | 54.2k | +916 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| orca | 155.6k | +13.8k | TypeScript | MIT | An Electron IDE for running coding agents in parallel Git worktrees |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/coipond/coi.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about coi
Is Coi an MCP server, and how does an agent integrate with it?
/workspace. Select the tool in configuration or a profile, include build-time opt-ins such as Codex in [container.build].agents before coi build, and configure authentication for the chosen tool separately.How should I size CPU, RAM, disk, and VRAM?
coi top. Any local inference needs depend on the model and runtime you add.Can a company self-host Coi, and what compliance work remains?
When should I choose Coi over bare metal, an application container, or a VM?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy