Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.
Prerequisites
Before you deploy, make sure you have:- A workspace with Managed Deep Agents public beta access.
-
A LangSmith API key for that workspace, either in
.envor your shell environment. -
The
mdaCLI installed frommanaged-deepagents. -
Project dependencies installed with
uv syncfor generated Python projects. -
Model provider credentials, such as
OPENAI_API_KEY, in.env, your shell environment, or LangSmith workspace secrets.
Deploy to LangSmith
Deploy the local project:--deployment-type prod when creating a production deployment:
--no-wait to trigger the build without polling for completion:
--no-wait is set, schedule reconciliation is skipped for that deploy invocation because the CLI exits before the deployment reaches DEPLOYED.
On success, the CLI prints the LangSmith deployment dashboard URL. For the full deploy step list, see the CLI reference.
Secrets and environment files
mda deploy reads project .env values before shell environment variables. Use .env for the LangSmith API key that authenticates the deploy and for runtime secrets the hosted deployment needs:
.env
LANGSMITH_API_KEY, LANGGRAPH_HOST_API_KEY, LANGCHAIN_API_KEY, and other platform variables are reserved. They can authenticate the deploy, but they are not uploaded as user-managed deployment secrets.
Non-reserved .env entries, such as model provider keys, MCP tokens, and custom tool credentials, are forwarded as hosted deployment secrets when mda deploy creates or updates the deployment. If the configured model requires a provider key, deploy fails before upload unless that key is available from .env, the shell environment, or LangSmith workspace secrets. When the provider key is only in the shell environment, mda deploy forwards it as a secret for that deploy.
Reserved platform variables, empty values, .env, and .env.* files are not copied into the compiled build archive.
For authentication key order and reserved variables, see the CLI reference.
Troubleshoot a deploy
For deploy troubleshooting, see the CLI reference. If a deployment reachesBUILD_FAILED or DEPLOY_FAILED, open the printed deployment URL in LangSmith and inspect the revision logs.
Next steps
Identity
Authenticate callers and provide private threads.
Schedules
Run agents on managed cron schedules.
Custom tools
Add authored LangChain tools to the agent definition.
CLI reference
Look up every
mda command and flag.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

