DSPy
Verified liveFramework for programming, not prompting, LLMs.
Some links are affiliate links; we may earn a commission at no cost to you — it never affects rankings. Disclosure.
DSPy at a glance
- Category
- Agent Frameworks
- Starting price
- Free
- Pricing model
- Open source
- Best for
- Developers building custom AI agents
One of 17 Agent Frameworks tools we verify live.
What is DSPy?
An open-source framework from Stanford NLP for programming LLM pipelines with modules and optimizers instead of manual prompts. Automatically compiles and tunes prompts for tasks.
Pros
- Automatic prompt optimization
- Declarative modules
- Research-backed
Cons
- Different mental model
- Steeper onboarding
Top DSPy alternatives
- Agno — Fast, lightweight framework for multimodal agents.
- Claude Agent SDK — Anthropic’s SDK for building agents on Claude.
- CrewAI — Framework for orchestrating role-playing agent crews.
- Griptape — Python framework for agents, pipelines, and workflows.
- Haystack — Open-source framework for LLM search and agents.
- LangChain — Popular framework for building LLM apps and agents.
Compare DSPy
DSPy FAQ
What is DSPy?
An open-source framework from Stanford NLP for programming LLM pipelines with modules and optimizers instead of manual prompts. Automatically compiles and tunes prompts for tasks.
How much does DSPy cost?
DSPy is open source, so it's free to self-host. Confirm current pricing on the DSPy website.
Is DSPy free?
Yes — DSPy is open source and free to self-host.
What are the best DSPy alternatives?
Top DSPy alternatives include Agno, Claude Agent SDK, CrewAI. See the full list of agent frameworks alternatives on ToolMagpie.
Ready to try DSPy?
Developers building custom AI agents · from Free
Visit DSPy →