Comparison
DSPy vs Letta
A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.
DSPy
Declarative, programmable prompt programming from Stanford.
Letta
Stateful agents with long-term memory (formerly MemGPT).
| Spec | DSPy | Letta |
|---|---|---|
| Role | Agent framework | Agent framework |
| Tags | agent-framework, library | agent-framework, library, multi-agent |
| License | MIT | Apache-2.0 |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| MCP support | No | Yes |
| Pricing | free | freemium |
| Starting price | BYOK usage cost | Self-host free |
| Models | byok | claude, gpt, gemini, byok |
| Languages | python | python |
| GitHub stars | 35.5k | 23.5k |
| Last activity | 2026-06-25 | 2026-06-26 |