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.Set provider credentials
- LangSmith
- Daytona
- Modal
- Runloop
- AgentCore
Run Deep Agents Code with a sandbox
- LangSmith
- Daytona
- Modal
- Runloop
- AgentCore
Sandbox flags and examples
Examples:
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.

