container-use

A Dagger MCP server that gives each agent its own container and git branch for safe parallel work

MCP serverMedium risk

dagger/container-use

Install

brew install dagger/tap/container-use

For all platforms there is a script: curl -fsSL https://raw.githubusercontent.com/dagger/container-use/main/install.sh | bash

This is third-party code. Review the repository files before installing.

What it does

container-use connects to an agent as an MCP server and moves its work into an isolated container with its own git branch. Several agents can work on different tasks at once without interfering with each other or your working copy. Full command history and logs are kept, and you can drop into any agent's terminal to take over. You review results with a regular git checkout of the branch and simply discard failed attempts.

Who it is for. For developers running several agents in parallel who want them isolated from their machine.

Good fit when

  • You want several agents working on one repository at once
  • You do not want the agent running commands directly on your machine
  • You need to see what the agent actually did

Not a fit when

  • Docker or a compatible container runtime is unavailable
  • The task needs local devices or a GUI

Example request

Create a hello world app in Python with Flask in a separate environment

Limitations

The project is early and experimental and changes quickly. A container runtime is required, and work runs through the Dagger engine. Base images are pulled from public registries, and Docker Hub access from Russia can be restricted.

How to disable. Run claude mcp remove container-use or delete the server block from the MCP config, then brew uninstall container-use.

MCP

Transport
stdio
Authentication
not required

Security check

  • The agent runs arbitrary commands, but inside an isolated container
  • Creates branches in the local git repository

README in short

The README describes isolated environments for agents and the main features: a container and branch per agent, command history, taking over. It gives install commands via Homebrew and a script, and a Claude Code setup example that appends rules to CLAUDE.md. Setup for other agents lives on the project site. Apache-2.0 licensed.

FAQ

How do I review an agent's work?

Switch to its branch with git checkout; all changes are there.

Is there a short command?

Yes, cu works the same as container-use.

Editors’ pick

Open-source personal AI assistant on your own machine: answers in Telegram, Slack, Discord and WhatsApp, extended with skills and plugins

CLIHigh risk389.7K
Editors’ pick

A self-improving agent from Nous Research with a TUI, messaging gateway, cron jobs and skills it writes itself

CLIHigh risk245.5K
Editors’ pick

Anthropic's coding agent for the terminal, IDE and GitHub: understands your codebase, runs tasks and handles git

CLIHigh risk145K
Editors’ pick

OpenAI's coding agent that runs locally in your terminal, with IDE and desktop versions

CLIHigh risk124.1K