Skip to main content

Deployment tooling for Deep Agents - bundle, run, and ship agents to LangGraph Platform.

Project description

Deep Agents CLI — Deployment Tooling

PyPI - Version PyPI - License PyPI - Downloads Twitter

[!IMPORTANT] The interactive coding agent moved. As of deepagents-cli==0.1.0, this package contains only the deployment subcommands (init, dev, deploy). The interactive REPL — previously launched via deepagents — now ships as deepagents-code (dcode).

curl -LsSf https://langch.in/dcode | bash
dcode

Install

uv tool install deepagents-cli

You'll need a LangSmith API key with access to the Managed Deep Agents private preview (waitlist). Export it before running any command, or put it in a repo .env or ~/.deepagents/.env:

export LANGSMITH_API_KEY="..."

Usage

# Scaffold a new project folder
deepagents init my-agent

# Register any MCP servers you intend to use (one-time, per workspace)
deepagents mcp-servers add --url https://tools.langchain.com \
                            --header X-Api-Key=$LANGSMITH_API_KEY \
                            --name Fleet

# init scaffolds an empty tools.json. Add tools that reference a registered
# MCP server's URL (otherwise the agent has no tools), e.g. the Fleet server
# registered above:
#   { "name": "read_url_content", "mcp_server_url": "https://tools.langchain.com",
#     "mcp_server_name": "Fleet", "display_name": "read_url_content" }

# Upsert the project as a managed agent on /v1/deepagents/*
cd my-agent && deepagents deploy

deepagents init scaffolds an empty tools.json, an example skill under skills/, and an example subagent under subagents/; edit or remove them to suit your agent. tools.json starts empty because every tool must reference an MCP server that is already registered in the workspace (deepagents mcp-servers add) — so a freshly scaffolded project deploys without first registering a server.

New agents default to the default backend — switch agent.json's backend.type to thread_scoped_sandbox (or agent_scoped_sandbox) to opt into a managed sandbox. The CLI does not create or run sandboxes locally; sandbox lifecycle is handled by the Managed Deep Agents platform.

Project layout

my-agent/
  agent.json              # name, description, backend, runtime.model, permissions
  AGENTS.md               # system prompt
  tools.json              # tools the agent can call (optional)
  skills/<name>/SKILL.md  # frontmatter-tagged skills (optional)
  subagents/<name>/       # delegated subagent definitions (optional)

Other commands

deepagents agents list                  # list workspace agents
deepagents agents get <agent_id>        # show one agent
deepagents agents delete <agent_id>     # delete an agent

deepagents mcp-servers list                  # list workspace MCP servers
deepagents mcp-servers add --url URL          # register a server
deepagents mcp-servers get <id|name|url>      # show one server
deepagents mcp-servers tools <id|name|url>    # list a server's tools
deepagents mcp-servers update <id|name|url>   # update server URL or headers
deepagents mcp-servers delete <id|name|url>   # remove a server
deepagents mcp-servers connect <id|name|url>  # start OAuth for a server

get, update, delete, and connect accept an MCP server's id, exact name, or URL — a non-id value is resolved against mcp-servers list (URLs are matched ignoring case and trailing slash).

📖 Resources

📕 Releases & Versioning

See our Releases and Versioning policies.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

Project details


Release history Release notifications | RSS feed

This version

0.2.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepagents_cli-0.2.1.tar.gz (316.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepagents_cli-0.2.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file deepagents_cli-0.2.1.tar.gz.

File metadata

  • Download URL: deepagents_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 316.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for deepagents_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 12a2f9717d6df343dbe767dff30920746585a0f23c549cbd86c5f32b05513d85
MD5 0f244eedb417cfd48b0be8e32af5cc8d
BLAKE2b-256 f8799598b75aefb74ccb1bfc2904872e92eb9d2e7c2c8497e548dc29ecf2b880

See more details on using hashes here.

File details

Details for the file deepagents_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: deepagents_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for deepagents_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd39efc7e9401f762219a958948dcfe091544c1c3ded7b3c4b0af172c51c9c59
MD5 8ed5748ca43c510ba723a55156476cb7
BLAKE2b-256 391a2602693b0ca092e2524eb4c6e3ab3aed75b302fb81ee30a7f6de64acfa48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page