One-click isolated Docker environment for every Orca ADE workspace
English · Русский · 日本語 · 简体中文 · Português (BR) · Español · Français
Isolated development environments for Orca ADE: each workspace runs in its own Docker container on your machine, so the project's toolchains, dependencies, caches and the agents' work stay out of the host. When you delete the workspace, its container goes away with it. On the host stay only the Docker images and volumes, a keychain entry with the git token and an SSH key for Orca.
The isolation comes with a fair bit of security:
- 🔐 Fine-grained git tokens. Each workspace gets a GitHub or GitLab token with access to this one repository only, with limited permissions. You can make it on a separate account (for example, a bot account), so agents never act as you.
- 🛡️ No privileged containers. The workspace container does not run
--privilegedand gets no extra capabilities. The host engine can be Docker or Podman. - 🐳 Docker inside, rootless. Agents get
docker run/build/composein the workspace through rootless Podman. The host's Docker socket is not mounted. - 🗝️ Git token in the system keychain. macOS Keychain or Linux Secret Service, never in the image
or in
docker inspect. macOS and Linux only. - 🤖 OAuth login for agents. Log in once, and it works in every workspace.
Warning
The isolation is not a network sandbox. From inside a workspace, the agent can reach ports on the
host (also services that listen only on 127.0.0.1, through host.docker.internal) and on your
local network. Do not run services on the host that an agent must not reach. A fix is planned, see
TODO.md.
| Agent | Status |
|---|---|
| Claude Code | ✅ Yes |
| cursor-agent | ✅ Yes |
| opencode (v2) | ✅ Yes |
| …others | 💡 PRs welcome |
Two ways, with the same result: the Orca plugin (nothing in your repo except dev.Dockerfile)
or the copier template (the recipe code lives in your repo and you can change it).
The same environments as the template, without recipe files in your repo: the project gives only
dev.Dockerfile.
The plugin is new: please report problems and ideas in GitHub issues.
Requirements: macOS or Linux, Docker (or OrbStack), jq, Orca 1.4.248 or later. The repo must
have an origin remote on GitHub or GitLab.
Do steps 2–4 once for each project.
- Install the plugin. In Orca: Settings → Plugins → Add plugin → From a Git URL… →
https://github.com/JargeZ/orca-recipes, then Install, approve and turn it on. - Let an agent write
dev.Dockerfile. Open the project's workspace in Orca. In the command palette (Cmd+J), run Docker VM: copy dev.Dockerfile prompt and paste the prompt to an agent in this project. The agent finds the project's toolchain and writesdev.Dockerfile, withENV ORCA_SYNC_COMMAND(the command that installs the dependencies). Check the file, then commit and push it: the image takes only committed files.[!TIP] The plugin installs Claude Code, Cursor Agent and OpenCode itself. If you use a different agent, tell the agent to also install that agent's CLI in
dev.Dockerfile. - Run the setup wizard. In the same workspace, run Docker VM: prepare from the command palette (or click Docker VM: set up in the status bar). A terminal opens: answer its questions. It asks which agents to set up, asks for a git token for this repository (it shows where to make one), builds the image, logs in the agents and runs a test workspace. You can run it again at any time: it only asks for what is missing or broken.
- Create disposable workspaces. When the status bar shows Docker VM: ready, create a workspace with Run on → Per-Workspace Environment → Docker VM. Each one is a new container; delete the workspace and its container goes away.
The status bar shows the repo's next step (Docker VM: add dev.Dockerfile, set up,
rebuild image, ready); click it to run that step. The palette also has rebuild image (after a dev.Dockerfile or lock change) and git token.
A repo with its own docker recipe in orca.yaml (the copier way) keeps
using it.
Note
Agent logins are shared: one Docker volume per agent (orca-claude, orca-cursor, orca-opencode)
is mounted into every workspace of every project. So an agent in one workspace can read that
agent's login token and its session history from other projects.
Requirements: macOS or Linux, Docker (or OrbStack), jq, uv.
1. Render the template in the root of your project:
uvx copier copy gh:JargeZ/orca-recipes .Note
If you already had an orca.yaml, the template won't overwrite it — add the recipe yourself:
environmentRecipes:
- id: docker
name: Local Docker
checkoutMode: provisioned-root
create: ./.orca-vm/docker-create.sh
destroy: ./.orca-vm/docker-destroy.sh2. Write your dev.Dockerfile — install everything your project needs for development.
The template creates a Python + uv example (template/dev.Dockerfile); adapt it
to your stack. The image requirements are in the comments at the top of the file: Debian/Ubuntu base
only, and any path outside the repo that dependency installation writes to must be owned by uid 1000.
3. Run the prepare script (safe to rerun):
./.orca-vm/prepare.shIt asks which agents to set up (Claude Code, Cursor Agent, OpenCode), sets up the git token, builds the base image, logs the chosen agents in and runs a self-test.
Without a person (CI, a worker): ./.orca-vm/prepare.sh --yes --agents claude only checks, see AGENTS.md.
Once everything is green, create a new workspace in the Orca UI and check that it comes up.
If something goes wrong, ask your agent to fix it: after rendering, all the recipe code lives in
your repository (.orca-vm/).
Tip
Using Task? Add orca: ./.orca-vm/Taskfile.yaml to includes
and run task orca:setup.
To create a workspace from a script or an agent instead of the Orca UI, use
./.orca-vm/workspace.sh add <name> and ./.orca-vm/workspace.sh rm <name>. Then use it
in the CLI as --environment <name>. See AGENTS.md.
Copier updates the template on top of your changes (three-way merge), so pulling a new version of the recipe is one command:
./.orca-vm/update.sh # latest tag
./.orca-vm/update.sh --vcs-ref v1.2.0 # specific versionUpdates never touch dev.Dockerfile or orca.yaml. Details are in AGENTS.md.
This project uses itself for development in Orca: clone the repo and run it through Orca in dynamic environments.
The Taskfile is the entry point for tests and linters:
task test # render + shellcheck + orca doctor + update checks (fast, offline)
task test:e2e # full Docker run: build, create, SSH checks, destroy
task test:plugin-e2e # the plugin recipe as Orca runs it (after bash plugin/vm/prepare.sh)Pull requests that make it more universal (new agents, base images, git hosts) are very welcome!
MIT: use it any way you like, keeping the copyright notice.