# DSPy

> Program language models instead of prompting them

Write modular AI programs and let DSPy optimize the prompts and weights.

- Source: https://github.com/stanfordnlp/dspy
- Homepage: https://dspy.ai
- License: MIT
- Language: Python
- Stars: 38473
- Forks: 3392
- Contributors: 453
- Last commit: 2026-10-02
- Latest release: 3.4.0 (2026-09-25)
- Purpose: AI & LLM tooling, Agents & frameworks
- Runs on: Library / SDK
- For: Personal, Enterprise

## Worth score: 82/100

How much DigGitHub recommends it, from activity, adoption, docs, license and security signals.

- Popularity: 23/25
- Momentum: 10/20
- Maintenance: 25/25
- Community: 13/15
- Readiness: 11/15

## Alternatives

- [Browser Use](https://diggithub.com/browser-use/browser-use.md): Let AI agents use a web browser
- [LlamaIndex](https://diggithub.com/run-llama/llama_index.md): Data framework for LLM applications and agents
- [gpt-researcher](https://diggithub.com/assafelovic/gpt-researcher.md): Autonomous deep research agent for web and local documents
- [TradingAgents](https://diggithub.com/TauricResearch/TradingAgents.md): Multi-agent LLM framework for financial trading research
- [Mem0](https://diggithub.com/mem0ai/mem0.md): Memory layer for AI agents
- [LangChain](https://diggithub.com/langchain-ai/langchain.md): Framework for building LLM-powered applications
- [Pi](https://diggithub.com/earendil-works/pi.md): Minimal agent toolkit and coding agent CLI
- [Hindsight](https://diggithub.com/vectorize-io/hindsight.md): Agent memory that learns

---

Source page: https://diggithub.com/stanfordnlp/dspy
Updated: 2026-10-03
