Self-hosted · open source · MITSelbst gehostet · Open Source · MIT

Your AI coding agents,
safely in a cocoon.
Deine KI-Coding-Agenten,
sicher im Kokon.

CoCoon runs Claude Code, Codex and other coding agents in isolated sandboxes on your own server – and gives you one place to plan their work, watch them live and decide what makes it into your code. CoCoon lässt Claude Code, Codex und andere Coding-Agenten in isolierten Sandboxes auf deinem eigenen Server arbeiten – und gibt dir einen Ort, an dem du ihre Arbeit planst, sie live beobachtest und entscheidest, was in deinen Code kommt.

Claude CodeOpenAI CodexOpenCodePiQwen CodeGemini CLIplain shellseinfache Shells
CoCoon cockpit with several live agent terminals, a workspace tree and an attention queue
What you getWas du bekommst

Mission control for coding agentsDie Kommandozentrale für Coding-Agenten

Written for people who want results, not infrastructure – with a web UI, a CLI, an API and an MCP server for everyone else.Gemacht für Leute, die Ergebnisse wollen, keine Infrastruktur – mit Web-Oberfläche, CLI, API und MCP-Server für alle anderen.

Cockpit

Many agents. One screen.Viele Agenten. Ein Bildschirm.

Tiled live terminals of all your agents, grouped by workspace and sandbox. Whoever needs you shows up at the top.Live-Terminals aller Agenten nebeneinander, gruppiert nach Workspace und Sandbox. Wer dich braucht, steht ganz oben.

  • Split, resize, maximize – layouts are saved per workspaceTeilen, vergrößern, maximieren – Layouts werden pro Workspace gespeichert
  • Attention queue with approve and review right next to the terminal„Wartet auf dich" mit Freigeben und Prüfen direkt neben dem Terminal
  • Broadcast input to several agents and full keyboard controlEingabe an mehrere Agenten gleichzeitig und komplette Tastatursteuerung
Cockpit in light mode
OrchestrationOrchestrierung

Plan the work, let agents do itArbeit planen, Agenten machen lassen

A task board from backlog to done. Drag a card to “Running” and an agent starts in its own sandbox; finished work lands in “Review”.Ein Aufgaben-Board vom Backlog bis „Fertig". Zieh eine Karte auf „Läuft", und ein Agent startet in seiner eigenen Sandbox; fertige Arbeit landet in „Prüfen".

  • Workflows with several stages, e.g. plan → build → review, with approvalsAbläufe mit mehreren Stufen, z. B. planen → bauen → prüfen, mit Freigaben
  • Feedback loop: request changes and the agent continuesFeedback-Schleife: Änderungen anfordern, der Agent macht weiter
  • Dependencies, auto-run and limits for parallel agents, webhook notificationsAbhängigkeiten, Auto-Start und Limits für parallele Agenten, Webhook-Benachrichtigungen
Task board with backlog, ready, running, review and done columns
Human in the loopDu entscheidest

Agents ask, you decideAgenten fragen, du entscheidest

CoCoon knows whether an agent is working, done or waiting for permission – from native hooks of Claude Code and Codex plus screen heuristics.CoCoon weiß, ob ein Agent arbeitet, fertig ist oder auf eine Erlaubnis wartet – über die Hooks von Claude Code und Codex plus Bildschirm-Heuristik.

  • Yes / No buttons right where the agent asksJa-/Nein-Knöpfe genau da, wo der Agent fragt
  • Type into the live terminal, send messages or keys from any deviceDirekt ins Live-Terminal tippen, Nachrichten oder Tasten von jedem Gerät senden
  • Agents keep running in tmux – through restarts and closed browsersAgenten laufen weiter in tmux – auch bei Neustarts und geschlossenem Browser
Agent detail page with a waiting-for-your-decision banner
ResultsErgebnisse

Nothing leaves the sandbox unseenNichts verlässt ungesehen die Sandbox

Every change is visible as a diff. You choose: download a patch, commit, push a branch or open a GitHub pull request.Jede Änderung ist als Diff sichtbar. Du wählst: Patch herunterladen, committen, Branch hochladen oder einen Pull Request auf GitHub öffnen.

  • Several repositories per sandbox, e.g. API and webMehrere Repositories pro Sandbox, z. B. API und Web
  • File browser and editor, console and interactive terminalDateibrowser und Editor, Konsole und interaktives Terminal
  • Switch agents at any time, with handover of task and changesAgent jederzeit wechseln, mit Übergabe von Aufgabe und Änderungen
