MCPcopy
hub / github.com/dagger/container-use

github.com/dagger/container-use @v0.4.2 sqlite

repository ↗ · DeepWiki ↗ · release v0.4.2 ↗
361 symbols 1,396 edges 62 files 164 documented · 45%
README

Container use: Development environments for coding agents.

container-use

Containerized environments for coding agents. (📦🤖) (📦🤖) (📦🤖) Experimental Discord Mentioned in Awesome Claude Code **Container Use** lets coding agents do their work in parallel environments without getting in your way. Go from babysitting one agent at a time to enabling multiple agents to work safely and independently with your preferred stack. See the [full documentation](https://container-use.com). container-use demo It's an open-source MCP server that works as a CLI tool with Claude Code, Cursor, and other MCP-compatible agents. Powered by [Dagger](https://dagger.io). * 📦 **Isolated Environments**: Each agent gets a fresh container in its own git branch - run multiple agents without conflicts, experiment safely, discard failures instantly. * 👀 **Real-time Visibility**: See complete command history and logs of what agents actually did, not just what they claim. * 🚁 **Direct Intervention**: Drop into any agent's terminal to see their state and take control when they get stuck. * 🎮 **Environment Control**: Standard git workflow - just `git checkout ` to review any agent's work. * 🌎 **Universal Compatibility**: Works with any agent, model, or infrastructure - no vendor lock-in. --- 🦺 This project is in early development and actively evolving. Submit issues and/or reach out to us on [Discord](https://container-use.com/discord) in the #container-use channel. --- ## Quick Start ### Install
# macOS (recommended)
brew install dagger/tap/container-use

# All platforms
curl -fsSL https://raw.githubusercontent.com/dagger/container-use/main/install.sh | bash
### Setup with Your Agent Container Use works with any MCP-compatible agent. The setup is always the same: **add `container-use stdio` as an MCP server**. **👉 [Complete setup guide for all agents (Cursor, Goose, VSCode, etc.)](https://container-use.com/quickstart)** **Example with Claude Code:**
# Add Container Use MCP server
cd /path/to/repository
claude mcp add container-use -- container-use stdio

# Add agent rules (optional)
curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CLAUDE.md
💡 Command Shortcut The `container-use` command is also available as `cu` for convenience. Both commands work identically: - `container-use stdio` (used in documentation) - `cu stdio` (shortcut) ### Try It Ask your agent to create something: > Create a hello world app in python using flask Your agent will work in an isolated environment and give you URLs to view the app and explore the code!

Extension points exported contracts — how you extend this code

ConfigurableAgent (Interface)
(no doc) [5 implementers]
cmd/container-use/agent/configure.go
RepositorySetup (FuncType)
RepositorySetup is a function that prepares a test repository
environment/integration/helpers.go

Core symbols most depended-on inside this repo

RunGitCommand
called by 93
repository/git.go
AddCommand
called by 50
environment/note.go
Run
called by 40
environment/environment.go
CreateEnvironment
called by 40
environment/integration/helpers.go
SourcePath
called by 35
repository/repository.go
WithRepository
called by 35
environment/integration/helpers.go
FileWrite
called by 32
environment/integration/helpers.go
Info
called by 25
repository/repository.go

Shape

Function 176
Method 147
Struct 31
TypeAlias 5
FuncType 1
Interface 1

Languages

Go100%

Modules by API surface

repository/git.go32 symbols
mcpserver/tools.go30 symbols
environment/integration/helpers.go25 symbols
repository/repository.go23 symbols
environment/environment.go15 symbols
environment/config.go15 symbols
cmd/container-use/agent/configure.go14 symbols
repository/flock.go13 symbols
cmd/container-use/stdio_test.go11 symbols
cmd/container-use/agent/configure_claude.go10 symbols
environment/state.go9 symbols
environment/integration/repository_test.go8 symbols

Dependencies from manifests, versioned

dagger.io/daggerv0.18.14 · 1×
github.com/99designs/gqlgenv0.17.75 · 1×
github.com/Khan/genqlientv0.8.1 · 1×
github.com/adrg/xdgv0.5.3 · 1×
github.com/atotto/clipboardv0.1.4 · 1×
github.com/aymanbagabas/go-osc52/v2v2.0.1 · 1×
github.com/catppuccin/gov0.3.0 · 1×
github.com/charmbracelet/bubblesv0.21.0 · 1×
github.com/charmbracelet/colorprofilev0.3.1 · 1×

Datastores touched

mydbDatabase · 1 repos

For agents

$ claude mcp add container-use \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact