Managed Deep Agents is in private preview, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
CLI: find the agent ID
There is no CLI command for running Managed Deep Agents yet. Use the CLI to find the agent ID, then use the REST API to create threads and stream runs. List agents:API: create threads and stream runs
Set request defaults:X-Api-Key header:
- Python (httpx)
- JavaScript (fetch)
- cURL
Create a thread
Create a thread before running the agent. Threads preserve conversation and execution state for long-running work:- Python (httpx)
- JavaScript (fetch)
- cURL
Stream a run from a thread
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:
- Python (httpx)
- JavaScript (fetch)
- cURL
| Stream mode | Use for |
|---|---|
values | Full state snapshots after steps. |
updates | Incremental state updates as the agent works. |
messages-tuple | Token-level message output for chat UIs. |
messages-tuple mode emits a messages event. The payload is a [chunk, metadata] tuple.
For route-level details, see the Managed Deep Agents API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

