#1414th of 20 in Agent frameworks and SDKs

dspy

Python framework for programming LMs and optimizing their prompts and weights

Stars
38.6k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+5,730
25 Mar 2026: 32,909 stars1 Apr 2026: 33,114 stars8 Apr 2026: 33,304 stars15 Apr 2026: 33,511 stars22 Apr 2026: 33,713 stars29 Apr 2026: 33,886 stars6 May 2026: 34,042 stars13 May 2026: 34,211 stars20 May 2026: 34,367 stars27 May 2026: 34,518 stars3 Jun 2026: 34,672 stars10 Jun 2026: 34,829 stars17 Jun 2026: 34,964 stars24 Jun 2026: 35,234 stars1 Jul 2026: 35,579 stars8 Jul 2026: 35,826 stars15 Jul 2026: 36,027 stars22 Jul 2026: 36,192 stars29 Jul 2026: 36,347 stars5 Aug 2026: 36,532 stars12 Aug 2026: 37,050 stars19 Aug 2026: 37,348 stars26 Aug 2026: 37,541 stars2 Sept 2026: 37,679 stars9 Sept 2026: 37,835 stars16 Sept 2026: 38,034 stars23 Sept 2026: 38,210 stars30 Sept 2026: 38,416 stars7 Oct 2026: 38,535 stars14 Oct 2026: 38,639 stars

32,909 on 25 Mar 202638,639 on 14 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

DSPy lets you describe LM-based systems as modular Python code instead of hand-written prompts. It includes optimizers that tune prompts and model weights against a metric, and targets classifiers, RAG pipelines and agent loops. It installs with pip; the README defers all usage details to dspy.ai.

Who it is for: Python developers building and tuning LM pipelines, RAG and agents

Strengths

  • Optimizers tune prompts and weights against a metric, including GEPA
  • Programs are composed as Python modules rather than prompt strings
  • Backed by published Stanford NLP research papers
  • Single pip install; MIT license

Weaknesses

  • README has no quickstart or code example; usage lives on the external docs site
  • Optimization needs a metric and example data, adding setup versus plain prompting
  • Supported model providers are not listed in the README
  • Library only: no UI, server or deployment tooling

Also in Agent frameworks and SDKs

See all 20
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)62.1k starsMIT90 out of 100
2langchainPython framework for building LLM agents and apps from interoperable components147.8k starsMIT88 out of 100
3browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)118k starsMIT88 out of 100
#4tradingagentsLangGraph multi-agent framework simulating a trading firm to analyze tickers Live demo ↗ (opens in a new tab)111.2k starsApache-2.086 out of 100
#5crewaiPython framework for multi-agent workflows with role-based Crews and event-driven Flows59.7k starsMIT80 out of 100