Run your coding agent in a Docker container
Giving an agent broad permissions doesn’t have to mean opening up your whole computer. With “Run in a Docker container” selected, the agent runs in a container that only sees the project folder, while its conversation, stats and AgentVera tools work as usual.
What the agent can see
The container sees only the project folder, plus the worktree’s repository for an agent in a worktree. The rest of your computer, other programs and your SSH keys aren’t visible.
- On Linux, files are created with your user id.
- When the agent stops, the container is removed; only changes in the project folder remain.
- Set CPU and memory limits if you like.
The image
AgentVera’s own agent image (Node 22, git, ripgrep, Claude Code and Codex) is built automatically on first use. You can bring your own image instead, as long as it contains the claude or codex command.
Everything else works the same
Conversations are stored just as they are on your computer, so resume, stats and token budgets behave the same. AgentVera’s hooks and MCP servers (project map, board, agent messaging…) keep working inside the container. A “Docker” chip shows in the agent header.
How to use it
- 1
Install and start Docker Desktop, Colima or OrbStack.
- 2
In the agent dialog, pick “Run in a Docker container” for a local Claude Code or Codex agent.
- 3
Optionally enter your own image and CPU and memory limits.
- 4
Start the agent; the first time, the AgentVera image is built.
Questions
What do I need?
Docker Desktop, Colima or OrbStack.
Which agents can run in a container?
Claude Code and Codex agents running on this computer.
Can I use my own image?
Yes. It needs to contain the claude or codex command.
Why does Claude ask me to log in on macOS?
The macOS keychain isn’t visible from a Linux container, so Claude may ask you to log in once inside it.
What’s left when the agent stops?
Only the changes in the project folder. The container is removed and the conversation stays on your computer.
Related features
Related terms:Permission modes
Bring your agents to one desk.
Start on the free plan. Download it, add a project folder and open your first agent.
Posts on this topic
Blog- October 27, 2026Find security vulnerabilities in your code with AIAudit your own code with an AI coding agent: OWASP classes, secret and dependency scans, /security-review, false positives, and fixes backed by a regression test.
- October 24, 2026How to run Claude Code in Docker as a sandboxRun Claude Code in Docker so the agent sees only your project folder: a do-it-yourself docker run recipe, its limits, and the one-checkbox container in AgentVera.
- October 23, 2026Claude Code hooks: a practical guide with examplesHow Claude Code hooks work: events, settings.json, matchers, exit codes and JSON output, plus ready hooks that format files, block risky commands and notify you.