deploy command that packages and deploys your agent to LangSmith Deployment in a single step. Define your agent’s configuration in a deepagents.toml file and deploy directly from your project directory.
deepagents.toml in the current directory. Pass --config to use a different path:
Project layout
The deploy command uses a convention-based project layout. Place the following files alongside yourdeepagents.toml and they are automatically discovered:
.env file lives alongside deepagents.toml at the project root. The deploy command automatically picks it up if present.
Configuration file
deepagents.toml configures the agent’s identity and sandbox environment. Only the [agent] section is required. The [sandbox] section is optional and defaults to no sandbox.
[agent] (required)
Core agent identity. For more on model selection and provider configuration, see models.
model field uses provider:model format. Supported providers:
For the full list of providers and configuration details, see models.
The
name field is the only required value in the entire configuration file. Everything else has defaults.[sandbox]
Configure the isolated execution environment where the agent runs code. Sandboxes provide a container with a filesystem and shell access, so untrusted code cannot affect the host. For supported providers and advanced sandbox configuration, see sandboxes.
When omitted or set to provider = "none", the sandbox is disabled. Sandboxes are for if you need code execution or skill script execution.
Supported sandbox providers:
"thread"(default): Each conversation gets its own sandbox. Different threads get different sandboxes, but the same thread reuses its sandbox across turns. Use this when each conversation should start with a clean environment."assistant": All conversations share one sandbox. Files, installed packages, and other state persist across conversations. Use this when the agent maintains a long-lived workspace like a cloned repo.
Examples
A content writing agent that only needs a model and system prompt, with no code execution:deepagents.toml
deepagents.toml
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

