Skip to content

Commit 16b4efd

Browse files
committed
documentation
- First draft at documentation using Mintlify Signed-off-by: Andrea Luzzardi <[email protected]>
1 parent 5b541b6 commit 16b4efd

File tree

9 files changed

+992
-2
lines changed

9 files changed

+992
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img src="./_assets/container-use.png" align="center" alt="Container use: Development environments for coding agents." />
2+
<img src="./docs/images/container-use.png" align="center" alt="Container use: Development environments for coding agents." />
33
<h1 align="center">container-use</h2>
44
<p align="center">Containerized environments for coding agents. (📦🤖) (📦🤖) (📦🤖)</p>
55
<p align="center">
@@ -16,7 +16,7 @@
1616
**Container Use** lets each of your coding agents have their own containerized environment. Go from babysitting one agent at a time to enabling multiple agents to work safely and independently with your preferred stack. Check out the [Container Use playlist](https://www.youtube.com/playlist?list=PLyHqb4A5ee1u5LrsbalfVkBRsrbjDsnN5) to see examples of how others are using it.
1717

1818
<p align='center'>
19-
<img src='./_assets/demo.gif' width='700' alt='container-use demo'>
19+
<img src='./docs/images/demo.gif' width='700' alt='container-use demo'>
2020
</p>
2121

2222
It's an open-source MCP server that works as a CLI tool with Claude Code, Cursor, and other MCP-compatible agents.

_assets/logo.png

-562 KB
Binary file not shown.

docs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# container-use documentation
2+
3+
This documentation is built using MDX and Mintlify. Run the following commands to get started:
4+
5+
```
6+
npx mint dev
7+
```
8+
9+
## Deploying
10+
11+
The docs site is always updated whenever the `main` branch is updated in this repo.

docs/agent-integrations.mdx

Lines changed: 335 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,335 @@
1+
---
2+
title: Agent Integrations
3+
description: 'Complete setup guides for all supported coding agents. Configure Container Use with Claude Code, Cursor, VSCode, Goose, and more.'
4+
---
5+
6+
## Overview
7+
8+
Container Use works with any coding agent that supports the Model Context Protocol (MCP). This page provides comprehensive setup guides for all supported agents.
9+
10+
<Note>
11+
All agents use the same MCP server command: `cu stdio`
12+
</Note>
13+
14+
## Claude Code
15+
16+
### Install Claude Code
17+
```sh
18+
npm install -g @anthropic-ai/claude-code
19+
```
20+
21+
### Add MCP Configuration
22+
```sh
23+
cd /path/to/repository
24+
claude mcp add container-use -- <full path to cu command> stdio
25+
```
26+
27+
### Add Agent Rules (Optional)
28+
Save the CLAUDE.md file at the root of your repository:
29+
30+
```sh
31+
curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CLAUDE.md
32+
```
33+
34+
### Trust Only Container Use Tools (Optional)
35+
For maximum security, restrict Claude Code to only use Container Use tools:
36+
37+
```sh
38+
claude --allowedTools mcp__container-use__environment_checkpoint,mcp__container-use__environment_create,mcp__container-use__environment_add_service,mcp__container-use__environment_file_delete,mcp__container-use__environment_file_list,mcp__container-use__environment_file_read,mcp__container-use__environment_file_write,mcp__container-use__environment_open,mcp__container-use__environment_run_cmd,mcp__container-use__environment_update
39+
```
40+
41+
<Info>
42+
Learn more: [Claude Code MCP Documentation](https://docs.anthropic.com/en/docs/claude-code/tutorials#set-up-model-context-protocol-mcp)
43+
</Info>
44+
45+
## Amazon Q Developer
46+
47+
### Add MCP Configuration
48+
Add this configuration to `~/.aws/amazonq/mcp.json`:
49+
50+
```json
51+
{
52+
"mcpServers": {
53+
"container-use": {
54+
"command": "cu",
55+
"args": ["stdio"],
56+
"env": {},
57+
"timeout": 60000
58+
}
59+
}
60+
}
61+
```
62+
63+
### Add Agent Rules
64+
Save agent instructions to your project root:
65+
66+
```sh
67+
mkdir -p ./.amazonq/rules && curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md > .amazonq/rules/container-use.md
68+
```
69+
70+
### Trust Only Container Use Tools (Optional)
71+
```sh
72+
q chat --trust-tools=container_use___environment_checkpoint,container_use___environment_file_delete,container_use___environment_file_list,container_use___environment_file_read,container_use___environment_file_write,container_use___environment_open,container_use___environment_run_cmd,container_use___environment_update
73+
```
74+
75+
<Card title="Video Tutorial" icon="youtube" href="https://youtu.be/C2g3vdbffOI">
76+
Watch the Amazon Q Developer setup walkthrough
77+
</Card>
78+
79+
## Cursor
80+
81+
### Install MCP Server
82+
Use the one-click deeplink to install (requires Cursor and Container Use already installed):
83+
84+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=container-use&config=eyJjb21tYW5kIjoiY3Ugc3RkaW8ifQ%3D%3D)
85+
86+
### Add Agent Rules
87+
Add the rules file to your project or home directory:
88+
89+
```sh
90+
curl --create-dirs -o .cursor/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/main/rules/cursor.mdc
91+
```
92+
93+
<Info>
94+
Learn more: [Cursor MCP Documentation](https://docs.cursor.com/context/model-context-protocol)
95+
</Info>
96+
97+
## VSCode / GitHub Copilot
98+
99+
### Configure MCP Server
100+
Update your VSCode settings with:
101+
102+
```json
103+
"mcp": {
104+
"servers": {
105+
"container-use": {
106+
"type": "stdio",
107+
"command": "cu",
108+
"args": ["stdio"]
109+
}
110+
}
111+
}
112+
```
113+
114+
### Add Copilot Instructions (Optional)
115+
```sh
116+
curl --create-dirs -o .github/copilot-instructions.md https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
117+
```
118+
119+
<Card title="Video Tutorial" icon="youtube" href="https://youtu.be/Nz2sOef0gW0">
120+
Watch the VSCode setup walkthrough
121+
</Card>
122+
123+
<Info>
124+
Learn more: [VSCode MCP](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) | [GitHub Copilot MCP](https://docs.github.com/en/copilot/customizing-copilot/extending-copilot-chat-with-mcp)
125+
</Info>
126+
127+
## Goose
128+
129+
### Method 1: Configuration File
130+
Add to `~/.config/goose/config.yaml`:
131+
132+
```yaml
133+
extensions:
134+
container-use:
135+
name: container-use
136+
type: stdio
137+
enabled: true
138+
cmd: cu
139+
args:
140+
- stdio
141+
envs: {}
142+
```
143+
144+
### Method 2: Interactive Setup
145+
```sh
146+
goose configure
147+
```
148+
Then add a command line extension with `cu stdio` as the command.
149+
150+
### Method 3: Goose Desktop
151+
Paste this URL into your browser:
152+
```
153+
goose://extension?cmd=cu&arg=stdio&id=container-use&name=container%20use&description=use%20containers%20with%20dagger%20and%20git%20for%20isolated%20environments
154+
```
155+
156+
<Info>
157+
Learn more: [Goose MCP Extensions](https://block.github.io/goose/docs/getting-started/using-extensions#mcp-servers)
158+
</Info>
159+
160+
## Cline
161+
162+
### Add MCP Configuration
163+
Add to your Cline MCP server configuration JSON:
164+
165+
```json
166+
{
167+
"mcpServers": {
168+
"container-use": {
169+
"disabled": false,
170+
"timeout": 60000,
171+
"type": "stdio",
172+
"command": "cu",
173+
"args": ["stdio"],
174+
"env": {},
175+
"autoApprove": []
176+
}
177+
}
178+
}
179+
```
180+
181+
### Add Agent Rules
182+
```sh
183+
curl --create-dirs -o .clinerules/container-use.md https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md
184+
```
185+
186+
<Info>
187+
Learn more: [Cline Documentation](https://cline.bot/)
188+
</Info>
189+
190+
## Qodo Gen
191+
192+
### Setup Steps
193+
1. Open Qodo Gen chat panel in VSCode or IntelliJ
194+
2. Click "Connect more tools"
195+
3. Click "+ Add new MCP"
196+
4. Add this configuration:
197+
198+
```json
199+
{
200+
"mcpServers": {
201+
"container-use": {
202+
"command": "cu",
203+
"args": ["stdio"]
204+
}
205+
}
206+
}
207+
```
208+
209+
<Info>
210+
Learn more: [Qodo Gen MCP Documentation](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps)
211+
</Info>
212+
213+
## Kilo Code
214+
215+
### Add MCP Configuration
216+
Add at global or project level:
217+
218+
```json
219+
{
220+
"mcpServers": {
221+
"container-use": {
222+
"command": "replace with pathname of cu",
223+
"args": ["stdio"],
224+
"env": {},
225+
"alwaysAllow": [],
226+
"disabled": false
227+
}
228+
}
229+
}
230+
```
231+
232+
<Info>
233+
Kilo Code allows setting MCP servers at the global or project level. Learn more: [Kilo Code MCP Documentation](https://kilocode.ai/docs/features/mcp/using-mcp-in-kilo-code)
234+
</Info>
235+
236+
## OpenAI Codex
237+
238+
### Add MCP Configuration
239+
Add to `~/.codex/config.toml`:
240+
241+
```toml
242+
[mcp_servers.container-use]
243+
command = "cu"
244+
args = ["stdio"]
245+
env = {}
246+
```
247+
248+
<Info>
249+
Learn more: [OpenAI Codex Documentation](https://github.com/openai/codex/tree/main/codex-rs)
250+
</Info>
251+
252+
## Warp
253+
254+
### Add MCP Configuration
255+
In the Warp sidebar, under Personal → MCP Servers → New:
256+
257+
```json
258+
{
259+
"container-use": {
260+
"command": "cu",
261+
"args": ["stdio"],
262+
"env": {},
263+
"working_directory": null,
264+
"start_on_launch": true
265+
}
266+
}
267+
```
268+
269+
<Info>
270+
Warp 2.0 introduces coding agents with MCP support.
271+
</Info>
272+
273+
## Gemini CLI
274+
275+
### Add MCP Configuration
276+
Add to `~/.gemini/settings.json` or `.gemini/settings.json`:
277+
278+
```json
279+
{
280+
"coreTools": [],
281+
"mcpServers": {
282+
"container-use": {
283+
"command": "cu",
284+
"args": ["stdio"],
285+
"timeout": 60000,
286+
"trust": true
287+
}
288+
}
289+
}
290+
```
291+
292+
<Info>
293+
Learn more: [Gemini CLI Configuration](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md)
294+
</Info>
295+
296+
## Verification
297+
298+
After setting up your agent, verify Container Use is working:
299+
300+
1. **Check MCP Connection**: Your agent should recognize Container Use tools
301+
2. **Test Environment Creation**: Ask your agent to create a new environment
302+
3. **Verify Isolation**: Multiple environments should work independently
303+
304+
## Troubleshooting
305+
306+
<AccordionGroup>
307+
<Accordion title="Agent doesn't recognize Container Use">
308+
- Verify the `cu` command is in your PATH: `which cu`
309+
- Check MCP configuration syntax
310+
- Restart your agent after configuration changes
311+
</Accordion>
312+
313+
<Accordion title="Permission errors">
314+
- Ensure Docker is running and accessible
315+
- Check file permissions for configuration files
316+
- Verify `cu stdio` command works: `echo '{}' | cu stdio`
317+
</Accordion>
318+
319+
<Accordion title="Tools not appearing">
320+
- Some agents require explicit tool trust/approval
321+
- Check your agent's MCP server logs
322+
- Verify Container Use tools are enabled in agent settings
323+
</Accordion>
324+
</AccordionGroup>
325+
326+
## Next Steps
327+
328+
<CardGroup cols={2}>
329+
<Card title="Back to Quickstart" icon="rocket" href="/quickstart">
330+
Return to the quickstart guide to create your first environment
331+
</Card>
332+
<Card title="Join Community" icon="discord" href="https://discord.gg/YXbtwRQv">
333+
Get help and share experiences in #container-use
334+
</Card>
335+
</CardGroup>

0 commit comments

Comments
 (0)