Free developer tool

Free AI Agent Framework Picker

An AI agent framework is a library that runs the agent loop for you: model calls, tool calls, memory, handoffs and tracing. Answer six questions about your language, agent shape, durability, model vendor, hosting and team, and this picker ranks nine leading frameworks, LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK, Microsoft Agent Framework, Google ADK, Mastra, Pydantic AI and LlamaIndex, explains why the top pick fits and gives you a hello-world starter. It runs in your browser; nothing is sent anywhere.

1. Which language will you build in?
2. What are you building?
3. Long-running runs or human approval steps?
4. Which model vendor?
5. Where will it run?
6. Team experience with agents?

Top pick

OpenAI Agents SDK

by OpenAI · MIT

A lightweight agent or a few agents handing off to each other, with tracing and guardrails built in.

Why it fits

  • Built for single tool-calling agents.
  • Quick to learn with few concepts.

Watch out: Few primitives on purpose; complex branching workflows are left to your own code.

For one agent with a few tools, you may not need a framework yet: your model provider's SDK and a short tool-calling loop can be enough. Adopt a framework when you need memory, handoffs, tracing or durable runs.

Your shortlist

  1. 1. OpenAI Agents SDK Agent loop with handoffs and agents-as-tools13 pts
  2. 2. Pydantic AI Type-safe agents with dependency injection; graphs via pydantic-graph12 pts
  3. 3. Google ADK Code-first agents, sub-agent delegation and workflow graphs10 pts

Not shown for your language: Mastra.

Hello-world starter

pip install openai-agents

from agents import Agent, Runner, function_tool

@function_tool
def get_weather(city: str) -> str:
    """Get the weather for a city."""
    return f"It is always sunny in {city}."

agent = Agent(name="Assistant", instructions="You are a helpful assistant.", tools=[get_weather])
result = Runner.run_sync(agent, "What is the weather in Paris?")
print(result.final_output)

Swap in any current model ID and set your provider's API key. OpenAI Agents SDK docs

AI agent framework comparison

FrameworkLanguageOrchestrationMemory and stateToolsMCP / A2AObservabilityLicense
LangGraphLangChainPython, TypeScriptGraph / state machine with cyclesCheckpointed thread state plus a long-term storeLangChain tools, any providerMCP (adapters), A2A (Agent Server)LangSmith tracing and evalsMIT
CrewAICrewAIPythonRole-based crews of agents and tasks, plus event-driven FlowsBuilt-in short-term, long-term and entity memorycrewai-tools, any provider via LiteLLMMCP, A2ABuilt-in tracing, Langfuse and other integrationsMIT
OpenAI Agents SDKOpenAIPython, TypeScriptAgent loop with handoffs and agents-as-toolsSessions (SQLite, Redis and more)Function tools, hosted tools, guardrailsMCPBuilt-in tracing to the OpenAI dashboardMIT
Claude Agent SDKAnthropicPython, TypeScriptClaude Code agent loop as a library, with subagents and hooksResumable sessions, CLAUDE.md, automatic context compactionBuilt-in file, shell, search and web toolsMCPHooks and a streamed message logMIT (Python); TypeScript under Anthropic terms
Microsoft Agent FrameworkMicrosoftPython, .NETAgents plus graph workflows: sequential, concurrent, handoff, group chatThreads and context providers; workflow checkpointsFunction tools, OpenAPI, hosted toolsMCP, A2AOpenTelemetry built inMIT
Google ADKGooglePython, TypeScript, Java, GoCode-first agents, sub-agent delegation and workflow graphsSession and memory servicesFunction tools, Google Search, OpenAPI, other frameworks' toolsMCP, A2ADev UI traces, OpenTelemetry, built-in evalsApache 2.0
MastraMastraTypeScriptAgents plus typed workflows with branch, parallel and suspend/resumeBuilt-in working memory and semantic recallTyped tools, built-in RAG, model routerMCP client and serverTracing, evals and local StudioApache 2.0 (enterprise ee/ folders separate)
Pydantic AIPydanticPythonType-safe agents with dependency injection; graphs via pydantic-graphMessage history you controlTyped tools, validated structured outputMCP, A2A, AG-UIPydantic Logfire (OpenTelemetry)MIT
LlamaIndexLlamaIndexPythonEvent-driven Workflows, FunctionAgent and AgentWorkflowMemory blocks and serializable workflow contextQuery engines as tools, 300+ data connectorsMCPOpenTelemetry and tracing integrationsMIT

