Skip to content
AgentAgent framework

pydantic-deepagents

Python framework and self-hosted terminal assistant for building deep, tool-using AI

pydantic-deepagents is an open-source agent framework for ai models and llm tooling. It is available on CLI, API, Linux, macOS, Windows and Self-hosted.

Pricing
Open source
Platforms
CLI, API, Linux
GitHub stars
1.1K
Last commit
Language
Python
License
MIT

Similar agents

About pydantic-deepagents

Pydantic Deep Agents bundles a full agent harness into one call: a model gets a filesystem, shell, web search, persistent memory, planning, sub-agents and automatic summarization of long conversations. Files land in a workspace that can be in memory, on local disk, or inside a Docker sandbox, so the same agent code runs in a throwaway test or against a real project directory.

The project is built on Pydantic AI and works with Claude, GPT, Gemini and other models that Pydantic AI supports. Custom tools are ordinary async Python functions with type hints, receiving a typed dependency object, and the codebase is checked with strict Pyright and MyPy.

The same harness also ships as a terminal assistant installable with pip or a shell script. It includes a live run-forking feature that splits an in-flight run into parallel branches and merges the winner, along with MCP server support and tool approval dialogs. It suits Python developers who want to build their own coding or research agent and teams who would rather self-host a Claude Code-style tool.

What it does

Batteries-included agent toolkit
Filesystem, shell, web, planning, memory and sub-agents can be switched on with keyword arguments.
Pluggable workspaces
Run the agent's files in memory, on local disk, or in Docker and other sandboxes without changing prompts.
Automatic context handling
Long conversations are summarized and oversized tool outputs are moved to files so runs do not overflow.
Typed custom tools
Plain async functions with type hints become agent tools and receive typed dependencies.
Live run forking
An in-flight run can branch into isolated attempts that an AI judge or test command compares and merges.
MCP server support
Connects to Model Context Protocol servers and supports importing them from Claude Code.

Good for

  • Build a custom coding assistant that edits files and runs commands in a sandbox
  • Create a research agent that searches the web and writes reports to a workspace
  • Run a headless agent from scripts or CI to fix failing tests
  • Compare several approaches to a refactor in parallel branches before choosing one
  • Self-host a terminal AI assistant on a model of your choice

Pricing

Open source

Free and open source (MIT), self-hosted

Prices change. Check vstorm-co.github.io before you buy.

pydantic-deepagents FAQ

Which models does pydantic-deepagents work with?

Any model supported by Pydantic AI, including Claude, GPT, Gemini, OpenRouter models and local Ollama models.

How do I install pydantic-deepagents?

Run pip install pydantic-deep for the framework, or pip install "pydantic-deep[cli]" or the install script for the terminal assistant.

Where do the agent's files go?

By default they go to an in-memory workspace; passing a LocalWorkspace writes them to real files on disk.

What is the license?

The project is released under the MIT license.

Is pydantic-deepagents free?

Yes. pydantic-deepagents is open source, so you can use and self-host it for free.

What are the best alternatives to pydantic-deepagents?

The closest alternatives to pydantic-deepagents are pydantic-ai, atomic-agents, OpenProgram, 5dive and microagents.

Where this comes from

  • Description: written from the project's README and the project's website.