Managed Deep Agents is in private preview. Join the waitlist to request access.
When to use Managed Deep Agents
Use Managed Deep Agents when you want to:- Create and manage deep agents programmatically.
- Run long-running agents without standing up a custom agent server.
- Stream runs and preserve durable thread state.
- Use managed files and tools.
- Inspect traces and agent behavior in LangSmith.
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.
- A Deep Agent definition, including instructions and any tool configuration you want the managed runtime to use.
X-Api-Key header:
Define the agent
Managed Deep Agents keeps the familiar Deep Agents project shape. Keep these files in your source repository so you can review changes and recreate the managed agent when needed:
For the API request, pass the agent instructions and tool configuration directly in the create-agent payload. Use the same
tools.json shape when you configure tools:
interrupt_config map lets you require human approval for selected tools. The key combines the MCP server URL, tool name, and MCP server name.
Create a managed agent
Create the agent withPOST /v1/deepagents/agents. The payload defines the managed resource, runtime settings, instructions, and tools.
Create a thread
Create a thread before running the agent. Threads preserve the conversation and execution state for long-running work.Stream a run
Start work on the thread withPOST /v1/deepagents/threads/{thread_id}/runs/stream. Include the agent_id in the request body and set Accept: text/event-stream so your client receives progress as server-sent events.
The run is traced in LangSmith. Open the trace to inspect messages, tool calls, files, subagent activity, and runtime behavior.
Update the agent
UsePATCH /v1/deepagents/agents/{agent_id} when you need to update instructions, runtime settings, or tool configuration.
Manage existing agents
List agents:Inspect the result in LangSmith
Managed Deep Agents runs are traced in LangSmith, so teams can debug behavior and inspect tool calls. Use traces to review:- The user’s input and the agent’s final response.
- Model calls and tool calls.
- Subagent activity.
- Files and runtime state created during the run.
Built on open-source Deep Agents
Deep Agents remains open source. Managed Deep Agents is the hosted path for teams that want the Deep Agents harness plus LangSmith-managed runtime infrastructure. You can keep the agent definition in your repository, then use the Managed Deep Agents API to create and operate managed agents in LangSmith.Private preview scope
Managed Deep Agents does not mirror every LangSmith Deployment endpoint in private preview. Endpoint groups such as integrations, auth, triggers, skills, and sandboxes are not mirrored yet.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

