What is DSPy?
Stanford’s open-source framework for building modular LLM programs and automatically optimising their prompts and weights.
DSPy is listed in the Code & Dev category of ZORGO AI's AI tools directory, where it ranks #33 of 117 AI coding tools.
DSPy key features
- Declarative modules
- Prompt optimisers
- Evaluation
- Any LLM
What can you use DSPy for?
- RAG pipelines
- Classification
- Agent loops
- Research
DSPy pricing
DSPy is free to use.
Prices change often — always confirm the latest plans on the official DSPy website.
Best DSPy alternatives
-
1
PyTorchFree
The deep-learning framework of AI research
-
2
Claude CodePaid
Anthropic's agentic coding tool
-
3
CursorFreemium
AI-first code editor
-
4
GitHub CopilotPaid
AI pair programmer in your IDE
-
5
TensorFlowFree
Google's open-source ML framework
-
6
LovableFreemium
Build full-stack apps by chatting
DSPy FAQ
Is DSPy free?
Yes. DSPy is free to use.
What is DSPy used for?
People mainly use DSPy for RAG pipelines, classification, agent loops and research. Stanford’s open-source framework for building modular LLM programs and automatically optimising their prompts and weights.
What are the best DSPy alternatives?
Popular DSPy alternatives include PyTorch, Claude Code and Cursor. See all 117 AI coding tools ranked on our Best AI Coding Tools (2027) list.