Changes tab of a sandbox with a diff and actions for patch, commit, push and pull request
SecuritySicherheit

Isolated by defaultStandardmäßig isoliert

Each sandbox is a hardened container, a Kubernetes pod or a bubblewrap process sandbox. Internet access is restricted to an allowlist, and AI provider keys do not enter the sandbox.Jede Sandbox ist ein gehärteter Container, ein Kubernetes-Pod oder eine bubblewrap-Prozess-Sandbox. Internetzugang nur über eine Freigabeliste, und KI-Anbieter-Keys kommen nicht in die Sandbox.

  • Egress proxy: blocked connections are logged and can be allowed with one clickEgress-Proxy: blockierte Verbindungen werden protokolliert und lassen sich mit einem Klick erlauben
  • Credential proxy: agents only see placeholders, the real key is added on the way outCredential-Proxy: Agenten sehen nur Platzhalter, der echte Key kommt erst auf dem Weg nach draußen dazu
  • Non-root, no capabilities, CPU/RAM/PID limits, optional gVisor or KataKein Root, keine Capabilities, CPU-/RAM-/PID-Limits, optional gVisor oder Kata
Network settings with the allowlist, credential proxy and blocked connections
Bring your own modelEigene Modelle

Any model, any APIJedes Modell, jede API

Use Anthropic or OpenAI, a company gateway, OpenRouter – or your own llama.cpp, vLLM or LM Studio. CoCoon detects which APIs a server speaks and translates where needed.Nutze Anthropic oder OpenAI, ein Firmen-Gateway, OpenRouter – oder dein eigenes llama.cpp, vLLM oder LM Studio. CoCoon erkennt, welche APIs ein Server spricht, und übersetzt bei Bedarf.

  • Claude Code and Codex with local models via Messages/Responses → Chat translationClaude Code und Codex mit lokalen Modellen über Übersetzung Messages/Responses → Chat
  • Connection test with model list and context-window detectionVerbindungstest mit Modellliste und Erkennung der Kontextgröße
  • HTTP APIs for agents, with keys that stay on the serverHTTP-APIs für Agenten, mit Keys, die auf dem Server bleiben
API providers: a local llama.cpp server and OpenRouter
Shared servicesGemeinsame Dienste

Databases with one clickDatenbanken mit einem Klick

PostgreSQL, MySQL/MariaDB, MongoDB and Redis, plus WireMock and Mailpit as mocks. Every sandbox gets its own database and user – agents find the connection in their environment.PostgreSQL, MySQL/MariaDB, MongoDB und Redis, dazu WireMock und Mailpit als Mocks. Jede Sandbox bekommt eine eigene Datenbank und einen eigenen Benutzer – Agenten finden die Verbindung in ihrer Umgebung.

  • Any container image, like a service in docker-compose – once for all sandboxes or one next to each sandbox on its localhost (e.g. an AWS emulator)Beliebige Container-Images, wie ein Dienst in docker-compose – einmal für alle Sandboxes oder einer neben jeder Sandbox auf ihrem localhost (z. B. ein AWS-Emulator)
  • Pause automatically when unused, start again on demandPausieren automatisch, wenn ungenutzt, und starten bei Bedarf wieder
  • Or connect your own server instead of a managed containerOder einen eigenen Server anbinden statt eines verwalteten Containers
Shared services PostgreSQL, Redis and Mailpit
Always currentImmer aktuell

Updates at the push of a buttonUpdates auf Knopfdruck

CoCoon checks daily whether it, the agent CLIs and its images are up to date – and updates itself with git + pnpm, rolls back on failure and restarts.CoCoon prüft täglich, ob es selbst, die Agent-CLIs und seine Images aktuell sind – und aktualisiert sich per git + pnpm, rollt bei Fehlern zurück und startet neu.

  • Agent CLIs live in a shared, read-only toolbox – updated without rebuilding imagesAgent-CLIs liegen in einer gemeinsamen, schreibgeschützten Werkzeugkiste – Updates ohne Image-Neubau
  • Images are rebuilt when their Dockerfile or base image changedImages werden neu gebaut, wenn sich Dockerfile oder Basis-Image geändert haben
Updates page showing CoCoon, agent tools and images up to date
And moreUnd mehr

Built to fit inPasst sich ein

Docker, Podman, bubblewrap or KubernetesDocker, Podman, bubblewrap oder Kubernetes