Checked November 29, 2026 against each project's README, package registry and license. A2A is listed where it is built in or offered as an official package. Frameworks move fast: confirm details in the linked docs before you commit.

Which framework fits which job

LangGraph

Production agents that need explicit control flow, durable execution and human-in-the-loop interrupts.

Watch out: More concepts to learn (state, reducers, checkpointers) than a simple agent loop.

CrewAI

Multi-agent teams you describe as roles, goals and tasks, with a fast start.

Watch out: Python only; role-play abstractions can hide what each LLM call does.

OpenAI Agents SDK

A lightweight agent or a few agents handing off to each other, with tracing and guardrails built in.

Watch out: Few primitives on purpose; complex branching workflows are left to your own code.

Claude Agent SDK

Agents that work on files and run commands: coding, ops, research and document agents.

Watch out: Runs Claude models only (Anthropic API, Amazon Bedrock, Google Vertex AI and more).

Microsoft Agent Framework

.NET or Python teams on Azure that want multi-agent orchestration with checkpoints. It succeeds AutoGen and Semantic Kernel.

Watch out: Newer than the others; some connectors are still preview packages. AutoGen itself is archived.

Google ADK

Multi-agent systems on Gemini and Google Cloud, in Python, TypeScript, Java or Go.

Watch out: Optimized for Gemini; other models go through LiteLLM or other connectors.

Mastra

TypeScript teams that want agents, workflows, memory and RAG in one batteries-included framework.

Watch out: TypeScript only; a fast-moving API, so pin versions.

Pydantic AI

Python teams that want validated, typed outputs and durable execution (Temporal, DBOS) without heavy abstractions.

Watch out: Multi-agent patterns are code you write, not a built-in crew or team.

LlamaIndex

Agents over documents: retrieval, parsing and extraction across many file types.

Watch out: Python only now (LlamaIndex.TS is archived); less suited to non-document agents.

How to choose an AI agent framework

  1. 1. Pick your language

    Frameworks that do not support your language are removed from the shortlist.

  2. 2. Describe the agent

    Choose single agent, multi-agent team, controlled workflow, document agent or file-and-shell agent.

  3. 3. Set durability, vendor and hosting

    Say whether runs must pause for approval, which model vendor you use and whether managed hosting helps.

  4. 4. Copy the starter

    Read why the top pick fits, compare it in the table and copy its hello-world starter.

AI agent framework FAQ

What is an AI agent framework?

An AI agent framework is a library that handles the agent loop for you: calling the model, running the tools it asks for, passing results back, and keeping state, memory and traces. You write the instructions and tools; the framework handles orchestration.

What is the best AI agent framework?

There is no single best one. LangGraph suits controlled, durable workflows; CrewAI suits role-based multi-agent teams; the OpenAI Agents SDK and Claude Agent SDK suit lightweight agents on those vendors' models; Google ADK and Microsoft Agent Framework suit Google Cloud and Azure; Mastra suits TypeScript teams; Pydantic AI suits typed Python; LlamaIndex suits document agents.

LangGraph vs CrewAI: which should I use?

Pick LangGraph when you need explicit control flow, checkpoints and human approval steps in Python or TypeScript. Pick CrewAI when you want to describe a team of agents by role, goal and task and get started quickly in Python.

Do I need an agent framework at all?

Not always. One agent with a few tools can run on your model provider's SDK and a short loop. A framework earns its place when you need memory, multi-agent handoffs, tracing, guardrails or runs that pause and resume.

What happened to AutoGen?

Microsoft folded AutoGen and Semantic Kernel into Microsoft Agent Framework, which is now generally available for Python and .NET. The AutoGen repository is archived, so new projects should start on Agent Framework.

Which AI agent frameworks support MCP?

All nine frameworks compared here can use Model Context Protocol tools, natively or through an adapter package. Google ADK, Microsoft Agent Framework, CrewAI, LangGraph and Pydantic AI also support the Agent2Agent (A2A) protocol.

Run your agent as an automated workflow

Picked a framework? Tornic runs agent work as repeatable workflows with steps, gates and schedules, on the Claude Code, Codex or Cursor CLI you already pay for.

Explore Tornic

Related free tools