Skip to main content
Managed Deep Agents is a hosted runtime for deploying and operating code-first Deep Agents in LangSmith, pairing the Deep Agents harness with managed infrastructure. It lets you run a production agent without standing up your own agent server or infrastructure. You author an agent in Python or TypeScript, then use the mda CLI to test and deploy it to the managed runtime. The managed runtime provides: To deploy your first agent, see the quickstart.
Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.Private beta access: During private beta, Managed Deep Agents is CLI-first while LangChain finalizes the supported API. API-driven creation, update, and invocation examples have been removed. To use agents programmatically, contact your LangChain team at the address in your beta access email.

When to use Managed Deep Agents

Choose the path that matches your control and infrastructure needs:
PathUse whenYou manageLangSmith manages
Managed Deep AgentsYou want a code-first Deep Agent deployed quickly on managed infrastructure.Agent code, tools, middleware, instructions, schedules.Backend, store, checkpointer, memory, skills, sandbox, hosted deployment.
LangSmith DeploymentYou need custom application code, custom routes, advanced authentication, stronger isolation controls, or maximum scalability.Application code, server, deployment configuration.Hosted infrastructure and scaling.
OSS Deep AgentsYou want to run the Deep Agents harness in your own environment.Everything, including hosting and persistence.Nothing (self-managed).

Structure your agent project

A Managed Deep Agent is a local project directory. A file’s location determines its role: the CLI reads the directory to find the agent entry, managed instructions, skills, connectors, schedules, and sandbox configuration, then packages everything into a hosted deployment. For the full directory layout and packaging rules, see the CLI project file reference. For how the CLI compiles this directory and what a deploy creates, see How Managed Deep Agents work.
  1. Install managed-deepagents for Python or TypeScript.
  2. Create a local code-first agent project with mda init.
  3. Put the agent system prompt in instructions.md.
  4. Add authored tools, middleware, schedules, skills, MCP connectors, and an optional sandbox.
  5. Use mda dev to test your agent locally in LangSmith Studio, then mda deploy to deploy to LangSmith.
  6. Inspect the deployment, traces, and runtime state in LangSmith.
New to Managed Deep Agents? Start with the quickstart, then build a complete agent step by step in the tutorial.

Beta notes and limits

Operational notes that apply during private beta. Behavior may change before general availability.

Supported models

Pass model identifiers in the form {provider}:{model_id}. For example, openai:gpt-5.5. The runtime resolves models with init_chat_model, so any provider that init_chat_model supports is usable from Managed Deep Agents, as long as the runtime has credentials for that provider. See Supported providers and models for the current list. Put local keys in .env, export them in your shell, or configure them as LangSmith workspace secrets before deploying.

Context Hub memory

Managed memory is stored in the same Context Hub repo as the deployed instructions and skills, at /memories/AGENTS.md. Deploy syncs instructions.md and skills/**, but preserves existing memories/** files and does not overwrite runtime-created memory. Set disableMemory: true or disable_memory=True to disable only the built-in agent-scoped memory. For how memory persists, see How Managed Deep Agents work.

Rate limits and quotas

During private beta, Managed Deep Agents does not publish per-key, per-workspace, or per-agent request rate limits. For workspace-specific limits, contact your LangChain team at the address in your beta access email.

Support and feedback

Beta access includes direct support. The contact for bug reports and feature requests is included in the email you receive when access is granted.

Private beta scope

Managed Deep Agents is available on LangSmith Cloud in the US region only during private beta. Self-hosted and Hybrid deployments are not supported.

Next steps

Quickstart

Deploy a first code-first agent with the mda CLI.

Tutorial

Build a scheduled research agent from an empty directory.

How it works

Understand compilation, the deploy lifecycle, and Context Hub.

Custom tools

Add authored LangChain tools from your project source.

Custom middleware

Add built-in or custom middleware around model and tool calls.

Connect MCP tools

Declare remote MCP servers with Managed Deep Agents connectors.

Schedules

Run agents on managed cron schedules.

Deploy an agent

Test and deploy Managed Deep Agents with mda.

Examples

Explore a complete project that uses every primitive.

CLI reference

Review mda init, mda dev, and mda deploy.