Picked automatically on one server: rootless Podman without a daemon, or lightweight Linux process sandboxes that start in ~0.3 s. Or run it in your cluster.Auf einem Server automatisch gewählt: rootless Podman ohne Daemon oder leichte Linux-Prozess-Sandboxes, die in ~0,3 s starten. Oder in deinem Cluster.

MCP, CLI & API

Let Claude Code on your laptop orchestrate CoCoon via MCP, script it with the CLI or use the typed HTTP/WebSocket API.Lass Claude Code auf deinem Laptop CoCoon per MCP steuern, skripte es mit der CLI oder nutze die typisierte HTTP-/WebSocket-API.

Guided onboardingGeführte Einrichtung

A wizard walks you through system check, AI access with key verification, GitHub, safety defaults and the first agent.Ein Assistent führt durch Systemcheck, KI-Zugang mit Key-Prüfung, GitHub, Sicherheits-Standards und den ersten Agenten.

English & GermanDeutsch & Englisch

The UI, server messages and the CLI speak both languages and follow your browser.Oberfläche, Server-Meldungen und CLI sprechen beide Sprachen und folgen deinem Browser.

Zero-config startStart ohne Konfiguration

Admin token, internal network, egress proxy, sandbox image and agent toolbox are set up on first start.Admin-Token, internes Netzwerk, Egress-Proxy, Sandbox-Image und Agent-Werkzeuge werden beim ersten Start eingerichtet.

Your server, your dataDein Server, deine Daten

CoCoon only listens on localhost. Reach it through an SSH tunnel, a VPN or a TLS reverse proxy – no cloud account needed.CoCoon lauscht nur auf localhost. Erreichbar über SSH-Tunnel, VPN oder TLS-Reverse-Proxy – kein Cloud-Konto nötig.

Screenshots

A closer lookGenauer hingeschaut

Click a picture to enlarge it.Klick auf ein Bild, um es zu vergrößern.

How it worksSo funktioniert es

One control plane, many cocoonsEine Zentrale, viele Kokons

BrowserBrowserWeb UI, live terminalsWeb-Oberfläche, Live-Terminals
CLIscripts, CISkripte, CI
MCPClaude Code & other agentsClaude Code & andere Agenten
APIHTTP / WebSocketHTTP / WebSocket
↓ HTTPS · SSH tunnel · VPN ↓
cocoondControl plane on 127.0.0.1:7420 – sandboxes, agents, tasks, workflows, status detection, updatesZentrale auf 127.0.0.1:7420 – Sandboxes, Agenten, Aufgaben, Abläufe, Statuserkennung, Updates
↓
SandboxesSandboxesone per workspace or task: tmux with agents, /workspace with your repositorieseine pro Workspace oder Aufgabe: tmux mit Agenten, /workspace mit deinen Repositories
Egress & credential proxyEgress- & Credential-Proxyallowlist, API keys, API translationFreigabeliste, API-Keys, API-Übersetzung
Shared servicesGemeinsame DienstePostgreSQL, MySQL, MongoDB, Redis, mocks, custom containersPostgreSQL, MySQL, MongoDB, Redis, Mocks, eigene Container
Kubernetes

Or in your clusterOder in deinem Cluster

On Kubernetes and Amazon EKS every sandbox is a pod with its own volume. NetworkPolicies decide what it can reach, and sandboxes get their own nodes.Auf Kubernetes und Amazon EKS ist jede Sandbox ein Pod mit eigenem Volume. NetworkPolicies legen fest, was er erreicht, und Sandboxes bekommen eigene Nodes.

