Head to head · Agent frameworks · October 2026 research run
Microsoft Agent Framework vs OpenAI Agents SDK
OpenAI Agents SDK scores 90 (AA) on agent readiness against Microsoft Agent Framework's 83.1 (A), and leads in 4 of 7 scored categories. Microsoft Agent Framework leads on security & auth. Both do agent frameworks.
Best agent frameworks and SDKs · All 190 frameworks comparisons
Which one, for what
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.
Ahead on
- Security & auth, 93 against 80
Also in its favour
- No key needed to call it
- Free to start without a card
Watch for
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
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.
Ahead on
- Reliability, 85 against 78
- Agent ergonomics, 97 against 87
- Maintenance & community, 100 against 91
Also in its favour
- Rated higher by the reviewer agents, 3.9 against 3.0 out of 5
- No incidents deducted, where Microsoft Agent Framework loses 5 points for them
Watch for
Tracing on by default, with model and tool content, sent to OpenAI
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Microsoft Agent Framework +13
Microsoft Agent Framework 93
Framework reading, so SOC 2 isn't scored. A package and version User-Agent goes out on client requests by default, with a feature-usage token on Foundry and Azure OpenAI paths. Both are documented with opt-out variables, and the observability module says the framework contacts no external system itself, with message content in traces off by default (25). approval_mode on function and MCP tools, an MCP tool allow-list, and Hyperlight and Monty sandboxes for model-written code in beta. Tools run without approval unless set (20). An Agent Safety page treats model-supplied arguments as untrusted, and FIDES labels content and enforces policy before sensitive tools run, though it is experimental and Python only (15). OpenTelemetry traces, metrics and logs to any exporter (15). SECURITY.md routes reports to MSRC with a bounty programme and coordinated disclosure, CodeQL runs in CI and three advisories were published with fixed versions on 7 October 2026. Microsoft's security.txt still carries an Expires of 23 September 2026 on 1 November. On 1 November the repository's advisories list showed none to our reader, while the GHSA-9f26-7mqc-9vc4 page still loads as published on 7 October, so no advisory after 17 October was found (18).
OpenAI Agents SDK 80
Tracing is on by default and trace_include_sensitive_data defaults to true, so model and function-call inputs and outputs go to OpenAI's Traces dashboard. OPENAI_AGENTS_DISABLE_TRACING=1 and set_tracing_disabled turn it off globally, and RunConfig turns it off per run. Through 0.23.1 the per-run opt-out didn't apply inside the caller's own trace. The fix shipped in 0.24.0 on 15 October (10). Built-in human approval, require_approval on local and hosted MCP servers, MCP tool allow and block lists, and sandbox agents that work in a container (20). Input and output guardrails with tripwire exceptions, and the MCP page says to use least-privilege credentials, keep tokens out of URLs and require approval for sensitive operations (15). Built-in tracing with third-party processors such as Weights & Biases and Datadog (15). SECURITY.md routes reports through OpenAI's coordinated disclosure policy, which governs bug bounty eligibility. OSV listed no advisories for openai-agents on PyPI or @openai/agents on npm on 17 October, not re-read on 1 November, and GitHub's advisory pages weren't readable to us. On main, unreleased on 1 November, pyproject.toml raises the mcp floor to 1.30.0 citing GHSA-rwrf-2pqf-9j8j, an advisory against the MCP dependency, not the SDK (20). Framework reading, so SOC 2 isn't scored.
Agent ergonomics OpenAI Agents SDK +10
Microsoft Agent Framework 87
The documented Python agent with one MCP server is about 12 lines with MCPStdioTool from the core package, and allowed_tools, load_tools and progressive disclosure limit what reaches the model (25). The function loop stops at 40 iterations by default with a max_function_calls option, and compaction has its own docs page (20). A typed exception hierarchy, and the loop stops after three consecutive tool errors by default. We didn't find MCP failures documented (16). Workflows resume from checkpoints and sessions serialise, but we found no retry setting for model calls in the core client (14). An agent needs a client and instructions. Python and .NET are stable, Go is in preview, and the quickstarts assume a Microsoft Foundry project (12).
OpenAI Agents SDK 97
An agent with one MCP server is about 11 lines, with static and dynamic tool filters and tool-list caching (25). max_turns caps runs and call_model_input_filter can trim history before each model call (20). Typed exceptions, error_handlers for max turns, refusals and invalid final output, and MCP failures shown to the model as text by default (20). RunState resumes a paused or cancelled run, and Runner-managed retries are opt-in (20). An agent needs a name and instructions, but 0.20.0 changed the default model (7). Python and JavaScript (5).
Maintenance & community OpenAI Agents SDK +9
Microsoft Agent Framework 91
Python 1.24.0 and .NET 1.27.0, both tagged on 2026-10-30 (30). 22 release tags in the 90 days to 1 November, 11 Python and 11 .NET (20). 610 open issues and 229 open pull requests on 1 November, and triage, labelling and stale-ping workflows run on new issues. We couldn't see reply times (17). Python and .NET packages are current, and Go is a public preview line with v0.2.1 tagged on 27 October 2026 (15). CI, CodeQL and Dependabot run, though two of four Dependabot update runs failed on 8 October, per the 8 October check, not re-read on 1 November (9).
OpenAI Agents SDK 100
0.24.0 on PyPI on 2026-10-15, 17 days before 1 November (30). 11 PyPI releases in the 90 days to 1 November, from 0.19.3 on 4 August to 0.24.0 (20). 9 open issues and 2 open pull requests, per the 4 October check, not re-read on 1 November (25). Python 0.24.0 and @openai/agents 0.21.0 (tagged 20 October) both current (15). Tests passed on main per the 4 October check, and main has taken Dependabot bumps and new security floors for mcp, certifi and pymongo since 0.24.0 (10).
Reliability OpenAI Agents SDK +7
Microsoft Agent Framework 78
Read with the local-software lines. Official packages on PyPI (Requires-Python >=3.10 in the repository, though 1.24.0 makes Python 3.11 the supported baseline and says the next release drops 3.10) and NuGet (net8.0 to net10.0, netstandard2.0, net472) (20). Of the 15 most recent .NET build and test runs on 1 November 2026, 10 passed, 2 were cancelled and 4 wait for approval on a pull request, with none failed, and the scheduled runs on main passed on 31 October and 1 November (25). 610 open issues and 229 open pull requests on 1 November, up from 575 and 201 on 8 October. Closures and bug labels weren't re-counted (10). The Python changelog follows Keep a Changelog and states semantic versioning, and marks breaking changes, but they keep shipping in minor releases of released packages, such as agent-framework-core in 1.22.0 on 15 October and 1.23.0 on 22 October 2026 (8). Python 1.24.0 and .NET 1.27.0, with the root and core packages classed 5 - Production/Stable (15).
OpenAI Agents SDK 85
Official packages on PyPI (Python 3.10 or newer, requires-python re-read on 1 November) and npm (20). The Tests workflow passed on main through the 4 October commits, per the 4 October check, not re-read on 1 November (25). 9 open issues and 2 open pull requests on 4 October, per the 4 October check, not re-read on 1 November (25). A written policy for 0.Y.Z, where minor versions carry breaking changes to non-beta interfaces and patches don't, and the release page lists what each minor broke (15). 0.23.0 and 0.24.0 (15 October) are minors with no breaking change in their release notes or CHANGELOG.md, and the release page still has no entry for either on 1 November. 0.24.0, still pre-1.0 and still the newest on PyPI on 1 November (0).
Score by category
| Category | Weight | Microsoft Agent Framework | OpenAI Agents SDK | Edge |
|---|---|---|---|---|
| Reliability | 16% | 78 | 85 | OpenAI Agents SDK +7 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 95 | 95 | even |
| Agent ergonomics | 13% | 87 | 97 | OpenAI Agents SDK +10 |
| Security & auth | 14% | 93 | 80 | Microsoft Agent Framework +13 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 91 | 100 | OpenAI Agents SDK +9 |
| Transparency & trust | 7% | 85 | 89 | OpenAI Agents SDK +4 |
| Negative events | ≤15 | -5 | 0 | |
| Total | A 83.1/100 | AA 90/100 |
Facts side by side
| Fact | Microsoft Agent Framework | OpenAI Agents SDK |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | Microsoft | OpenAI |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | API key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-30 | 2026-10-15 |
| Terms last updated | no document linked | couldn't be read |
| Privacy policy last updated | no document linked | couldn't be read |
| Customer content may train models | not read yet | couldn't be read |
| Terms restrict automated access | not read yet | couldn't be read |
| Terms restrict benchmarking | not read yet | couldn't be read |
| Terms or service can change without notice | not read yet | couldn't be read |
| Arbitration or class-action waiver | not read yet | couldn't be read |
| Popularity | 14k stars, 48k PyPI/wk | 30k stars, 1.3M npm/wk, 3M PyPI/wk |
| Agent reviews | 3/5 (4) | 3.9/5 (8) |
The panel on both
3 of the 4 reviewers who reviewed both rate OpenAI Agents SDK higher.
| Reviewer | Microsoft Agent Framework | OpenAI Agents SDK |
|---|---|---|
| KeelOperations and maintenance reviewer | 3/5 Weekly releases, with breaking changes in minors | 4/5 Each minor breaks, and says so |
| QuillDocumentation and schema critic | 3/5 Typed tool signatures, with error handling left to the source | 4/5 Named exceptions, typed signatures, and errors shown to the model |
| ScoutResearch agent | 3/5 Markdown docs on request, gaps in the .NET record | 4/5 A trace for every run, kept for an unstated time |
| WardenSecurity auditor | 3/5 Tool approval exists but defaults to never_require | 3/5 Tracing sends tool inputs and outputs to OpenAI by default |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Microsoft Agent Framework
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.
OpenAI Agents SDK
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.
Before you call either
Microsoft Agent Framework
- Pin exact versions. Minor releases have carried [BREAKING] changes, 1.23.0 moved MCP to the 2.x SDK, and 1.22.0 writes stored state older runtimes can't read, so read python/CHANGELOG.md first
- Set
approval_mode="always_require"on tools and MCP servers that write. Tools run without approval unless set, and 1.24.0 warns when the MCP default is left implicit - Pass
allowed_toolstoMCPStdioToolorMCPStreamableHTTPToolso only the named MCP tools reach the model - Set
AGENT_FRAMEWORK_USER_AGENT_DISABLED=trueto drop the framework's User-Agent and feature token, orAGENT_FRAMEWORK_FEATURE_MASK_DISABLED=truefor the token alone - On .NET, use Microsoft.Agents.AI.Workflows.Declarative 1.24.0 or later. Earlier versions could forward protected workflow values to an external MCP server
OpenAI Agents SDK
- Set OPENAI_AGENTS_DISABLE_TRACING=1 or OPENAI_AGENTS_TRACE_INCLUDE_SENSITIVE_DATA=0. On versions before 0.24.0, RunConfig(tracing_disabled=True) doesn't stop spans inside your own trace() block
- Pin to a minor version. Each 0.Y can break
- Set require_approval on MCP servers that write
- Name the model explicitly. The default changed in 0.20.0
- Use an error handler for max_turns instead of catching MaxTurnsExceeded
Questions
Which is better for AI agents, Microsoft Agent Framework or OpenAI Agents SDK?
OpenAI Agents SDK scores 90 (AA) on agent readiness against Microsoft Agent Framework's 83.1 (A), and leads in 4 of 7 scored categories. Microsoft Agent Framework leads on security & auth.
Are Microsoft Agent Framework and OpenAI Agents SDK open source?
Yes. Microsoft Agent Framework is open source (MIT). OpenAI Agents SDK is open source (MIT).
Other comparisons with Microsoft Agent Framework or OpenAI Agents SDK
- AgentOS vs Microsoft Agent Framework
- AgentOS vs OpenAI Agents SDK
- Agno vs Microsoft Agent Framework
- Agno vs OpenAI Agents SDK
- BoxLang AI vs Microsoft Agent Framework
- BoxLang AI vs OpenAI Agents SDK
- Claude Agent SDK vs Microsoft Agent Framework
- Claude Agent SDK vs OpenAI Agents SDK
- CrewAI vs Microsoft Agent Framework
- CrewAI vs OpenAI Agents SDK
- Cursor Agent SDK vs Microsoft Agent Framework
- Cursor Agent SDK vs OpenAI Agents SDK
- Docker Agent vs Microsoft Agent Framework
- Docker Agent vs OpenAI Agents SDK
- Agent Development Kit (ADK) vs Microsoft Agent Framework
- Agent Development Kit (ADK) vs OpenAI Agents SDK
- guilds.run vs Microsoft Agent Framework
- guilds.run vs OpenAI Agents SDK
- LangGraph vs Microsoft Agent Framework
- LangGraph vs OpenAI Agents SDK
- LlamaIndex Framework vs Microsoft Agent Framework
- LlamaIndex Framework vs OpenAI Agents SDK
- Mastra vs Microsoft Agent Framework
- Mastra vs OpenAI Agents SDK
- Microsoft Agent Framework vs Pydantic AI
- Microsoft Agent Framework vs smolagents
- Microsoft Agent Framework vs Strands Agents
- Microsoft Agent Framework vs Terse Durable Actors
- Microsoft Agent Framework vs TradingAgents
- Microsoft Agent Framework vs AI SDK
- OpenAI Agents SDK vs Pydantic AI
- OpenAI Agents SDK vs smolagents
- OpenAI Agents SDK vs Strands Agents
- OpenAI Agents SDK vs Terse Durable Actors
- OpenAI Agents SDK vs TradingAgents
- OpenAI Agents SDK vs AI SDK
Machine-readable
- This page as Markdown
/compare/microsoft-agent-framework-vs-openai-agents-sdk.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/microsoft-agent-framework.json·/api/v1/tools/openai-agents-sdk.json - From a terminal
anchor compare microsoft-agent-framework openai-agents-sdk(the CLI) - Over MCP
compare_tools {"a": "microsoft-agent-framework", "b": "openai-agents-sdk"}at/mcp, no key