OSI-licensed open source

Best AI Agent Frameworks for Python and TypeScript (2026)

An AI agent framework handles the loop around a language model: calling tools, keeping state and memory, handing work between agents, streaming output, and recovering when something fails. The model does the reasoning; the framework decides how that reasoning is wired into your application.

Frameworks differ mainly in control style (explicit graphs vs autonomous crews vs a thin tool loop), language (Python, TypeScript, .NET) and how tightly they couple to one model vendor. All of the frameworks below are open source; several are maintained by a model provider and work best, but not exclusively, with that provider's models. Note that Microsoft now positions Microsoft Agent Framework as the successor to AutoGen, which is in maintenance mode.

Tools, licences and pricing checked against vendor and repository pages on November 8, 2026.

What to look for

  • •Control model: explicit graph/workflow vs autonomous multi-agent vs simple tool loop
  • •Language and runtime fit: Python, TypeScript, .NET
  • •Model portability across providers
  • •Durable execution, checkpoints and human-in-the-loop
  • •Observability: tracing, evals and cost tracking
  • •MCP support for plugging in existing tool servers

At a glance

ToolBest forPricingLicence
LangGraphComplex, controllable agent workflows that must survive failuresFree and open source; LangSmith: see vendor pricingMIT
CrewAIRole-based multi-agent teams in PythonFree and open source; AMP: see vendor pricingMIT
OpenAI Agents SDKLightweight agents with handoffs and guardrailsFree and open source; model usage billed by your providerMIT
Microsoft Agent Framework.NET and Python teams, especially on AzureFree and open source; Azure services billed separatelyMIT
Google Agent Development Kit (ADK)Teams on Google Cloud or Gemini that want built-in eval and deploy toolingFree and open source; Google Cloud usage billed separatelyApache-2.0
Pydantic AIPython teams that value type safety and production observabilityFree and open source; Logfire: see vendor pricingMIT
LlamaIndexDocument-heavy agents and RAG pipelinesFree and open source; LlamaParse: see vendor pricingMIT
MastraTypeScript and Next.js teams building agentsFree and open source core; enterprise features licensed separatelyApache-2.0
Vercel AI SDKWeb apps that need streaming chat UIs plus tool-calling agentsFree and open source; AI Gateway usage: see vendor pricingApache-2.0
Claude Agent SDKCoding and computer-task agents built on ClaudeFree SDK; Claude API usage billed by AnthropicMIT

1. LangGraph

MIT

Best for: Complex, controllable agent workflows that must survive failures · Free and open source; LangSmith: see vendor pricing

LangGraph is a low-level framework for stateful, long-running agents built as graphs, with durable execution, human-in-the-loop state inspection and short- and long-term memory. It has Python and JavaScript (LangGraph.js) versions; LangSmith Deployment is the commercial hosting option.

Strengths

  • + Explicit graph gives fine-grained control
  • + Durable execution and checkpoints built in

Trade-offs

  • − More boilerplate than higher-level frameworks
  • − Best tooling ties into the LangChain/LangSmith ecosystem

2. CrewAI

MIT

Best for: Role-based multi-agent teams in Python · Free and open source; AMP: see vendor pricing

CrewAI orchestrates role-playing autonomous agents. Crews handle autonomous collaboration between agents, while Flows give event-driven control over execution and state. CrewAI AMP is the commercial control plane for deployment, observability and governance.

Strengths

  • + Fast to prototype multi-agent setups
  • + Flows add deterministic control when needed

Trade-offs

  • − Autonomous crews can be harder to debug and bound in cost
  • − Python only

3. OpenAI Agents SDK

MIT

Best for: Lightweight agents with handoffs and guardrails · Free and open source; model usage billed by your provider

OpenAI's lightweight framework for multi-agent workflows built on agents, handoffs, guardrails, sessions and built-in tracing. It works with the Responses and Chat Completions APIs and is provider-agnostic, supporting many other LLMs; a TypeScript version lives in openai-agents-js.

Strengths

  • + Small set of primitives, quick to learn
  • + Tracing included

Trade-offs

  • − Fewer workflow and durability features than graph frameworks
  • − Tightest integration is with OpenAI's platform

4. Microsoft Agent Framework

MIT

Best for: .NET and Python teams, especially on Azure · Free and open source; Azure services billed separately

Microsoft Agent Framework builds and orchestrates agents and multi-agent workflows in Python and .NET, with graph-based workflows (sequential, concurrent, handoff, group collaboration), checkpointing, streaming and human-in-the-loop. The AutoGen repository is in maintenance mode and names it AutoGen's enterprise-ready successor; migration guides from Semantic Kernel and AutoGen are provided.

Strengths

  • + First-class .NET support alongside Python
  • + Clear migration path from AutoGen and Semantic Kernel

Trade-offs

  • − Newer project; APIs still evolving
  • − Hosted features lean on Azure AI Foundry

5. Google Agent Development Kit (ADK)

Apache-2.0

Best for: Teams on Google Cloud or Gemini that want built-in eval and deploy tooling · Free and open source; Google Cloud usage billed separately

