Skip to content
Proyectos

Acerca de

Leverage full potential of coding agents without the risks. Run them in a sandbox with restricted networking, file access and secrets hidden. By Protectorate.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
-1
in 15 days
-5
in 1 month
-11

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original
co:op

Run Claude Code, Codex, Gemini CLI and Grok in a sandbox where they can't read your secrets, API keys or other projects. Then give them a task queue and let them work through it overnight.

CI Release Go Report Card License

A coding agent needs to edit files and run commands. On your computer, those same permissions let it read your SSH keys, upload your code or delete the wrong folder, whether by mistake or because a web page told it to.

co:op runs the agent in a box: a container with your project mounted inside and nothing else of yours. Your home folder, SSH keys, cloud logins and other repos aren't in the box, and the box can reach only your AI provider and the sites you approve. Inside those limits, the agent works without asking you to approve each command.

cd ~/code/your-repo && coop claude

The website shows how it works, and the docs cover every feature.

Why a box

Agents act on what they read in code, docs, issues and web pages, even when an attacker wrote it:

  • A comment hidden in a README can tell your agent to post your SSH key in an issue. In the box there is no key to post.
  • A package the agent installs can try to send your .env to a stranger's server. In the box, .env can't be read, and with filtered networking, the default, that server can't be reached.

The agent can still change or delete files in the project you give it. For a cleanup or a large refactor, use a fork, so you review the changes before they reach your checkout.

Install

curl -fsSL https://coop.dryga.com/install.sh | sh

The script downloads the coop binary for your system into ~/.local/bin. It needs curl, tar, and sha256sum or shasum. If it finds Docker, it also builds the box image and runs coop doctor to test the box. If you install Docker later, run those two steps yourself:

coop build --egress open && coop doctor

co:op runs on macOS and Linux and needs Docker. coop is one static binary. To build it from source, run git clone https://github.com/AndrewDryga/coop && cd coop && make install.

To check a download yourself, follow Verifying a download.

Quickstart

coop login claude          # 1. sign in, once per account
cd ~/code/your-repo        # 2. any Git repo
coop init                  # 3. set up the project
coop claude                # 4. start the agent in the box

coop init adds project settings with filtered networking, a task queue, formatting checks on commit, and shared instructions and skills for the agents you're signed in to. That is why you sign in first.

Every agent starts with its permission prompts off. That's on purpose: the box limits what the agent can reach, so you don't have to approve every command.

Agent Flag co:op starts it with
Claude Code --dangerously-skip-permissions
Codex CLI --dangerously-bypass-approvals-and-sandbox
Gemini CLI --yolo
Grok CLI --permission-mode bypassPermissions

The agent edits your checkout directly, at the same path it has on your computer, so you and your editor see its changes as it makes them.

Arguments after coop claude go to Claude Code:

coop claude --continue                # resume its last session
coop claude -p "Fix the failing test" # run one prompt and exit
coop claude -- --help                 # Claude Code's own help

co:op handles its own options, such as --help, --peer and --egress, and a leading help or login. Put -- before one of them to pass it to the agent.

Other ways into the box:

coop codex                                # Codex CLI
coop gemini                               # Gemini CLI
coop grok                                 # Grok CLI
coop shell                                # a shell in the box
coop run -- npm test                      # one command in the box

For a first run on a test project, follow the walkthrough for Claude Code or Codex CLI. Each one lets you try the file and network limits yourself.

What stays out of the box

  • Your home folder, SSH keys, cloud logins and other repos. The box mounts one folder: your project.
  • Secret files in the project. The box can't read .env, private keys or the files you list in .coopignore, and coop secrets find finds secrets left in your code.
  • Your app's API tokens. With coop secrets add, the box gets a fake value for each token, and co:op replaces it with the real token only on requests you approve.
  • Your AI provider's keys and sign-in tokens. co:op adds them to the agent's requests from outside the box.
  • Other projects' agent history and settings. Each repository has its own.
  • Git credentials. The agent commits in your name, and you decide what leaves your computer.
  • Every site you haven't approved. Networking is filtered by default: the box reaches your AI provider and the domains you approve, and nothing else.

coop doctor tests secret hiding, host access, credential isolation and offline networking against the real box on your computer, and CI runs it on every push. See what it checks. coop net setup checks that your computer can enforce filtered networking.

Hand off the work

