Skip to main content
LangChain hosts Managed Deep Agents, so you can deploy a Deep Agent without setting up infrastructure. This quickstart shows how to scaffold a local project, edit the agent instructions, and deploy it with the CLI. For the full deploy workflow and all backend options, see Deploy an agent.
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 start, make sure you have:

Create and deploy an agent

1

Install the CLI

Install deepagents-cli with uv (preferred) or pip:
To upgrade an existing CLI installation, run uv tool upgrade deepagents-cli (or pip install -U "deepagents-cli" if you installed with pip).
2

Set your API key

Set a LangSmith API key for a workspace with private beta access:
If a request returns 401 or 403, confirm your API key belongs to a workspace with private beta access.
3

Create a project

Create a Managed Deep Agents project:
The CLI creates:
4

Edit the instructions

Open AGENTS.md and replace the generated instructions with the behavior you want:
AGENTS.md
The generated project uses the state backend so the agent can deploy 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 deploying the agent.
5

Deploy the agent

Deploy the local project:
On success, the CLI prints the agent name, ID, short revision, agent URL, and a post-deploy MCP health check:
Open the printed agent URL in LangSmith to inspect the deployed agent, managed files, revisions, traces, and runtime behavior.

Next steps

Connect tools

Register MCP servers and reference their tools from tools.json.

Deploy an agent

Review the complete CLI deploy workflow and project file layout.

CLI reference

Review all deploy commands, flags, and validation rules.

LangSmith sandboxes

Learn how sandboxes provide isolated execution environments.