mda CLI. Managed Deep Agents supplies the Deep Agents harness and hosted runtime.
After this quickstart, the tutorial adds durable memory and a daily schedule on the same project.
Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.
Prerequisites
To follow along, you need:-
Python and
uv. - An API key for your model provider of choice.
Create and deploy an agent
1
Set up the project
Install You now have all the scaffolding for your agent.
managed-deepagents, create a project, and open its directory:2
Add your keys
Add your model provider API key to This quickstart uses OpenAI by default. If you choose Google or Anthropic in the next step, set that provider’s API key instead.
.env:.env
mda deploy adds the provider key to the deployment. You can also use any other chat provider.3
Set up LangSmith
Managed Deep Agents runs on LangSmith. Your LangSmith API key authenticates local development with
mda dev, deploys the agent with mda deploy, and opens the agent in LangSmith Studio so you can chat with it and inspect traces.Sign up for LangSmith if you do not already have an account.To create a LangSmith API key, open Settings, go to API Keys, and click Create API Key. For more details, see Create an account and API key.Add your LangSmith API key to .env:.env
4
Edit the instructions
Open When you deploy, Managed Deep Agents syncs these instructions to LangSmith Context Hub, where you can update them without redeploying the agent.
instructions.md and describe how the agent should behave:instructions.md
5
Configure your model and search
Now set the model and a built-in web search tool. Google, OpenAI, and Anthropic offer server-side search with no extra package or API key. Pass the provider tool dict that matches your model:Open The agent name is also the default deployment name. For model concepts and provider options, see Models.
agent.py:Using another provider?
Using another provider?
You can use a Tavily search tool instead.
Add a Tavily API key to Install the Tavily client:Create a custom Import the tool and add it to the agent:For more authored tools, see Custom tools.
.env:.env
internet_search tool:tools/search.py
agent.py
6
Run locally
Install the project dependencies and start the agent:You should see the agent call the web search tool, then return a concise answer that cites sources. If search never appears in the trace, confirm the provider tool dict matches the model you set in
mda dev loads the API keys from .env, starts a local Agent Server, and opens the agent in LangSmith Studio.In Studio, send:agent.py or agent.ts.For more information, see Develop locally with LangSmith Studio.7
Deploy the agent
Deploy the project by running:Managed Deep Agents packages the project and runs it as a hosted deployment on LangSmith Agent Server. When deployment finishes, the CLI prints the deployment dashboard URL.Open that URL. You should see the deployment in a ready state. Send the same research question from the previous step and confirm the hosted agent returns an answer with a search tool call. For deployment options and secrets handling, see Deploy a Managed Deep Agent. To inspect the agent’s execution after it runs, use LangSmith observability.
Next steps
Tutorial
Add a custom Tavily search tool, durable memory, and a daily schedule.
Custom tools
Add authored LangChain tools from your project.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

