# DSPy — card for AI agents

A framework for programming language models with declarative modules and optimizers instead of hand-written prompts.

Maker: Stanford NLP · category: Agent frameworks and SDKs · open source (MIT)

## Price
- DSPy is open source and free to use; you pay only for the models and infrastructure it runs on.
- Free tier: yes
- Checked: 2026-11-04

## Install
- PyPI: `pip install dspy`

## Facts
- Interfaces: Python library
- Repository: https://github.com/stanfordnlp/dspy

## Numbers (AgentGid data)
- Gid Score: 54 (rank #48) (public popularity and activity, not quality)
- Downloads last 7 days: 1,533,866
- GitHub stars: 39,128

## Details (plan limits, live status, safety; from AgentGid's data)
DSPy by Stanford NLP. Category: Agent frameworks and SDKs. Type: prompt programming framework. A framework for programming language models with declarative modules and optimizers instead of hand-written prompts. Open source (MIT) Pricing (checked 2026-11-04): DSPy is open source and free to use; you pay only for the models and infrastructure it runs on. Free tier: yes. Interfaces: Python library Supports: mcp, local Data: Gid Score 54/100, #48 overall; #12 in its category; 39,128.0 GitHub stars; usage +7% over 30 days; latest release 3.5.0 (2026-11-10).

## Alternatives in the same category
- LangChain: https://agentgid.com/agents/langchain/agent.md
- LangGraph: https://agentgid.com/agents/langgraph/agent.md
- AI SDK: https://agentgid.com/agents/vercel-ai-sdk/agent.md
- Claude Agent SDK: https://agentgid.com/agents/claude-agent-sdk/agent.md
- Mastra: https://agentgid.com/agents/mastra/agent.md
- OpenAI Agents SDK: https://agentgid.com/agents/openai-agents-sdk/agent.md

## Links
- AgentGid page: https://agentgid.com/agents/dspy/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
