Updated

DSPy

Stanford's Python framework for "programming, not prompting" language models, where you declare modules with typed signatures and optimizers such as GEPA tune the prompts or weights against a metric.

18 open-source projects declare DSPy in their code; no maker's live product we track uses it yet.

Open sourceSelf-hostableFree tier

Profile checked

Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

How makers use DSPy

What DSPy is used for

AI SDK & Agent Framework · Broad framework →Writing LLM programs as typed modules and letting optimizers such as GEPA tune the prompts or weights against a metric you define.Trade-off: Python only, with its own concepts (signatures, modules, optimizers) to learn; optimization runs cost tokens.
LangChain66Mastra24LlamaIndex16AI SDK5CrewAI3DSPy0Makers' products on each, for AI SDK & agent framework

DSPy vs the alternatives makers chose

OptionMakers' productsOpen source
LangChain66 57%Yes
Mastra24 21%Yes
LlamaIndex16 14%Yes
AI SDK5 4%Yes
CrewAI3 3%Yes
LangGraph1 1%Yes
DSPy0 0%Yes

For AI SDK & agent framework: how many of the 115 makers' products we know the AI SDK & agent framework of chose each option.

When to use DSPy, and when not

Something else fits better if

  • Your app is TypeScript and you want agents without adding a Python service: AI SDK or Mastra.
  • You want a small typed agent loop in Python, close to the raw API: Pydantic AI or OpenAI Agents SDK.
  • Your agent works on files and runs commands, like a coding or research agent: Claude Agent SDK.
  • You need many prebuilt connectors for models, tools and data sources: LangChain.
  • Your agent is a long-running workflow with branches, saved state and human approval steps: LangGraph.
From each decision's guide, written from what makers' products chose and why.

How DSPy itself is built

6 tools, from its own code, website and Product Hunt page.

Who uses it

No maker's live product on record yet, and 18 open-source projects that declare it in their code.

We haven't found a maker's live product that uses DSPy yet — only the open-source projects below, which declare it in their code.

Agno
AgnoOpen-source Python agent framework and runtime (AgentOS) that you run in your own cloud,…AI SDK & Agent FrameworkIn its code · source ↗
moss
mossThe retrieval layer for production AI systems. Lightning-fast (<10ms) search without vec…AI SDK & Agent FrameworkIn its code · source ↗
sie
sieOpen-source inference server and production cluster for all the models your agent needs.AI SDK & Agent FrameworkIn its code · source ↗

Open source: a project that declares DSPy as a dependency in its public code — verifiable, but not necessarily a live product.

Further reading

Questions makers ask about DSPy

What are the alternatives to DSPy?

For AI SDK & agent framework, the other options makers' products we track chose most are LangChain (66), Mastra (24), LlamaIndex (16), AI SDK (5), CrewAI (3), LangGraph (1). Open source or self-hostable among them: LangChain, Mastra, LlamaIndex, AI SDK, CrewAI, LangGraph. Each alternative, with the situation it fits, is on the DSPy alternatives page.

Is DSPy free?

Yes — it is free, open-source software.

Is DSPy open source or self-hostable?

Open source, and you can self-host it. source ↗

Can AI coding agents work with DSPy?

No llms.txt, official MCP server or CLI found yet.

Who uses DSPy?

No maker's live product we track yet; 18 open-source projects declare it in their code. source ↗