A task queue that works overnight

A task is a folder in .agent/tasks that says what the problem is, what done means and how to approach it. coop loop works through the queue unattended, with a fresh agent for every task, so no agent's context window fills up with the tasks before it. A final review reopens unfinished work. A task that needs your decision waits for you while the loop continues with the others.

coop tasks add "Add a /health endpoint" \
  --context "The load balancer needs a cheap liveness check." \
  --acceptance "GET /health returns 200 with {\"ok\":true}, and a test covers it." \
  --approach "Add the route beside the others, then a handler test." \
  --subtask "Route and handler" --subtask "Test"
coop loop claude

See task queues and loops.

Forks

A fork is a temporary local clone of your repo for the agent to work in, so you can keep working in yours. You review the fork like a pull request. When you merge it, co:op rebases it onto your branch and runs your checks before your branch changes.

coop fork api codex --loop -d     # work the queue in a fork, in the background
coop fork review api --stat       # its commits and changed files
coop fork merge api               # rebase, run your checks, merge

See forks and review.

Accounts, models and presets

You pick the model, reasoning effort and account in the target, as in coop claude:opus/xhigh@work. If you sign in to more than one account, a loop or an editor session that hits a usage limit switches to the next account or fallback model and continues.

A preset is a team of models in one file: a lead, its fallback models, and the roles it consults or delegates work to. coop presets init writes a starter preset called frontier for you to change, and coop loop frontier runs it. For a one-off second opinion from another model, add --peer codex to any run.

coop usage shows your account limits and estimates your usage from agent sessions on this computer. Provider reports show API spend separately.

See accounts, models and presets.

Your project's tools and services

The box starts with the agents and a few basic tools. If your repo pins versions in .tool-versions, coop init writes an .agent/Dockerfile that installs them, and coop build builds the box image from it. For anything else, edit .agent/Dockerfile yourself.

Postgres, Redis and anything else in your Compose file run as project services, each in its own container. With filtered networking, they share a private network with no direct internet access. coop up starts them, coop down stops them and keeps their data, and coop down --delete-volumes also deletes their data.

See files, images and services.

Editors, MCP and your own platform

  • Editors: use the agent in the box from Zed, or any editor that supports ACP. Editor sessions switch accounts at a usage limit too.
  • MCP servers: define them once, outside your repo, and co:op gives them to every agent that supports MCP.
  • Your own platform: run co:op as a worker that takes jobs from your controller. Your Git credentials stay on the worker's host, outside the box.

See editors and MCP and the worker API.

Evaluations

Evaluations compare models, presets or loop settings on the same tasks. A separate verifier grades each result, so the model never grades its own work. Start with a dry run, which starts no container and spends nothing:

coop eval run core codex --timeout 35m --dry-run

To compare agents on your own code, turn a bug you’ve fixed into a repeatable test.

Updating

coop update installs the newest co:op release, then rebuilds the box image for this project's network mode.

Agent skill

To teach your agent to set up co:op, run commands in the box, delegate work to forks and manage task queues, install the co:op skill:

npx skills add AndrewDryga/coop --skill coop

This installs only the skill. The coop CLI and Docker are installed separately.

Limitations

  • The agent can change or delete anything in your project folder. That includes work you haven't committed or pushed, and files that later run code on your computer, such as commit hooks and the Makefile. With an isolated fork, the agent can't reach your checkout or its Git history.
  • co:op hides secret files, not secrets inside other files. A key pasted into source code stays readable. coop secrets find looks for those.
  • Whatever the agent can read can go to your AI provider and to any domain you approve.
  • A compromised agent can keep using the account it runs on, which costs you subscription limits or API charges. A hook it adds to its own settings runs again in later boxes for the same repository.
  • Filtered networking needs Docker and reaches IPv4 addresses only.
  • A secret file you add while a box is running can stay readable until that box restarts. eBPF protection hides a new file at once when it matches the built-in list, such as .env or *.pem.
  • co:op relies on your container runtime for isolation, so it can't protect you from a bug in that runtime or the kernel.

Documentation

The docs have a menu and search:

Build and test

make install builds coop into ~/.local/bin, and make check runs nearly every check CI runs. CONTRIBUTING.md covers the source layout, the test layers and the one CI pass that make check leaves out.

License

MIT. See LICENSE.

Explorar proyectos relacionados

Cargando…