Home Projects dspy
dspy
Python

dspy

DSPy: The framework for programming—not prompting—language models

by stanfordnlp · GitHub
Top 5% most starred in the catalogue
Stars
Forks
License
Created
Last commit
Language
MITPython
View on GitHub
In plain words

DSPy from Stanford is a framework for programming LLMs with composable modules and optimizers that automatically tune prompts instead of hand-crafting them.

From the README

Install
pip install dspy

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
dspy — GitHub preview card
📈 Star history
38k36k
2026-07-122026-08-31
📈 Track dspy

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

DSPy: The framework for programming—not prompting—language models

dspy has 37.7k stars on GitHub. It has been forked 3.3k times. dspy is written mainly in Python. It has been in active development since 2023. dspy is available under the MIT license.

Read the full guide
Frequently asked questions

What is dspy?

DSPy: The framework for programming—not prompting—language models

Is dspy open source?

dspy is an open-source project. It is released under the MIT license.

Is dspy free?

Yes. dspy is free and open source — you can use, modify and self-host it.

What license does dspy use?

dspy is available under the MIT license.

What language is dspy written in?

dspy is written mainly in Python.

🏅 Maintainer of this project?
olud.ai badge — dspy

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=stanfordnlp-dspy)](https://olud.ai/project/stanfordnlp-dspy.html)
More badge options →
🧬 Related projects