dspy logo

dspy

stanfordnlp/dspy

Framework for programming language models

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

35views this month

38k stars3.3k forksLast push Sep 17, 2026 Python MIT

Decision brief

DSPy is a Python framework for programming language models, offering an alternative to prompting-based approaches.

Good fit when

  • Use DSPy when you need a framework that allows for direct programming of language models, rather than relying on prompting techniques.
  • Consider DSPy if you are working on projects that require fine-grained control over the model's behavior and logic through programming.

Avoid when

  • Avoid DSPy if your project benefits more from natural language prompting and less from direct programming of the model.
  • Do not use DSPy if you prefer frameworks that focus on enhancing model performance through advanced prompting strategies.
Pricing:
freemium - DSPy is free to use and modify due to its MIT License, but users might incur costs related to model training and deployment.
Requirements:
Min 4 GB RAM; Python environment is required for installation and use.

Observed Sep 18, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of Sep 18, 2026
Provenance
Not a fork · Organization account
As of Sep 18, 2026
Security (OSV)
No lockfile
As of Sep 18, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install dspy
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

DSPy is a framework designed for programming language models rather than prompting them.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Sep 18, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 18, 2026)

pip install dspy
Source link

Tags

README

Installation To install the very latest from :

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.