Comparison
DSPy vs LlamaIndex
A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.
DSPy
Declarative, programmable prompt programming from Stanford.
LlamaIndex
The data framework for LLM applications.
| Spec | DSPy | LlamaIndex |
|---|---|---|
| Role | Agent framework | Agent framework |
| Tags | agent-framework, library, persona-solo-builder, persona-platform-engineer | agent-framework, library, rag, persona-solo-builder, persona-platform-engineer |
| License | MIT | MIT |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| MCP support | No | Yes |
| Pricing | free | free |
| Price | Free | Free |
| Usage cost | BYOK | BYOK |
| Models | byok | claude, gpt, gemini, local, byok |
| Languages | python | python, typescript |
| GitHub stars | 35.8k | 50.6k |
| Last activity | 2026-07-02 | 2026-07-02 |