coipond/coi
Give the agent a machine. Just not yours. Each AI coding agent gets its own isolated machine with root, Docker, and systemd - active defense detects and stops threats automatically.
What it solves
AI coding agents (like Claude Code, Codex, opencode, pi, omp) do their best work when they have full machine access — root, Docker, package managers, services. But handing that access to an agent on your own computer is risky: it could read your SSH keys, tokens, and environment variables, or do something destructive. Coi solves this by running the agent inside its own isolated Linux system container, so the agent gets a real machine to work on without ever touching your host or seeing your credentials.
How it works
Coi uses Incus system containers (a modern fork of LXD). These behave like lightweight VMs — a full OS with a real init system and userspace — but share the host kernel, so they start in seconds. Your project is mounted into the container at /workspace, file ownership is handled correctly on the host (no chown dance), and Docker and gh are available inside. SSH keys, tokens, .env files, and host environment variables never enter the container unless you explicitly mount or forward them, and coi shell lists every grant at startup. Kernel-level monitoring watches for reverse shells, command-and-control traffic, exfiltration, and DNS tunneling, auto-pausing on HIGH alerts and auto-killing on CRITICAL ones. Network egress is controlled via nftables in three modes (open, restricted, allowlist) with DNS pinning and per-host port scoping. You can run several agents in parallel, each isolated from the others, and keep persistent environments that survive restarts or discard them on exit. Profiles bundle reusable setups — image, tool, resource limits, network mode, build scripts, and agent instructions — into one template applied with a single flag, with inheritance and a built-in hardened preset.
Who it's for
- People who run AI coding agents and want them to have full machine access without risking their host.
- People who want to know when an agent does something suspicious in real time, not find out after the fact.
- People running several agents in parallel who need them isolated from each other.
- People who want persistent dev environments that survive restarts rather than throwaway containers.
- People who care about their credentials never ending up inside an agent-controlled environment.
Highlights
- Real machine, not a locked box — Incus system containers give the agent a full OS: root, systemd, native Docker, package managers, services.
- Credentials stay home — SSH keys, tokens,
.env, and host environment variables never enter the container unless explicitly granted; every grant is listed at startup. - Active defense — kernel-level monitoring catches reverse shells, C2, exfiltration, and DNS tunneling, auto-pausing on HIGH and auto-killing on CRITICAL.
- Network isolation — nftables egress control in three modes, DNS pinning, and per-host port scoping.
- Parallel agents — several slots per project, each with its own home directory, isolated from one another.
- Persistent or ephemeral — keep a box with its installed packages or discard it on exit; workspace files and session history are always saved and sessions resume with full history.
- Profiles — reusable named setups with inheritance, plus a built-in
hardenedpreset for untrusted code. - Supply-chain guards — git hooks and IDE configs mounted read-only, protected paths, and a branch guard blocking direct commits and pushes to
main. - Headless and auditable — run prompts to completion for cron and CI with exit-code propagation, stream a JSONL threat log to a SIEM, and diagnose the setup with
coi health. - Supported tools — Claude Code (default), Codex CLI, opencode, opencode2, pi, omp, and goose.
summary
Coi runs AI coding agents (Claude Code, Codex, opencode, and more) inside isolated Incus Linux containers, giving them full machine access — root, Docker, systemd — without exposing your host or credentials, with real-time threat detection and network isolation.
headline
an isolation layer that gives AI coding agents a full Linux machine while keeping your host, credentials, and network safe
tags
["agentic", "llm_app"]
Related
- Project
- Project
- Project
- Project
- Project