{
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-23",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "1.0",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "tool": {
    "slug": "dspy",
    "name": "DSPy",
    "vendor": "Stanford NLP",
    "vendorUrl": "https://dspy.ai/",
    "company": "dspy.ai",
    "kind": "framework",
    "category": "frameworks",
    "summary": "DSPy is an open-source Python framework from Stanford NLP for writing language-model programs as typed signatures and modules, with a ReAct agent, MCP tool conversion, evaluation and optimisers that tune prompts and weights.",
    "url": "https://www.anchorterminal.com/tools/dspy",
    "markdownUrl": "https://www.anchorterminal.com/tools/dspy.md",
    "slimMarkdownUrl": "https://www.anchorterminal.com/tools/dspy.min.md",
    "cardUrl": "https://www.anchorterminal.com/tools/dspy.card.md",
    "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/dspy.json",
    "dns": "dspy.grade.anchorterminal.com",
    "repo": "https://github.com/stanfordnlp/dspy",
    "license": "MIT",
    "transports": [],
    "packages": [
      {
        "registry": "pypi",
        "name": "dspy"
      }
    ],
    "auth": "none",
    "authNotes": "A library with no credentials of its own. dspy.LM reads the key of the model provider the developer configures.",
    "pricing": "free",
    "pricingNotes": "Free and open source under MIT, with nothing to buy from the project. You pay for model calls to the provider you configure.",
    "priceSummary": "Free · OSS",
    "where": "library",
    "x402": {
      "level": "no",
      "evidence": "No x402, MPP or L402 in the DSPy docs or the repository (checked 2026-11-23).",
      "endpoints": []
    },
    "toolCount": null,
    "popularity": {
      "githubStars": 39193,
      "npmWeekly": null,
      "pypiWeekly": null,
      "asOf": "2026-11-23"
    },
    "docsUrl": "https://dspy.ai/",
    "capabilities": [
      "agent.framework",
      "agent.mcp-client",
      "obs.evals"
    ],
    "tags": [
      "framework",
      "python",
      "open-source",
      "mcp",
      "prompt-optimisation",
      "evals",
      "sandbox"
    ],
    "lastRelease": "2026-11-10",
    "graded": true,
    "anchor": {
      "graded": true,
      "score": 68.3,
      "grade": "B",
      "agentReady": false,
      "rank": 414,
      "ranked": true,
      "rankOf": 1654,
      "categoryRank": 18,
      "methodology": "1.0",
      "run": "2026-10-01",
      "scores": {
        "ergonomics": 64,
        "maintenance": 87,
        "payments": 90,
        "reliability": 62,
        "schema": 71,
        "security": 60,
        "transparency": 52
      },
      "breakdown": [
        {
          "key": "reliability",
          "name": "Reliability",
          "weight": 16,
          "effectiveWeight": 20,
          "score": 62,
          "points": 12.4,
          "reason": "Local-package reading. Official PyPI package dspy with Python 3.10 to below 3.16 stated (20). A public test workflow runs on pushes to main and pull requests for Python 3.10 to 3.15; whether main passes wasn't read, as the Actions API refused us (15). 352 open issues and 475 open pull requests on 23 November 2026. The 50 newest issues, opened from 6 October to 23 November, had 19 with a comment and 8 closed (10). Release notes and an upgrade guide for 3.5, but 3.5 changed defaults and removed APIs in a minor release (7). 3.x, while the package classifier still says Alpha, so partial (10). 20+15+10+7+10 = 62.",
          "checked": "2026-11-23"
        },
        {
          "key": "performance",
          "name": "Performance",
          "weight": 10,
          "effectiveWeight": 10,
          "pending": true,
          "points": 0,
          "reason": "Not tested by our lab yet, so it doesn't move this listing's total either way."
        },
        {
          "key": "schema",
          "name": "Schema \u0026 documentation",
          "weight": 13,
          "effectiveWeight": 16.25,
          "score": 71,
          "points": 11.54,
          "reason": "Framework reading. A typed Python API with an API reference for modules, tools, adapters and errors (20). No llms.txt at dspy.ai; the docs are Markdown in the repository but not served for agents (0). The tools and ReAct pages say what each part is for and when to read on (15). Tools are typed from signatures and Pydantic annotations and validated against JSON Schema (14). Many tutorials with code, and an errors page in the reference (12). Versioned docs, GitHub release notes and an upgrade guide, with no changelog file (10). 20+0+15+14+12+10 = 71.",
          "checked": "2026-11-23"
        },
        {
          "key": "ergonomics",
          "name": "Agent ergonomics",
          "weight": 13,
          "effectiveWeight": 16.25,
          "score": 64,
          "points": 10.4,
          "reason": "Framework reading. MCP tools through the dspy[mcp] extra, converted one by one from a client session the developer opens (14). max_iters with a turn budget shown to the model and a forced final submit bound a run (17). Unknown tools and tool exceptions return to the model as error results (15). History continuation and saved programs, but no resume of an interrupted run or durable store; answer caching can mask repeated calls (8). Signatures keep required arguments few, an LM must be configured, Python only (10). 14+17+15+8+10 = 64.",
          "checked": "2026-11-23"
        },
        {
          "key": "security",
          "name": "Security \u0026 auth",
          "weight": 14,
          "effectiveWeight": 17.5,
          "score": 60,
          "points": 10.5,
          "reason": "Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found, and the optional LiteLLM engine switches LiteLLM telemetry off (25). No tool approval hook; RLM runs generated code in a Deno and Pyodide sandbox with no filesystem or network access (10). No prompt-injection guidance found (5). MLflow tracing through OpenTelemetry and callbacks (12). SECURITY.md with GitHub private reporting and a maintainer address, but OSV lists CVE-2025-12695 for the PythonInterpreter sandbox with no fixed version (8). 25+10+5+12+8 = 60.",
          "checked": "2026-11-23"
        },
        {
          "key": "payments",
          "name": "Payments \u0026 pricing",
          "weight": 10,
          "effectiveWeight": 12.5,
          "score": 90,
          "points": 11.25,
          "reason": "Self-hosted rule. Free MIT package with nothing to buy from the project (30 + 30 + 30). No payment protocol (0). 0+30+30+30 = 90.",
          "checked": "2026-11-23"
        },
        {
          "key": "tasks",
          "name": "Task success",
          "weight": 10,
          "effectiveWeight": 10,
          "pending": true,
          "points": 0,
          "reason": "Not tested by our lab yet, so it doesn't move this listing's total either way. A data provider's data-quality score is published on its listing and becomes half of this category once it's tested."
        },
        {
          "key": "maintenance",
          "name": "Maintenance \u0026 community",
          "weight": 7,
          "effectiveWeight": 8.75,
          "score": 87,
          "points": 7.61,
          "reason": "3.5.0 tagged on 10 November 2026, 13 days before this check (30). Three releases in the 90 days to 23 November (3.4.0, 3.4.1, 3.5.0) (20). The 50 newest issues had 19 with a comment and 8 closed, with 352 issues and 475 pull requests open, while 213 commits from about 30 authors reached the repository in 90 days (12). The package is current (15). CI on six Python versions, Dependabot and actions pinned to commit SHAs (10). 30+20+12+15+10 = 87.",
          "checked": "2026-11-23"
        },
        {
          "key": "transparency",
          "name": "Transparency \u0026 trust",
          "weight": 7,
          "effectiveWeight": 8.75,
          "score": 52,
          "points": 4.55,
          "note": "editorial 68, provenance 36",
          "reason": "MIT (30). The library keeps only its answer cache, in memory and on disk by default, which the cache guide describes; no terms or privacy policy exist for the project (18). Deprecation warnings name the removal version (ReActV2 removed in 3.6), but there is no written policy and 3.5 removed APIs without a prior deprecation release (8). No telemetry, though no page states it (12). 30+18+8+12 = 68.",
          "checked": "2026-11-23"
        }
      ],
      "assessment": {
        "date": "2026-11-23",
        "basis": "public evidence",
        "confidence": "medium",
        "notes": {
          "ergonomics": "Framework reading. MCP tools through the dspy[mcp] extra, converted one by one from a client session the developer opens (14). max_iters with a turn budget shown to the model and a forced final submit bound a run (17). Unknown tools and tool exceptions return to the model as error results (15). History continuation and saved programs, but no resume of an interrupted run or durable store; answer caching can mask repeated calls (8). Signatures keep required arguments few, an LM must be configured, Python only (10). 14+17+15+8+10 = 64.",
          "maintenance": "3.5.0 tagged on 10 November 2026, 13 days before this check (30). Three releases in the 90 days to 23 November (3.4.0, 3.4.1, 3.5.0) (20). The 50 newest issues had 19 with a comment and 8 closed, with 352 issues and 475 pull requests open, while 213 commits from about 30 authors reached the repository in 90 days (12). The package is current (15). CI on six Python versions, Dependabot and actions pinned to commit SHAs (10). 30+20+12+15+10 = 87.",
          "payments": "Self-hosted rule. Free MIT package with nothing to buy from the project (30 + 30 + 30). No payment protocol (0). 0+30+30+30 = 90.",
          "reliability": "Local-package reading. Official PyPI package dspy with Python 3.10 to below 3.16 stated (20). A public test workflow runs on pushes to main and pull requests for Python 3.10 to 3.15; whether main passes wasn't read, as the Actions API refused us (15). 352 open issues and 475 open pull requests on 23 November 2026. The 50 newest issues, opened from 6 October to 23 November, had 19 with a comment and 8 closed (10). Release notes and an upgrade guide for 3.5, but 3.5 changed defaults and removed APIs in a minor release (7). 3.x, while the package classifier still says Alpha, so partial (10). 20+15+10+7+10 = 62.",
          "schema": "Framework reading. A typed Python API with an API reference for modules, tools, adapters and errors (20). No llms.txt at dspy.ai; the docs are Markdown in the repository but not served for agents (0). The tools and ReAct pages say what each part is for and when to read on (15). Tools are typed from signatures and Pydantic annotations and validated against JSON Schema (14). Many tutorials with code, and an errors page in the reference (12). Versioned docs, GitHub release notes and an upgrade guide, with no changelog file (10). 20+0+15+14+12+10 = 71.",
          "security": "Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found, and the optional LiteLLM engine switches LiteLLM telemetry off (25). No tool approval hook; RLM runs generated code in a Deno and Pyodide sandbox with no filesystem or network access (10). No prompt-injection guidance found (5). MLflow tracing through OpenTelemetry and callbacks (12). SECURITY.md with GitHub private reporting and a maintainer address, but OSV lists CVE-2025-12695 for the PythonInterpreter sandbox with no fixed version (8). 25+10+5+12+8 = 60.",
          "transparency": "MIT (30). The library keeps only its answer cache, in memory and on disk by default, which the cache guide describes; no terms or privacy policy exist for the project (18). Deprecation warnings name the removal version (ReActV2 removed in 3.6), but there is no written policy and 3.5 removed APIs without a prior deprecation release (8). No telemetry, though no page states it (12). 30+18+8+12 = 68."
        },
        "sources": [
          {
            "what": "repository (source, docs, workflows, SECURITY.md, pyproject.toml, tags)",
            "url": "https://github.com/stanfordnlp/dspy",
            "seen": "2026-11-23"
          },
          {
            "what": "home page",
            "url": "https://dspy.ai/",
            "seen": "2026-11-23"
          },
          {
            "what": "tools and MCP",
            "url": "https://dspy.ai/current/diving-deeper/tools/",
            "seen": "2026-11-23"
          },
          {
            "what": "MCP tutorial",
            "url": "https://dspy.ai/current/tutorials/mcp/",
            "seen": "2026-11-23"
          },
          {
            "what": "upgrade guide for 3.5",
            "url": "https://github.com/stanfordnlp/dspy/blob/main/docs/docs/community/upgrading-to-3-5.md",
            "seen": "2026-11-23"
          },
          {
            "what": "OSV advisories for dspy",
            "url": "https://osv.dev/list?q=dspy\u0026ecosystem=PyPI",
            "seen": "2026-11-23"
          },
          {
            "what": "GHSA-vvw2-h478-xwr3",
            "url": "https://osv.dev/vulnerability/GHSA-vvw2-h478-xwr3",
            "seen": "2026-11-23"
          },
          {
            "what": "GitHub search API, stars, issues and commits",
            "url": "https://api.github.com/search/issues?q=repo:stanfordnlp/dspy",
            "seen": "2026-11-23"
          }
        ],
        "openQuestions": [
          "unchecked: whether CI passes on main, since the GitHub Actions API refused this session",
          "unchecked: weekly PyPI downloads, not read",
          "Whether CVE-2025-12695 is fixed in current releases; OSV lists no fixed version and the docs now describe a sandbox with no filesystem access",
          "The bundled lm15 engine contains subscription login flows for several providers (Claude, Codex, Copilot and others), marked unverified and opt-in in the source; the DSPy docs don't describe them, so they weren't graded",
          "Vendor is given as Stanford NLP, the name dspy.ai shows beside the licence; no company or legal entity is named, and the company id is the project's domain dspy.ai"
        ]
      },
      "negative": 0,
      "verdict": "An MIT Python framework with typed signatures, a ReAct agent that returns tool errors to the model, MCP tool conversion, a Deno sandbox for generated code, no telemetry found and monthly releases. Release 3.5 changed defaults and removed APIs in a minor version, and there is no tool approval hook or llms.txt.",
      "bestFor": "Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.",
      "strengths": [
        "No telemetry found in the source, and the optional LiteLLM engine switches LiteLLM telemetry off",
        "Tools are typed from signatures and Pydantic annotations and validated against JSON Schema before they run",
        "ReAct returns unknown tools and exceptions to the model as error results and forces a final submit at max_iters",
        "RLM runs generated Python in a Deno and Pyodide sandbox with no filesystem or network access",
        "Releases 3.4.0, 3.4.1 and 3.5.0 between 24 September and 10 November 2026, with 213 commits in 90 days"
      ],
      "weaknesses": [
        "3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release",
        "No human approval hook for tool calls and no prompt-injection guidance found",
        "CVE-2025-12695, a sandbox file read in PythonInterpreter, is listed by OSV with no fixed version",
        "No llms.txt at dspy.ai, and no written deprecation policy",
        "352 open issues and 475 open pull requests, with 8 of the 50 newest issues closed"
      ],
      "agentNotes": [
        "Re-evaluate saved programs after upgrading to 3.5, since the default adapter and prompts changed",
        "Install dspy[mcp] and convert each MCP tool with dspy.Tool.from_mcp_tool while the client session stays open",
        "Disable the answer cache for calls whose output must change between runs, since memory and disk caches are on by default",
        "Wrap tools that send, pay or delete in your own confirmation step, because ReAct runs tools without approval",
        "Pin dspy to a minor version, since minor releases remove APIs"
      ],
      "metrics": {
        "kind": "local",
        "measured": false
      },
      "reviewCount": 0,
      "avgRating": 0,
      "history": [
        {
          "basis": "public evidence",
          "confidence": "medium",
          "grade": "B",
          "methodology": "1.0",
          "run": "2026-10-01",
          "runLabel": "October 2026 research run",
          "score": 68.3
        }
      ],
      "editorialScores": {
        "ergonomics": 64,
        "maintenance": 87,
        "payments": 90,
        "reliability": 62,
        "schema": 71,
        "security": 60,
        "transparency": 68
      },
      "provenanceScore": 36,
      "checked": {
        "categories": {
          "ergonomics": "2026-11-23",
          "maintenance": "2026-11-23",
          "payments": "2026-11-23",
          "reliability": "2026-11-23",
          "schema": "2026-11-23",
          "security": "2026-11-23",
          "transparency": "2026-11-23"
        },
        "last": "2026-11-23",
        "oldest": "2026-11-23",
        "stale": false,
        "staleAfterDays": 90
      },
      "scoreHistory": [
        {
          "date": "2026-11-23",
          "grade": "B",
          "kind": "listed",
          "method": "1.0",
          "score": 68.3
        }
      ]
    },
    "connect": {
      "install": "pip install dspy   # MCP tools: pip install \"dspy[mcp]\""
    },
    "letme": {
      "capability": "https://letme.dev/agent.framework",
      "tool": "https://letme.dev/dspy"
    },
    "notable": [
      "dspy 3.5.0 was tagged on 10 November 2026, after 3.3.0 on 3 August, 3.3.1 on 21 August, 3.4.0 on 24 September and 3.4.1 on 12 October 2026 (https://github.com/stanfordnlp/dspy)",
      "The 3.5 upgrade guide says the release changes prompts, defaults and integration APIs. XMLAdapter with native function calling replaces ChatAdapter as default, API routing defaults to auto, and CodeAct and ProgramOfThought are removed (https://github.com/stanfordnlp/dspy/blob/main/docs/docs/community/upgrading-to-3-5.md)",
      "From 3.5 the LM layer uses a bundled lm15 engine with no LiteLLM runtime dependency, per the README (https://github.com/stanfordnlp/dspy)",
      "OSV lists CVE-2025-12695 (GHSA-vvw2-h478-xwr3, 4 November 2025, moderate), an overly permissive PythonInterpreter sandbox that allowed file reads, with no fixed version given (https://osv.dev/vulnerability/GHSA-vvw2-h478-xwr3)",
      "The earliest tag in the repository is v2.4.3, on a commit of 8 April 2024. The site says the project started at Stanford NLP in December 2022 (https://dspy.ai/)"
    ],
    "area": "frameworks",
    "details": [
      {
        "label": "Surface listed",
        "value": "The open-source dspy package for Python, read from the stanfordnlp/dspy repository (source, docs, workflows, SECURITY.md, tags), dspy.ai (home, tools and MCP pages), OSV and the GitHub search API on 23 November 2026. Nothing was installed"
      },
      {
        "label": "Agents",
        "value": "dspy.ReAct(signature, tools, max_iters=20) runs structured tool calls, tells the model its turn budget, and forces a final submit when the budget runs out. RLM lets a model write and run Python that can call the model again"
      },
      {
        "label": "MCP",
        "value": "The mcp extra adds dspy.Tool.from_mcp_tool, which converts tools listed by an MCP client session, with stdio and HTTP examples in the tutorial"
      },
      {
        "label": "Optimisers",
        "value": "Optimisers such as MIPROv2 and GEPA tune instructions, demonstrations and weights against a metric, and dspy.Evaluate scores programs on a dataset"
      },
      {
        "label": "Cache",
        "value": "In-memory and on-disk answer caches are on by default, with restricted pickle loading for the disk cache"
      },
      {
        "label": "Tracing",
        "value": "The production docs point to MLflow tracing, based on OpenTelemetry"
      },
      {
        "label": "Telemetry",
        "value": "None found in the source. The optional LiteLLM engine sets litellm.telemetry to False"
      },
      {
        "label": "Runtimes",
        "value": "Python 3.10 to 3.15; tests run on 3.10 to 3.15, with 3.15 allowed to fail"
      },
      {
        "label": "Which DSPy",
        "value": "The stanfordnlp/dspy project at dspy.ai, the only product of the name found. The package classifier still reads Development Status 3 - Alpha"
      }
    ],
    "provenance": {
      "legalEntity": "",
      "domain": "dspy.ai",
      "domainRegistered": "",
      "endpointOnVendorDomain": null,
      "terms": "",
      "privacy": "",
      "statusPage": "",
      "changelog": "https://github.com/stanfordnlp/dspy/releases",
      "securityTxt": "unknown",
      "checked": "2026-11-23",
      "notes": [
        "An open-source project with no company named. The licence reads Copyright (c) 2023 Stanford Future Data Systems, the repository sits under the stanfordnlp organisation, and dspy.ai names Stanford NLP.",
        "No terms or privacy policy found on dspy.ai; the library stores data only in its local answer cache.",
        "dspy.ai/llms.txt answered 404. robots.txt rules on dspy.ai allowed the pages read.",
        "security.txt wasn't checked."
      ],
      "score": 36,
      "checks": [
        {
          "check": "Legal entity named",
          "value": "not found",
          "points": 0,
          "max": 20,
          "state": "no"
        },
        {
          "check": "Domain age",
          "value": "dspy.ai, no registry record we could read",
          "points": 0,
          "max": 15,
          "state": "no"
        },
        {
          "check": "Endpoint on the vendor's domain",
          "value": "no hosted endpoint",
          "points": 0,
          "max": 0,
          "state": "na"
        },
        {
          "check": "Terms of service",
          "value": "nothing hosted, so the MIT licence stands in",
          "points": 10,
          "max": 10,
          "state": "ok"
        },
        {
          "check": "Privacy policy",
          "value": "nothing hosted, not scored",
          "points": 0,
          "max": 0,
          "state": "na"
        },
        {
          "check": "Status page",
          "value": "not found",
          "points": 0,
          "max": 10,
          "state": "no"
        },
        {
          "check": "Changelog",
          "value": "published",
          "points": 10,
          "max": 10,
          "state": "ok"
        },
        {
          "check": "security.txt",
          "value": "could not be fetched",
          "points": 0,
          "max": 10,
          "state": "no"
        },
        {
          "check": "People named",
          "value": "2 named with their role, none with a public profile",
          "points": 7,
          "max": 10,
          "state": "part"
        },
        {
          "check": "Support route",
          "value": "a support address, help pages, a community",
          "points": 5,
          "max": 5,
          "state": "ok"
        }
      ]
    },
    "humans": {
      "slug": "dspy",
      "checked": "2026-11-23",
      "company": "Stanford NLP",
      "people": [
        {
          "name": "Omar Khattab",
          "role": "Package author",
          "page": "/people/omar-khattab/"
        },
        {
          "name": "Isaac Miller",
          "role": "Maintainer and security contact",
          "page": "/people/isaac-miller/"
        }
      ],
      "peopleNote": "dspy.ai says DSPy started at Stanford NLP and names no person. The package metadata in pyproject.toml lists Omar Khattab as author, and he is first author of the DSPy papers the README cites. SECURITY.md names isaac@dspy.ai as the maintainers' contact, and Isaac Miller wrote most commits in the 90 days to 23 November 2026. No page read calls anyone a founder, so neither is marked as one. No personal profiles were added.",
      "companySocial": {
        "github": "https://github.com/stanfordnlp"
      },
      "support": {
        "emails": [
          "isaac@dspy.ai"
        ],
        "urls": [
          "https://github.com/stanfordnlp/dspy/issues"
        ],
        "community": [
          {
            "label": "Discord",
            "url": "https://discord.gg/XCGy2WDCQB",
            "kind": "discord"
          }
        ]
      },
      "sources": [
        "https://dspy.ai/",
        "https://github.com/stanfordnlp/dspy"
      ],
      "ownership": {
        "status": "project",
        "checked": "2026-11-23",
        "sources": [
          "https://dspy.ai/",
          "https://github.com/stanfordnlp/dspy"
        ]
      }
    },
    "pageJsonUrl": "https://www.anchorterminal.com/tools/dspy.json"
  }
}