ADK is a code-first framework for building, evaluating and deploying agents. It is optimized for Gemini but model-agnostic, ships a development UI (adk web), and deploys to Docker, Cloud Run or Vertex AI Agent Engine. Official ports exist for Java, Kotlin, Go and TypeScript.

Strengths

  • + Dev UI and evaluation built in
  • + Many language ports

Trade-offs

  • − Deployment story is strongest on Google Cloud
  • − Gemini-first defaults

6. Pydantic AI

MIT

Best for: Python teams that value type safety and production observability · Free and open source; Logfire: see vendor pricing

Pydantic AI is a type-safe Python agent framework with structured outputs, typed dependency injection and typed tools, plus graph workflows. It supports most model providers, MCP, OpenTelemetry instrumentation (one-line Logfire integration) and durable execution through engines such as Temporal, DBOS and Prefect.

Strengths

  • + Strong typing catches errors early
  • + Durable execution via several workflow engines

Trade-offs

  • − Python only
  • − Less opinionated about multi-agent patterns

7. LlamaIndex

MIT

Best for: Document-heavy agents and RAG pipelines · Free and open source; LlamaParse: see vendor pricing

LlamaIndex is an open-source toolkit for agentic applications over documents, with agents and workflows. The company's commercial focus is LlamaParse, a document parsing, extraction and indexing platform.

Strengths

  • + Deep data-connector and retrieval tooling
  • + Workflows for event-driven agents

Trade-offs

  • − Company focus has shifted toward LlamaParse
  • − Large API surface

8. Mastra

Apache-2.0

Best for: TypeScript and Next.js teams building agents · Free and open source core; enterprise features licensed separately

Mastra is a TypeScript framework for AI applications and agents with agents, a graph workflow engine (.then, .branch, .parallel), memory, evals and observability, and MCP server authoring. Core code is Apache-2.0; code in ee/ directories is under the source-available Mastra Enterprise License.

Strengths

  • + Batteries-included for TypeScript
  • + Workflows, memory and evals in one package

Trade-offs

  • − Enterprise (ee/) features need a licence in production
  • − Younger ecosystem than Python frameworks

9. Vercel AI SDK

Apache-2.0

Best for: Web apps that need streaming chat UIs plus tool-calling agents · Free and open source; AI Gateway usage: see vendor pricing

The AI SDK is an open-source TypeScript toolkit for AI apps and agents. Its ToolLoopAgent class runs a model with a system prompt and tools; provider packages cover OpenAI, Anthropic, Google and many others, and UI helpers support Next.js, React, Svelte, Vue and Angular.

Strengths

  • + Excellent streaming UI integration
  • + Provider-agnostic model interface

Trade-offs

  • − Agent features are thinner than dedicated frameworks
  • − Model strings default to routing through Vercel's AI Gateway

10. Claude Agent SDK

MIT

Best for: Coding and computer-task agents built on Claude · Free SDK; Claude API usage billed by Anthropic

The Claude Agent SDK packages the agent loop behind Claude Code: file, shell and edit tools, custom tools served by in-process MCP servers, hooks such as PreToolUse to allow or deny actions, and permission modes. The repository code is MIT-licensed, but use of the SDK is governed by Anthropic's Commercial Terms of Service.

Strengths

  • + Production-tested tool loop with file and shell tools
  • + Hooks give deterministic guardrails

Trade-offs

  • − Claude-only
  • − Usage governed by Anthropic commercial terms in addition to MIT

New tools in this space, weekly

One email a week with the tools, launches and releases added to TechLogHub. Unsubscribe in one click.

Get the TechLogHub digest

One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

How to choose

If you need…Start with
Explicit, durable workflowsLangGraph
Role-based multi-agent prototypeCrewAI
Minimal primitives with handoffsOpenAI Agents SDK
.NET or AzureMicrosoft Agent Framework
Typed Python in productionPydantic AI
TypeScript backend agentsMastra
Chat UI in a web appVercel AI SDK
Coding/file-system agentsClaude Agent SDK

Best AI Agent Frameworks for Python and TypeScript: FAQ

Quick answers to common questions

What is an AI agent framework?

An AI agent framework is a library that runs the loop around an LLM: tool calling, state, memory, multi-agent handoffs, streaming and error recovery. It lets you build agents without hand-writing that orchestration.

Is AutoGen still maintained?

AutoGen is in maintenance mode. Its repository names Microsoft Agent Framework as the enterprise-ready successor, and Microsoft provides migration guidance.

LangGraph vs CrewAI: which should I use?

LangGraph gives explicit, graph-based control with durable execution, suited to production workflows that must be predictable. CrewAI is faster for role-based multi-agent prototypes, with Flows when you need more control. Both are MIT-licensed.

Which agent frameworks support TypeScript?

Mastra and the Vercel AI SDK are TypeScript-first. LangGraph (LangGraph.js), the OpenAI Agents SDK (openai-agents-js) and Google ADK also have TypeScript versions.

Do agent frameworks lock me into one model provider?

Mostly no. LangGraph, CrewAI, Pydantic AI, Mastra, the Vercel AI SDK, the OpenAI Agents SDK and Google ADK all support multiple providers. The Claude Agent SDK is Claude-only.

Guides and comparisons

Related categories

Building a tool in this category?

List it on TechLogHub and we'll review it for this guide.

Submit a tool