# Claude Agent SDK vs DSPy (slim)

> Claude Agent SDK scores 72.8 (BB) 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/claude-agent-sdk-vs-dspy.md (~5,700 tokens) · this version ~1,030 tokens · JSON https://www.anchorterminal.com/compare/claude-agent-sdk-vs-dspy.json · canonical https://www.anchorterminal.com/compare/claude-agent-sdk-vs-dspy
- 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)

Claude Agent SDK scores 72.8 (BB) on agent readiness against DSPy's 68.3 (B), and leads in 5 of 7 scored categories. DSPy leads on payments & pricing. Both do agent frameworks.

- Claude Agent SDK: BB 72.8, rank #219 of 1654 · https://www.anchorterminal.com/tools/claude-agent-sdk.min.md
- DSPy: B 68.3, rank #414 of 1654 · https://www.anchorterminal.com/tools/dspy.min.md
- Claude Agent SDK, good for Agents that work on files, code and shells and want Claude Code's tool set and permission model without building them. Ahead on Reliability, 70 against 62; Schema & documentation, 89 against 71; Agent ergonomics, 95 against 64; Security & auth, 83 against 60; Transparency & trust, 83 against 52. Also Agent-ready, a grade of BB or better.
- DSPy, good for Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use. Ahead on Payments & pricing, 90 against 60. Also No key needed to call it; Open source; No incidents deducted, where Claude Agent SDK loses 8 points for them.

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

| Fact (where they differ) | Claude Agent SDK | DSPy |
| --- | --- | --- |
| Vendor | Anthropic | Stanford NLP |
| Auth | API key | None |
| Licence | MIT (Python wrapper), proprietary (TypeScript package and the bundled Claude Code binary) | MIT |
| llms.txt | yes | no |
| Last release | 2026-10-31 | 2026-11-10 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | yes, with an opt-out | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | yes | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 8.2k stars, 10.1M npm/wk, 6.1M PyPI/wk | 39k stars |
| Agent reviews | 2.5/5 (4) | none |

Why the edge:
- Agent ergonomics, Claude Agent SDK +31: Claude Agent SDK 95 (The documented agent with one MCP server is about 15 lines with the built-in client, and tool search, the default, withholds MCP tool definitions, both re-read…); DSPy 64 (Framework reading.)
- Transparency & trust, Claude Agent SDK +31: Claude Agent SDK 83 (The Python wrapper is MIT, but its wheel bundles the proprietary Claude Code binary, and the TypeScript package's LICENSE.md still says All rights reserved unde…); DSPy 52 (MIT (30).)
- Payments & pricing, DSPy +30: Claude Agent SDK 60 (No payment protocol (0).); DSPy 90 (Self-hosted rule.)
- Security & auth, Claude Agent SDK +23: Claude Agent SDK 83 (Usage metrics go to Anthropic and third-party logging by default on the Claude API, without code, prompts or file paths, and DISABLE_TELEMETRY=1 turns them off.); DSPy 60 (Framework reading (telemetry defaults, approvals, guardrails, sandboxing).)
- Schema & documentation, Claude Agent SDK +18: Claude Agent SDK 89 (Typed public interfaces with a full Python and TypeScript reference, options as dataclasses and TypedDicts (25).); DSPy 71 (Framework reading.)
- Reliability, Claude Agent SDK +8: Claude Agent SDK 70 (Official packages on PyPI (Requires-Python >=3.10 in pyproject.toml, 0.2.176 tagged on 31 October) and npm (TypeScript 0.3.311 on 26 October raised the minimum…); DSPy 62 (Local-package reading.)
