stanfordnlp/dspy
DSPy: The framework for programming—not prompting—language models
- Stars
- 39k
- Forks
- 3.5k
- Open issues
- 367
- Last push
- today
About dspy
dspy is a free, open-source AI developer tool by stanfordnlp, written mainly in Python. DSPy: The framework for programming—not prompting—language models. It has 39k GitHub stars and 3.5k forks, and was last updated today. It's released under the MIT license, a standard open-source license.
- License
- MIT
- Commercial use
- Commercial OK
- Language
- Python
- Stars
- 38,784
- Last update
- today
- Runs on Mac
- Not stated
- GPU
- Not stated
- Paid API key
- Not stated
- Self-hostable
- Yes
Similar free tools
prompt-optimizer39k stars · Optimizes AI prompts for better results and quality.
promptfoo26k stars · Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more. Simple declarative configs with command line
lm-evaluation-harness14k stars · Evaluate language models using a flexible framework.
colibri44k stars · Runs large language models on local hardware using a tiny engine.
servers92k stars · Provides reference implementations for the Model Context Protocol (MCP) to secure LLM access to tools and data.
Foundation-Models-Framework-Lab1.2k stars · A practical lab for building, testing, and evaluating apps with Apple's Foundation Models framework.
dspy FAQ
Can I use dspy commercially?
Yes. MIT is a permissive license: commercial use is allowed as long as you keep the license notice. This is a plain-English summary, not legal advice.
Is dspy free?
Yes. dspy is open source and free to use. It's released under the MIT license, a standard open-source license.
Does dspy run on a Mac?
The project doesn't say. Check its installation guide before you start.
Does dspy need a GPU?
The project doesn't state hardware needs. AI models generally run much faster with a GPU.
Is dspy still maintained?
Yes. It was last updated today and has 367 open issues on GitHub.
What are alternatives to dspy?
Similar free, open-source tools include prompt-optimizer, promptfoo, lm-evaluation-harness, colibri.