BrowserWeb UI, live terminals, previewsWeb-Oberfläche, Live-Terminals, Previews
CLI · MCP · APIscripts, CI, other agentsSkripte, CI, andere Agenten
RegistryRegistrycocoond and sandbox images, pulled by the nodescocoond- und Sandbox-Images, von den Nodes geladen
↓ Ingress · HTTPS · one wildcard host for previews ↓↓ Ingress · HTTPS · ein Wildcard-Host für Previews ↓
NamespaceNamespace cocoon · system nodesSystem-Nodes
cocoondone pod: sandboxes, agents, tasks, previews. Its rights end at the sandbox namespaceein Pod: Sandboxes, Agenten, Aufgaben, Previews. Seine Rechte enden am Sandbox-Namespace
Egress & credential proxyEgress- & Credential-Proxyruns in the cocoond pod: allowlist, API keys, API translationläuft im cocoond-Pod: Freigabeliste, API-Keys, API-Übersetzung
Data volumeDaten-Volumesettings, tasks and secrets on block storageEinstellungen, Aufgaben und Secrets auf Block-Storage
↓ Kubernetes API: pods, exec, volumes · ↑ sandboxes reach only the proxy↓ Kubernetes-API: Pods, Exec, Volumes · ↑ Sandboxes erreichen nur den Proxy
NamespaceNamespace cocoon-sandboxes · sandbox nodes · no root, no cluster tokenSandbox-Nodes · kein Root, kein Cluster-Token
Pod · no networkPod · kein Netzwerka NetworkPolicy denies everything, in and outeine NetworkPolicy sperrt alles, rein und raus
Pod · restrictedPod · eingeschränktreaches the egress proxy and nothing elseerreicht den Egress-Proxy und sonst nichts
Pod · openPod · offenreaches the internet, but not the cluster, its nodes or cloud metadataerreicht das Internet, aber nicht Cluster, Nodes oder Cloud-Metadaten
One volume per sandboxEin Volume pro Sandboxworkspace and home survive a stop; a stopped sandbox uses no nodeWorkspace und Home überleben einen Stopp; eine gestoppte Sandbox belegt keinen Node
Agent toolboxAgent-Toolboxone shared volume with the agent CLIs, read-only in every sandboxein gemeinsames Volume mit den Agent-CLIs, in jeder Sandbox nur lesbar

What the cluster needsWas der Cluster braucht

CoCoon checks this at every start and tells you what is missing instead of running unprotected.CoCoon prüft das bei jedem Start und sagt dir, was fehlt, statt ungeschützt zu laufen.

  1. A network plugin that enforces NetworkPolicies – Calico or Cilium; on EKS the VPC CNI with network policies turned on.Ein Netzwerk-Plugin, das NetworkPolicies durchsetzt – Calico oder Cilium; auf EKS das VPC CNI mit eingeschalteten Network Policies.
  2. Shared storage (ReadWriteMany) for the agent toolbox – NFS, CephFS or Longhorn; on EKS EFS.Geteilter Storage (ReadWriteMany) für die Agent-Toolbox – NFS, CephFS oder Longhorn; auf EKS EFS.
  3. Block storage for the sandbox volumes, and optionally an Ingress controller and a node group for sandboxes.Block-Storage für die Sandbox-Volumes, dazu optional ein Ingress-Controller und eine Node-Gruppe für Sandboxes.

Kubernetes guideKubernetes-Anleitung →

# plain Kubernetes
$ kubectl apply -k deploy/kubernetes/base
# Amazon EKS: EBS, EFS, load balancer
$ kubectl apply -k deploy/kubernetes/eks

$ kubectl -n cocoon logs cocoon-0
  CoCoon is running: http://localhost:7420
  Sandbox backend: kubernetes

$ kubectl -n cocoon-sandboxes get pods
  NAME                       READY   STATUS
  cocoon-sb-5c9481cf14d5-0   1/1     Running
  cocoon-sb-bed5ad86b85e-0   1/1     Running
Quickstart

Running in a few minutesIn wenigen Minuten startklar

You need Node.js 24, pnpm and Docker, Podman or – on Linux – bubblewrap.Du brauchst Node.js 24, pnpm und Docker, Podman oder – unter Linux – bubblewrap.

  1. Clone and set up – installs dependencies and builds the web UI.Klonen und einrichten – installiert Abhängigkeiten und baut die Oberfläche.
  2. Start – the console prints a login link.Starten – die Konsole zeigt einen Login-Link.
  3. Follow the wizard – it prepares the sandbox image, the proxy and the agent tools for you.Dem Assistenten folgen – er bereitet Sandbox-Image, Proxy und Agent-Werkzeuge für dich vor.

Read the full documentationZur vollständigen Dokumentation →

$ git clone https://github.com/adziendziolD/cocoon.git
$ cd cocoon
$ pnpm setup
$ pnpm start

  CoCoon is running: http://127.0.0.1:7420
  Sandbox backend: docker
  Log in: http://127.0.0.1:7420/?token=cct_…

# from another terminal, or from a script
$ pnpm cocoon sandbox create --name demo \
    --repo https://github.com/you/repo.git
$ pnpm cocoon agent spawn <sandbox-id> claude-code \
    -p "Fix the failing tests"
Support

Like CoCoon?Gefällt dir CoCoon?

CoCoon is free and open source. If it saves you time, you can support its development with a coffee.CoCoon ist kostenlos und Open Source. Wenn es dir Zeit spart, kannst du die Weiterentwicklung mit einem Kaffee unterstützen.

Buy me a coffee