Skip to main content
The Deep Agents CLI includes a 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.
By default, the command looks for 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 your deepagents.toml and they are automatically discovered:
The .env file lives alongside deepagents.toml at the project root. The deploy command automatically picks it up if present.
mcp.json must only contain servers using http or sse transports. Servers using stdio transport are not supported in deployed environments because there is no local process to spawn. Convert stdio servers to http or sse before deploying.

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.
The 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:
Scope behavior:
  • "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
A coding agent with a LangSmith sandbox for running code:
deepagents.toml