DSPy

Open-source (MIT) framework from Stanford NLP, 37k+ GitHub stars

What DSPy does

  • Open-source (MIT) framework from Stanford NLP, 37k+ GitHub stars
  • Compiles/optimizes prompts automatically against metrics instead of manual prompt tuning
  • Production use at Databricks, Shopify, Dropbox, AWS; Shopify reports ~550x cost reduction

Models & architecture

AI models and engines DSPy uses or lets you pick, as documented by the vendor. Source: DSPy GitHub releases (not a model list)

Any LM via DSPy language model layer: model list not retrieved.

Any LM via DSPy language model layer

Example workflows

Typical ways people put DSPy to work, based on its documented capabilities:

Prompt engineers replace trial-and-error prompt string hacking with DSPy declarative modules that algorithmically optimize prompts against quantitative evaluation metrics.

Research scientists replace manually tuned few-shot examples with DSPy MIPROv2 optimizers that discover superior in-context examples automatically.

Latest releases & milestones

3.5.0

Lighter LM layer; dspy.RLM, dspy.Flex and dspy.GEPA graduate from experimental, with new History and image capabilities for RLM.

Release notes (github.com)
3.4.1

GEPA's structured InstructionProposer becomes default, dspy.RLM can build sub-agents from its REPL, and Python 3.15 support is added.

Release notes (github.com)

Vendor sources

Pricing and feature details checked against these first-party sources on 2026-11-19.

DSPy: straight answers

What is DSPy?

DSPy is listed under Agent Frameworks (Developers), in the AI Agents & Automation category on Flocci AI Tools. Open-source (MIT) framework from Stanford NLP, 37k+ GitHub stars. It is free, with no paid plan attached, and it lives at dspy.ai.

Is DSPy free?

DSPy is listed as fully free: there is no paid tier attached to it in the catalog. That makes it one of the 396 entries on Flocci AI Tools with no upgrade path built in.

Which AI models does DSPy use?

DSPy uses or offers Any LM via DSPy language model layer, according to DSPy GitHub releases (not a model list). Any LM via DSPy language model layer: model list not retrieved. Model availability can depend on plan and region, so check the vendor's model list before you rely on a specific one.

What's new in DSPy?

The most recent DSPy releases Flocci tracks are 3.5.0 (2026-11-10): Lighter LM layer; dspy.RLM, dspy.Flex and dspy.GEPA graduate from experimental, with new History and image capabilities for RLM; 3.4.1 (2026-10-12): GEPA's structured InstructionProposer becomes default, dspy.RLM can build sub-agents from its REPL, and Python 3.15 support is added. Each release links to the vendor's own release notes on the tool page.

What do people use DSPy for?

Typical uses for DSPy: Prompt engineers replace trial-and-error prompt string hacking with DSPy declarative modules that algorithmically optimize prompts against quantitative evaluation metrics. Research scientists replace manually tuned few-shot examples with DSPy MIPROv2 optimizers that discover superior in-context examples automatically.

Can I use DSPy in a browser or is there an app?

DSPy needs to be installed or self-hosted: it does not run in a browser tab. It is available on an API and self-hosting.

What can DSPy do?

DSPy does 3 things the catalog singles out: Open-source (mit) framework from stanford nlp, 37k+ github stars; compiles/optimizes prompts automatically against metrics instead of manual prompt tuning; production use at databricks, shopify, dropbox, aws; shopify reports ~550x cost reduction.

What is the best free alternative to DSPy?

Agno is the closest free alternative: it sits in the same Agent Frameworks (Developers) sub-category and is free. AWS Strands Agents, CAMEL and Claude Agent SDK also start free. The full list is on the alternatives page.

See the full list →

LangGraph

Agent Frameworks (Developers)
free
  • Build stateful, multi-agent apps as graphs
  • Human-in-the-loop and durable execution
  • Works with any LLM
  • Open-source with a hosted platform

CrewAI

Agent Frameworks (Developers)
freemium
  • Role-based multi-agent 'crews'
  • Simple Python API for collaboration
  • Tasks, tools and flows
  • Open-source core

OpenAI Agents SDK

Agent Frameworks (Developers)
free
  • OpenAI Agents SDK is a code-first toolkit for building agent loops, tools, handoffs and traces.
  • Use current OpenAI API models such as GPT-6.2 Astra for advanced reasoning and coding, or GPT-6.2 Sol for faster multi-step work.
  • Set the model explicitly in your agent configuration; API model access and pricing are separate from ChatGPT plans.
  • The SDK is open source; provider models and compute are billed under their respective terms.

Microsoft AutoGen

Agent Frameworks (Developers)
free
  • Multi-agent conversation framework
  • Event-driven, async agent design
  • Studio UI for prototyping
  • Fully open-source

LlamaIndex

Agent Frameworks (Developers)
freemium
  • Leading framework for RAG and data agents
  • Connect LLMs to your documents & APIs
  • Agentic document workflows
  • Open-source with a hosted cloud

Google Agent Development Kit (ADK)

Agent Frameworks (Developers)
free
  • Open-source Python/Java framework from Google for building multi-agent systems
  • Native integration with Vertex AI Agent Engine and Gemini models
  • Model-agnostic: works with non-Google LLMs via LiteLLM

Head-to-head comparisons