Best of · Agent frameworks
Best agent frameworks and SDKs
The 10 highest-scoring of 24 agent frameworks and SDKs on the Anchor benchmark, with a pick for each need and where each one falls short. Scores come from public evidence, re-checked as vendors change.
- 24 ranked
- 15 agent-ready
- Updated 23 November 2026
Top three
Picks by need
Worked out from the scores, prices and facts, so they change when the research does.
Agent ergonomics
97/100 on agent ergonomics, against 95 for the overall leader.
Maintenance & community
100/100 on maintenance & community, against 97 for the overall leader.
Lowest paid price per vCPU hour
$0.071 per vCPU hour, the lowest of the 3 listings here with a paid price in this unit (free allowances aside).
Also Agent Development Kit (ADK), $0.085 per vCPU hour.
Self-hosting under an open licence
self-hosted, MIT licence.
Also TradingAgents, self-hosted, Apache-2 licence.
The shortlist
| # | Tool | Grade | Best for | Price | Where |
|---|---|---|---|---|---|
| 1 | AI SDK Vercel |
AA 93.6 | TypeScript teams building agents and chat UIs who want one API across many providers and a short path to MCP. | Free · OSS | Library |
| 2 | OpenAI Agents SDK OpenAI |
AA 90 | Teams that want hand-offs, guardrails and approvals with little code, and are happy with OpenAI's tracing or will turn it off. | Free · OSS | Library |
| 3 | Pydantic AI Pydantic |
AA 85.6 | Python teams that want typed, validated outputs and tools, many model providers and durable runs on an engine they already use. | Free · OSS | Library |
| 4 | Strands Agents Amazon Web Services |
A 83.7 | Python or TypeScript teams, especially on AWS, who want a model-driven loop with MCP, multi-agent patterns and approval gates. | Free · OSS | Library |
| 5 | Microsoft Agent Framework Microsoft |
A 83.1 | Teams on Azure or .NET, and for teams moving off AutoGen or Semantic Kernel, that want MCP, approval, checkpointed workflows and OpenTelemetry in one SDK. | Free · OSS | Library |
| 6 | AgentOS Framers Lab, Inc. |
A 79.5 | TypeScript teams that want long-term memory, personas, voice and channel adapters and multi-agent teams in one package, and that will pin versions. | Free · OSS | Library |
| 7 | Genkit |
A 78.1 | Teams adding agents to full-stack apps in TypeScript, Go, Python or Dart, especially on Firebase or Google Cloud. | Free · OSS | Library |
| 8 | Mastra Kepler Software, Inc. |
A 78 | TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework. | Free · OSS | Library |
| 9 | Haystack deepset |
BB 77.8 | Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs. | Free · OSS | Library |
| 10 | Docker Agent Docker |
BB 77.4 | Teams already on Docker who want agents defined in a file, shared through an OCI registry and run the same way in a terminal, in CI or behind an HTTP, MCP or A2A server. | Free · OSS | Library |
14 more are ranked in the full table.
How to choose
- Telemetry sent by defaultCheck what the framework sends by default and how to switch it off, since traces can carry prompts, tool arguments and customer data to a third party.
- Durable state and resumptionCheck where run state is stored and whether a run resumes after a crash mid-tool-call, because an agent that restarts from scratch can repeat payments or emails.
- Human approval enforcementCheck whether approval gates run in code or only appear in prompts, since a model can ignore a prompt rule but a code check is harder to get past.
- Multi-agent hand-offs and tracingCheck how hand-offs pass context and whether each step appears in traces, since a lost hand-off is hard to debug without a record of what each agent saw.
Each one in detail
AI SDK
AA 93.6/100Open-source TypeScript toolkit from Vercel for building AI applications and agents, with a provider-agnostic API, a ToolLoopAgent, an MCP client and UI hooks for React, Vue, Svelte and Angular.
Verdict A TypeScript agent toolkit with ToolLoopAgent, a built-in MCP client, per-tool approvals that can be HMAC-signed, opt-in OpenTelemetry and durable runs through WorkflowAgent. It ships three major versions in 14 months (5.0, 6.0, 7.0), each with a migration guide, and plain string model IDs route through Vercel's AI Gateway unless another provider is set.
Best for TypeScript teams building agents and chat UIs who want one API across many providers and a short path to MCP.
Strengths
- Apache 2.0, with 246 npm releases of
aiin the 90 days to 6 October 2026 - MCP client in @ai-sdk/mcp with HTTP, SSE and stdio transports, OAuth and opt-in retries for tools/call
- Per-tool approvals, HMAC-signed approvals and Open Policy Agent rules in @ai-sdk/policy-opa
Weaknesses
- TypeScript only, and
ai7.x needs Node 22 or newer - Three major versions between July 2025 and June 2026, each with breaking changes
- String model IDs go to Vercel's AI Gateway by default, which needs a Vercel key
Price Free · OSSAuth API keyx402 NoLibrary
OpenAI Agents SDK
AA 90/100Multi-agent framework built on agents, hand-offs and guardrails, with sessions, tracing and human approval.
Verdict MCP in about 11 lines, with static and dynamic tool filters and require_approval. Tracing on by default, with model and tool content, sent to OpenAI.
Best for Teams that want hand-offs, guardrails and approvals with little code, and are happy with OpenAI's tracing or will turn it off.
Strengths
- MCP in about 11 lines, with static and dynamic tool filters and require_approval
- Input and output guardrails, built-in human approval and sandbox agents
- Typed exceptions plus error_handlers, and RunState to resume a paused run
Weaknesses
- Tracing on by default, with model and tool content, sent to OpenAI
- Tracing isn't available to zero-data-retention organisations
- Pre-1.0, and minor releases can carry breaking changes, as 0.20.0, 0.21.0 and 0.22.0 did
Price Free · OSSAuth API keyx402 NoLibrary
Pydantic AI
AA 85.6/100Typed Python agent framework for 25+ model providers, with MCP, A2A and durable execution.
Verdict Typed outputs and tools, validated by Pydantic, with failed validations sent back to the model. Python only.
Best for Python teams that want typed, validated outputs and tools, many model providers and durable runs on an engine they already use.
Strengths
- Typed outputs and tools, validated by Pydantic, with failed validations sent back to the model
- No telemetry until you configure OpenTelemetry or Logfire, and the docs say nothing is sent otherwise
- Durable execution on nine engines, including Temporal, DBOS, Prefect, Restate and AWS Lambda
Weaknesses
- Python only, and 3.11 or newer since 2.55.0
- 1.1k open issues and 469 open pull requests on 1 November 2026, roughly double the 1 October counts
- Fifteen advisories in 2026, four high, including SSRF, three cloud-metadata blocklist bypasses and a cross-site flaw in the web chat UI
Price Free · OSSAuth Nonex402 NoLibrary
Strands Agents
A 83.7/100Strands Agents is AWS's open-source agent SDK for Python and TypeScript. A model-driven loop runs tools, MCP servers, multi-agent patterns, sessions, interrupts for human approval and OpenTelemetry tracing, with Amazon Bedrock as the default model provider.
Verdict An Apache-2.0 agent SDK for Python and TypeScript with a managed MCP client, multi-agent patterns, interrupts and Cedar policies for approval, opt-in OpenTelemetry and no usage analytics. Bedrock is the default model, the default sandbox is the local host, and three session-isolation advisories were fixed in October 2026.
Best for Python or TypeScript teams, especially on AWS, who want a model-driven loop with MCP, multi-agent patterns and approval gates.
Strengths
- No usage analytics found, with OpenTelemetry tracing opt-in
- Interrupts and interventions pause tool calls for human approval or a Cedar policy
- MCP servers passed straight to the agent, with lifecycle handled
Weaknesses
- Three advisories in October 2026 on A2A session sharing and world-readable default session files, fixed in 1.43.0 and 1.48.0
- The default sandbox for shell and file tools is the local host
- Bedrock is the default provider, so a bare agent needs AWS credentials and model access
Price Free · OSSAuth Nonex402 NoLibrary
Microsoft Agent Framework
A 83.1/100Microsoft Agent Framework is an open-source SDK for building AI agents and multi-agent workflows in Python and .NET, with a Go version in public preview. Microsoft names it the successor to AutoGen and Semantic Kernel.
Verdict Python 1.24.0 and .NET 1.27.0 are MIT, past 1.0 and released about weekly, with an MCP client, tool approval, checkpointed graph workflows and OpenTelemetry. Breaking changes ship in minor releases, a version User-Agent and a feature-usage token are sent by default, and a high-severity advisory in the .NET declarative workflows package was published on 7 October 2026.
Best for Teams on Azure or .NET, and for teams moving off AutoGen or Semantic Kernel, that want MCP, approval, checkpointed workflows and OpenTelemetry in one SDK.
Strengths
- MIT, with Python 1.24.0 and .NET 1.27.0 both tagged on 30 October 2026, past 1.0 since 2 April 2026
- 22 tagged releases in the 90 days to 1 November 2026, 11 for Python and 11 for .NET
- MCP client in the core package over stdio and streamable HTTP, with a tool allow-list, per-tool approval and optional progressive disclosure
Weaknesses
- Changes marked [BREAKING] shipped in minor releases of released packages, including agent-framework-core in 1.22.0 on 15 October and 1.23.0 on 22 October 2026
- A package and version User-Agent goes out on client requests by default, with a feature-usage token on Foundry and Azure OpenAI paths. Two environment variables turn them off
- Three advisories were published on 7 October 2026 against .NET packages, one high (CVSS 7.5), all with fixed versions
Price Free · OSSAuth Nonex402 NoLibrary
AgentOS
A 79.5/100Open-source TypeScript agent framework from Framers Lab, installed from npm as @framers/agentos. It runs agents with long-term memory, multi-agent teams, graph workflows with checkpoints, guardrails and approval gates across 11 model providers.
Verdict A TypeScript agent framework with typed tools, multi-agent strategies, checkpointed graphs, approval gates and no telemetry of its own. It is at 0.15.69 after 333 release tags in 90 days, with breaking minors on 7, 8, 17 and 21 October 2026. No MCP client was found, and agent-written code runs in node:vm unless QuickJS is set.
Best for TypeScript teams that want long-term memory, personas, voice and channel adapters and multi-agent teams in one package, and that will pin versions.
Strengths
- Apache 2.0, with no analytics or telemetry code found in the source and a privacy page that says the runtime sends nothing to the vendor
- Approval gates on five triggers (named tools, agents, forged tools, the final return, strategy overrides) with CLI, Slack, webhook and LLM-judge handlers
- An optional QuickJS executor runs agent-written code in its own WebAssembly instance with a memory cap
Weaknesses
- Version 0.15.69, with 95 release tags after 0.14.2 to 1 November 2026 and breaking minors 0.14.0 and 0.15.0 in that time
- No MCP client found in the package source or the docs sitemap
- Agent-written code runs by default in an in-process node:vm context, which Node says is not a security mechanism
Price Free · OSSAuth API keyx402 NoLibrary
Genkit
A 78.1/100Genkit is Google's open-source framework for building AI apps and agents in TypeScript, Go, Python and Dart, with flows, tool calling, interrupts, retrieval, an MCP client and server, and a local Developer UI.
Verdict An open-source framework in TypeScript, Go, Python and Dart with tool calling, interrupts for human approval, a ToolApproval middleware, an MCP host, client and server, and llms.txt docs per language. The Python SDK is still 0.x and marked Beta, and the CLI and Developer UI send Google Analytics usage data unless opted out.
Best for Teams adding agents to full-stack apps in TypeScript, Go, Python or Dart, especially on Firebase or Google Cloud.
Strengths
- Apache-2.0 SDKs in four languages, with genkit 1.44.0 on npm, Go 1.14.0 and Dart 1.0 stable
- Interrupts pause the tool loop for human approval, and a ToolApproval middleware can send calls outside an allowlist to a judge model
- @genkit-ai/mcp connects to stdio and Streamable HTTP MCP servers, namespaces their tools and can serve Genkit tools as an MCP server
Weaknesses
- The Genkit CLI and Developer UI send Google Analytics events after a first-run notice, until
genkit config set analyticsOptOut true - The Python SDK is 0.14.0 with a Beta classifier and needed a migration guide from 0.12 to 0.13
- No SECURITY.md in the repository and no security.txt on genkit.dev
Price Free · OSSAuth API keyx402 NoLibrary
Mastra
A 78/100Open-source TypeScript framework from Mastra for building agents and workflows, with memory, RAG, evals, tracing, an MCP client and server, and a local Studio. An optional hosted platform runs deployments and observability.
Verdict A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.
Best for TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.
Strengths
- MCP client with requireToolApproval per server or per tool, allowedHosts and a curated environment for stdio servers
- Guardrail processors for prompt injection, PII, moderation and cost limits, run on input and output
- Workflows with snapshots, suspend and resume, and durable agents on Inngest or an evented engine
Weaknesses
- Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026
- CLI, server and Studio send usage analytics by default, including token counts every 15 minutes, off with MASTRA_TELEMETRY_DISABLED=1
- No SECURITY.md, no security.txt and no bug bounty found
Price Free · OSSAuth API keyx402 NoLibrary
Haystack
BB 77.8/100Haystack is deepset's open-source Python framework for building agents and retrieval pipelines, with an Agent component, MCP tool loading, human approval hooks, pipeline breakpoints and integrations for model providers and vector stores.
Verdict An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.
Best for Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.
Strengths
- ConfirmationHook asks a person to confirm, change or reject a tool call, with a policy set per tool
- Pipelines save a snapshot of the last valid state when a run fails, and breakpoints pause and resume runs
- A written breaking change policy keeps deprecated functionality working for one minor release with a FutureWarning
Weaknesses
- Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names
- Version numbers do not follow semantic versioning, and minor releases remove deprecated functionality
- SECURITY.md puts input validation, SSRF prevention and untrusted pipeline files outside Haystack's scope
Price Free · OSSAuth Nonex402 NoLibrary
Docker Agent
BB 77.4/100Docker's open-source runtime for building and running AI agents from YAML or HCL files, formerly cagent. It runs as a docker agent CLI plugin with a terminal UI, headless mode, HTTP, MCP and A2A servers, and a Go library.
Verdict An agent with an MCP server is eight lines of YAML, and the same file runs in a terminal, headless, or as an HTTP, MCP or A2A server. Usage telemetry is on by default and can carry prompts passed as command arguments, and breaking changes keep shipping in minor releases, two of them in October 2026 without a breaking label.
Best for Teams already on Docker who want agents defined in a file, shared through an OCI registry and run the same way in a terminal, in CI or behind an HTTP, MCP or A2A server.
Strengths
- An agent with one MCP server is eight lines of YAML, with a published JSON Schema for the config
- Four safety modes, allow, ask and deny rules, and a
--sandboxflag that runs the agent in a Docker Sandboxes VM - Headless
run --execwith NDJSON events, structured output, and budgets for cost, tokens and time
Weaknesses
- Usage telemetry is on by default and command events can include prompts passed as arguments
- Two high-severity advisories in 2026, each letting tools or shell commands run without approval, both fixed
- Breaking changes ship in minor releases, three labelled between July and September 2026 and two unlabelled in October (1.152.0, 1.153.0)
Price Free · OSSAuth Nonex402 NoLibrary
Head to head
- OpenAI Agents SDK vs AI SDK AA 90 vs AA 93.6
- Pydantic AI vs AI SDK AA 85.6 vs AA 93.6
- Strands Agents vs AI SDK A 83.7 vs AA 93.6
- Microsoft Agent Framework vs AI SDK A 83.1 vs AA 93.6
- OpenAI Agents SDK vs Pydantic AI AA 90 vs AA 85.6
- OpenAI Agents SDK vs Strands Agents AA 90 vs A 83.7
- Microsoft Agent Framework vs OpenAI Agents SDK A 83.1 vs AA 90
- Pydantic AI vs Strands Agents AA 85.6 vs A 83.7
- Microsoft Agent Framework vs Pydantic AI A 83.1 vs AA 85.6
- Microsoft Agent Framework vs Strands Agents A 83.1 vs A 83.7
Questions
What are the highest-rated agent frameworks and SDKs for AI agents?
AI SDK has the highest benchmark score of the 24 ranked agent frameworks and SDKs, 93.6 (AA). OpenAI Agents SDK is second with 90 (AA).
How many agent frameworks and SDKs are agent-ready?
15 of the 24 ranked here grade BB or better, the bar for agent-ready on the Anchor benchmark.
Which agent frameworks and SDKs accept x402 payments?
None of the ranked listings here accepts x402 for its main call yet.
Which of these agent frameworks and SDKs is cheapest?
By published paid prices, Terse Durable Actors, at $0.071 per vCPU hour, the lowest of the 3 listings here with a paid price in this unit (free allowances aside). Plans, volume tiers and free allowances change the sum, so check the listing's price table.
How is this list ranked?
By the Anchor benchmark score out of 100, a weighted mean of the scored categories minus deductions for negative events, from public evidence re-checked as vendors change. Listings cannot pay for a place. The latest assessment behind this page is from 23 November 2026.
How this list is made
The order is the Anchor benchmark score, the same number as on each listing and in the top list. Each listing is graded from public evidence against the benchmark checklist, and the picks above are worked out from those grades, prices and facts. No listing pays for its place, and paid audits or listing help never change a score.
Full ranked table · 253 head-to-head comparisons · Best tools in every category