useStream paths.
For the full deploy workflow and all backend options, see Deploy an agent. For package configuration and API details, see the Managed Deep Agents SDKs.
Managed Deep Agents is in private preview, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Prerequisites
Before you start, make sure you have:- Managed Deep Agents private preview access.
- A LangSmith API key for a workspace with private preview access.
- One of the clients shown below:
deepagents-cli>=0.2.2,managed-deepagents, or@langchain/managed-deepagents.
Create and run an agent
Install a client
Choose the client for your runtime:To upgrade an existing CLI install from
uv, run uv tool upgrade deepagents-cli.Set your API key
Set a LangSmith API key for a workspace with private preview access:
If a request returns 401 or 403, confirm your API key belongs to a workspace with private preview access.
Create the agent
Create a Managed Deep Agent. Save the returned The CLI creates
agent_id for the run step.agent.json, AGENTS.md, .gitignore, an empty tools.json, an example skill, and an example subagent before deploying. The SDK examples create the hosted agent directly.The examples use the state backend so the agent can run without sandbox-specific configuration. Switch to the sandbox backend when the agent needs a LangSmith sandbox for code execution, filesystem work, or long-running tasks. For options, see Choose a backend.If the agent calls MCP tools, connect tools before creating or deploying the agent.If
deepagents init, deploy, agents, or mcp-servers are missing or behave unexpectedly, confirm the installed version is 0.2.2 or later with deepagents --version. An older deepagents can shadow the current release on your PATH.Next steps
Connect tools
Add MCP-backed tools before deploying an agent that needs external capabilities.
Deploy an agent
Learn the full CLI, SDK, and REST API deploy workflow.
SDKs
Use the Python, TypeScript, and React SDKs for Managed Deep Agents.
CLI reference
Review all commands, flags, project files, and validation rules.
API reference
Review generated endpoint reference pages and common REST commands.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

