Deep Agents Code uses the sandbox as tool pattern: theDocumentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-change-1779831223-d853e2d.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
dcode process (LLM loop, memory, tool dispatch) runs on your machine, but agent tool calls (read_file, write_file, execute, etc.) target the remote sandbox, not your local filesystem. To get files into the sandbox, use a setup script or the provider’s file transfer APIs (see Working with files).
For a deeper look at sandbox architecture, integration patterns, and security best practices, see Sandboxes.
Install provider dependency
- LangSmith
- Daytona
- Modal
- Runloop
- AgentCore
Included by default when installing
deepagents-code. No extra installation needed.all-sandboxes extra: uv tool install 'deepagents-code[all-sandboxes]'.Sandbox flags and examples
| Flag | Description |
|---|---|
--sandbox TYPE | Sandbox provider to use: langsmith, agentcore, modal, daytona, or runloop (default: none) |
--sandbox-id ID | Reuse an existing sandbox by ID instead of creating a new one. Skips creation and cleanup. Refer to your sandbox documentation for more |
--sandbox-snapshot-name NAME | Use or create a sandbox snapshot (LangSmith only). Cannot be combined with --sandbox-id |
--sandbox-setup PATH | Path to a setup script to run inside the sandbox upon creation |
execute commands run from this directory unless overridden:
| Provider | Working directory |
|---|---|
| LangSmith | /root |
| Daytona | /home/daytona |
| Modal | /workspace |
| Runloop | /home/user |
| AgentCore | /tmp |
Setup scripts
Use--sandbox-setup to run a shell script inside the sandbox after creation. This is useful for cloning repos, installing dependencies, and configuring environment variables.
setup.sh
${VAR} references in setup scripts using your local environment variables. Store secrets in a local .env file for the setup script to access.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

