BASE

Deep Agents

Deep Agents

SDK and development tools · Free

A LangChain Python library for multistep agents with planning, file backends, subagents, memory, and control over tool calls.

Also known as: langchain-ai/deepagents

Resource illustration: Deep Agents

Open resource ↗

What you can use for free

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

Paid features and costs

Model APIs, LangSmith, sandbox, and hosting are billed separately.

Access and limitations

You can use the code under the stated license; servers, APIs, and compute must be provided separately. Model APIs, LangSmith, sandbox, and hosting are billed separately.

Use cases

  • Create an agent with the required tools and an explicitly chosen file backend.
  • Set delegation and approval rules, then run a small reproducible scenario.

Example workflow

A possible workflow; this is not a report of hands-on testing.

A LangChain Python library for multistep agents with planning, file backends, subagents, memory, and control over tool calls.

Before you start

  • A model with tool calling, a toolset, and a restricted file backend.

Steps

  1. Create an agent with the required tools and an explicitly chosen file backend.
  2. Set delegation and approval rules, then run a small reproducible scenario.
  3. Compare the result with the workflow's goal; after changing the project, run its standard checks.

Check your result

  • The agent retains state; tools and files are available only within the specified scope.
  • Check connection permissions and dependency terms; confirm external service costs if the workflow requires them.

Choosing Deep Agents

Create an agent with the required tools and an explicitly chosen file backend.

Choose this when

  • Create an agent with the required tools and an explicitly chosen file backend.
  • Set delegation and approval rules, then run a small reproducible scenario.

Requirements

  • Choose a model with tool calling and an appropriate file or sandbox backend.

Things to consider

  • Costs and limits of free use: Model APIs, LangSmith, sandbox, and hosting are billed separately.
  • Terms of use: MIT for the code and instructions in this repository; integrated products have separate licenses.
  • The filesystem and long-term memory use pluggable backends; their presence in the harness does not promise retention of all local data between sessions without configuration.

Frequently asked questions

What can you use for free in Deep Agents?

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

What additional costs might arise with Deep Agents?

Model APIs, LangSmith, sandbox, and hosting are billed separately.

What terms of use matter for Deep Agents?

MIT for the code and instructions in this repository; integrated products have separate licenses.

How do you get started with Deep Agents?

Create an agent with the required tools and an explicitly chosen file backend. Set delegation and approval rules, then run a small reproducible scenario. Compare the result with the workflow's goal; after changing the project, run its standard checks.

Must I write a custom LangGraph graph for every subagent?

No: Deep Agents includes a ready-made harness with filesystem, context management, and subagents. If needed, you can supply a LangGraph CompiledStateGraph as a subagent and use custom orchestration alongside the built-in orchestration.

License

MIT for the code and instructions in this repository; integrated products have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Deep Agents
  • langchain-ai
  • Developer tools

Sources

Other resources