Review · Software & AI
DSPy review
Open-source Python framework from Stanford NLP that replaces hand-written prompts with typed signatures and compiles them with prompt optimizers such as GEPA and MIPROv2.
By the DBotMaker research desk · Updated December 1, 2026
- Capabilities (40%)
- 9.0
- Ease of setup (30%)
- 6.8
- Value (30%)
- 9.6
DSPy is the most direct answer to automatic prompt optimization, but it asks more of you than the platforms around it. Instead of editing a prompt string you declare a signature, the typed inputs and outputs of a task, and DSPy builds the prompt. Its optimizers then search for better instructions and examples: the docs explain that you give DSPy a training set and a metric, it generates variations of your instructions with an LM, runs your examples and keeps the highest-scoring prompts. GEPA, the optimizer the getting-started guide uses, can read text feedback from your metric to guide each rewrite. The docs cite Shopify moving a GPT-5 task to a small Qwen model with GEPA for a result about 75 times cheaper. DSPy is free under the MIT license, so the only cost is model calls. It scores lower on setup because it is a Python library only, with no hosted dashboard, and adopting it means restructuring code around signatures.
Who it is for
Python developers who want prompts compiled from a metric instead of written by hand
Price
Free and open source under the MIT license; you pay only for model API calls.
Express your tasks as structured signatures, not prompts, to produce maintainable, modular, and optimizable programs.
Quoted from the vendor pricing page on December 1, 2026.
Key features
- Signatures declare typed inputs and outputs instead of prompt strings
- Optimizers including GEPA, MIPROv2, SIMBA, COPRO and the BootstrapFewShot family
- GEPA accepts text feedback from your metric to guide the next instruction rewrite
- Modules such as ChainOfThought, ReAct and Refine reuse the same signature
- BootstrapFinetune and an experimental RL optimizer sit alongside the prompt optimizers
Strengths and weaknesses
- Strength: Free under the MIT license, installed with pip
- Strength: Rerun the optimizer when a new model ships to see if it is worth switching
- Strength: Docs cite 6.4M+ monthly downloads and 39k GitHub stars
- Weakness: Code-only: there is no hosted UI, dashboard or team workspace
- Weakness: Requires Python 3.10 or newer and a training set plus a metric
- Weakness: You change how the app is written, not just the prompt text
Key facts
- License: MIT
- Maintainer: Stanford NLP
- Current version: 3.5.0
- Requirement: Python 3.10 or newer
Where it ranks
DSPy is No. 4 in our Best Prompt Optimization Tools verdict.
Alternatives we scored
- Opik9.1
- Arize AX8.5
- Braintrust8.5
- Langfuse8.3
Cite this page
DBotMaker. DSPy review. Updated December 1, 2026. https://dbotmaker.io/review/dspy
Visit dspy.ai · Questions or corrections: editorial@dbotmaker.io