# DSPy vs AI SDK (slim)

> AI SDK scores 93.6 (AA) to DSPy's 68.3 (B) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.

- Full: https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk.md (~4,400 tokens) · this version ~880 tokens · JSON https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk.json · canonical https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-23
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

AI SDK scores 93.6 (AA) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories. Both do agent frameworks.

- DSPy: B 68.3, rank #414 of 1654 · https://www.anchorterminal.com/tools/dspy.min.md
- AI SDK: AA 93.6, rank #1 of 1654 · https://www.anchorterminal.com/tools/vercel-ai-sdk.min.md
- DSPy, good for Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use. Also No key needed to call it.
- AI SDK, good for TypeScript teams building agents and chat UIs who want one API across many providers and a short path to MCP. Ahead on Reliability, 93 against 62; Schema & documentation, 100 against 71; Agent ergonomics, 95 against 64; Security & auth, 90 against 60; Maintenance & community, 97 against 87; Transparency & trust, 89 against 52. Also Agent-ready, a grade of BB or better.

| Category | DSPy | AI SDK |
| --- | --- | --- |
| Reliability (16%) | 62 | 93 |
| Performance (10%) | pending | pending |
| Schema & documentation (13%) | 71 | 100 |
| Agent ergonomics (13%) | 64 | 95 |
| Security & auth (14%) | 60 | 90 |
| Payments & pricing (10%) | 90 | 90 |
| Task success (10%) | pending | pending |
| Maintenance & community (7%) | 87 | 97 |
| Transparency & trust (7%) | 52 | 89 |

| Fact (where they differ) | DSPy | AI SDK |
| --- | --- | --- |
| Vendor | Stanford NLP | Vercel |
| Auth | None | API key |
| Licence | MIT | Apache-2.0 |
| llms.txt | no | yes |
| Last release | 2026-11-10 | 2026-11-05 |
| Terms last updated | no document linked | 2026-06-01 |
| Privacy policy last updated | no document linked | 2026-06-01 |
| Customer content may train models | not read yet | yes, with an opt-out |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | yes |
| Popularity | 39k stars | 28k stars, 44.9M npm/wk |

Why the edge:
- Transparency & trust, AI SDK +37: DSPy 52 (MIT (30).); AI SDK 89 (Apache 2.0 (30).)
- Reliability, AI SDK +31: DSPy 62 (Local-package reading.); AI SDK 93 (Official npm packages, with `ai` 7.x requiring Node 22 or newer (20).)
- Agent ergonomics, AI SDK +31: DSPy 64 (Framework reading.); AI SDK 95 (An MCP client in a few lines with createMCPClient and client.tools(), and tool search with deferLoading keeps unused tool definitions out of the prompt (25).)
- Security & auth, AI SDK +30: DSPy 60 (Framework reading (telemetry defaults, approvals, guardrails, sandboxing).); AI SDK 90 (No telemetry until an OpenTelemetry integration is registered.)
- Schema & documentation, AI SDK +29: DSPy 71 (Framework reading.); AI SDK 100 (Typed TypeScript API with a reference section for every function (25).)
- Maintenance & community, AI SDK +10: DSPy 87 (3.5.0 tagged on 10 November 2026, 13 days before this check (30).); AI SDK 97 (7.0.163 on 2026-11-05 (30).)
