$npx skillfedfor your agent

dspy

DSPy

Worth itPyPI Artificial IntelligenceReleased Aug 20266.4M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dspy-3.3.0-py3-none-any.whl
v3.3.0 · released 2026-08-03 · Python <3.15,>=3.10 · 14 runtime deps: openai, regex, orjson, tqdm, requests, pydantic, litellm, diskcache

Yes. DSPy is actively maintained, has no security vulnerabilities, uses a permissive MIT license, and offers low install friction. It's well-suited for teams building production language model systems who want to move beyond manual prompt engineering. Start with it if you're composing multiple LLM calls into a pipeline or need systematic prompt optimization; skip it if you're only making single, one-off LLM requests.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Most functionality depends on configuring an LLM provider (e.g., via openai or litellm dependencies).
  • Low install friction with a pure Python wheel.

License · maintenance · safety

permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2026-08-03 (11 days) · last repo commit 2026-08-14 · 37,189 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,445,272 downloads/mo, #1,909 on PyPI

Verify before relying

pip install dspy

import dspy

# Create a simple DSPy module
class SimpleQA(dspy.ChainOfThought):
    pass

qa = SimpleQA()
  • Whether the framework's optimization algorithms work equally well across different LLM providers or have provider-specific limitations.
  • Performance characteristics and scalability limits for large-scale RAG pipelines or agent loops.
  • Compatibility and integration details with specific retrieval backends or vector stores.
Same gist for agents: .md · .json

What it is and what it does

DSPy is a framework for composing language model systems as Python code rather than writing and tweaking prompts manually. It treats language model calls as declarative building blocks that can be combined into modular pipelines—from simple classifiers to complex retrieval-augmented generation (RAG) systems and agent loops. The core innovation is that DSPy includes algorithms to automatically optimize both the prompts and weights of these systems, teaching models to produce higher-quality outputs without hand-crafting every prompt.

The framework depends on a suite of utilities: openai and litellm for LLM access, pydantic for data validation, requests and anyio for HTTP operations, tenacity for retry logic, diskcache for caching, and several text-processing libraries (regex, orjson, json-repair) for robustness. It's actively maintained and has substantial adoption, with no known security vulnerabilities.

Use it for

  • Build modular RAG pipelines where retrieval and generation steps are composed as Python functions and automatically optimized.
  • Create multi-stage language model programs where prompts and in-context examples are learned from data rather than hand-written.
  • Develop agent loops with self-refining constraints that enforce output quality and correctness.
  • Optimize classifier systems by letting DSPy tune prompts and demonstrations for your specific task and data.
  • Experiment rapidly with different LLM architectures and providers without rewriting prompt logic.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

DSPy is actively maintained, has no security vulnerabilities, uses a permissive MIT license, and offers low install friction. It's well-suited for teams building production language model systems who want to move beyond manual prompt engineering. Start with it if you're composing multiple LLM calls into a pipeline or need systematic prompt optimization; skip it if you're only making single, one-off LLM requests.

Install

dspy on PyPI

Before you install

Low install friction with a pure Python wheel. Active maintenance with a recent release and strong community signal (37189 GitHub stars). Requires Python 3.10 or later but supports current versions.

Requires Python 3.10 or later. Most functionality depends on configuring an LLM provider (e.g., via openai or litellm dependencies).

License in practice

MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install dspy

import dspy

# Create a simple DSPy module
class SimpleQA(dspy.ChainOfThought):
    pass

qa = SimpleQA()

Verify before relying

  • Whether the framework's optimization algorithms work equally well across different LLM providers or have provider-specific limitations.
  • Performance characteristics and scalability limits for large-scale RAG pipelines or agent loops.
  • Compatibility and integration details with specific retrieval backends or vector stores.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
14 packages
openairegexorjsontqdmrequestspydanticlitellmdiskcachejson-repairtenacityanyiocachetoolscloudpicklegepa
MaintenanceActively maintained 11 days since the last release
Last repo commit
First released
Downloads6,445,272 / month, #1,909 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: Science/ResearchOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3

Evidence: dspy-3.3.0-py3-none-any.whl

Tags

Capabilities
language model framework programmingprompt optimization automationLLM pipeline compositiondeclarative AI system buildinglanguage model compilerRAG pipeline frameworkLLM weight and prompt optimization
Topics
llm-frameworkprompt-optimizationrag-systems

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “prompt optimization automation”

  • dspyDSPy is a framework for building and optimizing modular language…
  • gepaGEPA optimizes textual system components—prompts, code, agent…
  • ell-aiell-ai is a functional prompt engineering framework that lets you…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also dspy-ai · ell-ai · TTS · gepa · google-tunix · modelscope · openinference-instrumentation-dspy · autogluon.tabular · autogluon · adam-atan2-pytorch