Comparison
DSPy vs Vercel AI SDK
A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.
DSPy
Declarative, programmable prompt programming from Stanford.
Vercel AI SDK
The TypeScript toolkit for building AI apps and agents.
| Spec | DSPy | Vercel AI SDK |
|---|---|---|
| Role | Agent framework | Agent framework |
| Tags | agent-framework, library | agent-framework, library, orchestration |
| License | MIT | Apache-2.0 |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| MCP support | No | Yes |
| Pricing | free | free |
| Starting price | BYOK usage cost | BYOK usage cost |
| Models | byok | claude, gpt, gemini, byok |
| Languages | python | typescript |
| GitHub stars | 35.5k | 25.2k |
| Last activity | 2026-06-25 | 2026-06-27 |