Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Prerequisites
Before you deploy, make sure you have:- Managed Deep Agents private beta access.
- A LangSmith API key for a workspace with private beta access, exported as
LANGSMITH_API_KEY. - The
deepagents-clipackage. For install commands and version requirements, see Install the CLI in the quickstart.
Deploy from project files with the CLI
The CLI creates a local project, validates files, checks referenced MCP servers, and deploys the project to Managed Deep Agents. For all commands and project file rules, see the CLI reference.Create a project
Create a Managed Deep Agents project:
You can also add:
The generated
agent.json uses the readable local CLI format:
agent.json
Model identifiers use the
{provider}:{model_id} form. For the providers and models you can use, see Supported models.AGENTS.md to define the agent’s behavior. The full project layout that deploy syncs to the managed file tree is:
deepagents init generates an empty tools.json, one example skill, and one example subagent so the initial deploy succeeds before you register an MCP server. Edit or remove the examples to fit your agent. Deploy reads every file in the project and syncs the tree to the Context Hub agent repo. For the complete field reference, see the CLI reference.
Add MCP tools
To let the agent call MCP tools, register the MCP server once for the workspace, then add tool entries to the projecttools.json. Tool entries reference a registered server by URL.
After you register a server, list its tools and print a paste-ready tools.json snippet:
deepagents mcp-servers add command also tries to list tools after registration. Pass --no-tools when you want to skip that discovery step.
tools.json
name and mcp_server_url. The mcp_server_name and display_name fields are optional. Use the optional interrupt_config object to require human approval before a tool runs. Key each entry by "{mcp_server_url}::{tool_name}" and set it to true.
Deploy validates referenced MCP server URLs before sending a request. If a server URL is not registered, deploy fails with a hint to add it. For server setup and OAuth, see Connect tools.
Add subagents
Subagents are delegated workers the main agent can call for focused tasks. Add asubagents/ directory to the project root, then create one directory per subagent. Each subagent directory requires an agent.json and an AGENTS.md, and can include its own tools.json and skills/. The subagent name comes from its directory name.
agent.json supports an optional description and model:
subagents/researcher/agent.json
model for new projects. For compatibility, the legacy model_id key still works in local subagent files.
Write the subagent instructions in subagents/researcher/AGENTS.md:
subagents/researcher/AGENTS.md
subagents/researcher/tools.json with the same shape as the project-level tools.json. Subagent names are checked case insensitively for duplicates.
Choose a backend
Managed Deep Agents projects generated by the CLI use thestate backend in agent.json:
agent.json
Add optional sandbox settings under
backend in agent.json:
agent.json
backend.sandbox_config is valid only when backend.type is sandbox. For standalone sandbox features such as snapshots, service URLs, permissions, CLI commands, and SDK usage, see the LangSmith sandboxes overview.
Deploy the project
Deploy the local project:deepagents deploy --dry-run.
The first deploy creates a Managed Deep Agent. Later deploys update the same remote agent using local deploy state.
On success, the CLI prints the agent name, ID, short revision, the agent URL, and a post-deploy MCP health check:
health output above is abbreviated; it includes the full mcp_check result for every referenced server. A mcp_check.ok value of True confirms the agent can reach the MCP servers its tools reference. Each deploy creates a new agent revision, even when no managed files changed, because deploy always sends a metadata update. The managed file tree itself only changes when its contents do.
Update a shared agent
For shared repositories or intentional updates to an existing Managed Deep Agent, set the target agent’sagent_id in agent.json:
agent.json
--yes:
Troubleshoot a deploy
Next steps
After you deploy an agent, open the printed agent URL in LangSmith to inspect managed files, revisions, traces, and runtime behavior. To add MCP tools, see Connect tools.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

