Alternatives to DSPy
DSPy is an agent framework by Stanford NLP: Python framework for writing language-model programs as code and optimizing their prompts and weights instead of hand-tuning prompts. If it doesn't fit your setup, these 12 agent frameworks cover similar ground. They are ordered by how closely they match DSPy and by our rank, which weighs adoption, freshness and documentation; money never changes the order. LlamaIndex leads the list (52.6K GitHub stars; active in the last 30 days). Each entry shows data reasons to switch, and you can open a side-by-side comparison with DSPy.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
You're replacing
DSPy
Python framework for writing language-model programs as code and optimizing their prompts and weights instead of hand-tuning prompts.
12 alternatives
Ordered by how closely each matches DSPy (shared product, category or stated alternative) and by rank.
- 1LlamaIndex
LlamaIndex
Open-source Python toolkit for RAG and agents over your own data, with event-driven workflows and 300+ integration packages.
- 52.6K GitHub stars
- Active in the last 30 days
★ 52.6K↓ 1.4M/wkLast active Oct 14, 2026
AFreshness: A–Security: not graded yet - 2LangChain
LangChain
Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it.
- More GitHub stars (148.4K)
★ 148.4K↓ 37.3M/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 3LangGraph
LangChain
Low-level Python orchestration framework for long-running stateful agents, with durable execution, human review points and short- and long-term memory.
- 43.8K GitHub stars
- Active in the last 30 days
★ 43.8K↓ 13.1M/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 4CrewAI
CrewAI
Open-source Python framework for multi-agent workflows, with role-based Crews and event-driven Flows.
- 60.1K GitHub stars
- Active in the last 30 days
★ 60.1K↓ 644.6K/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 5AutoGen
Microsoft
Archived Microsoft Python framework for multi-agent apps; Microsoft directs new users to Microsoft Agent Framework.
- 61.5K GitHub stars
- Active in the last 30 days
★ 61.5K↓ 89K/wkLast active Oct 16, 2026Compare →
AFreshness: A–Security: not graded yet - 6Youtu-Agent
Tencent
Framework for building, running and evaluating autonomous agents, with a planner-based multi-agent mode, skills and agent RL training.
- 4.6K GitHub stars
- For Python
★ 4.6K↓ 23/wkLast active Mar 21, 2026
DFreshness: D–Security: not graded yet - 7Genkit
Google
Open-source Firebase framework for AI features and agent workflows in JavaScript, Go, Python and Dart, with model plugins.
- Supports TypeScript and JavaScript
★ 6.5K↓ 95.8K/wkLast active Oct 23, 2026
AFreshness: A–Security: not graded yet - 8
Open-source Python and TypeScript SDK for model-driven agents, with tools, MCP, multi-agent patterns and streaming.
- Supports TypeScript
★ 8.9K↓ 8.9M/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 9Ax
Ax
DSPy-style toolkit for typed LLM signatures, agents and flows, TypeScript-first with Python, Java, C++, Go and Rust libraries.
- Supports TypeScript and Java
★ 3K↓ 27.2K/wkLast active Oct 21, 2026
AFreshness: A–Security: not graded yet - 10GitHub Copilot SDK
GitHub
Multi-language SDKs for embedding the GitHub Copilot agent runtime, with planning, tool calls and file edits, in your apps.
- Supports TypeScript and Go
★ 10.6K↓ 1.2M/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 11PraisonAI
Mervin Praison
Python framework for multi-agent teams and workflows, with a CLI and Docker, MCP and A2A deployment options.
- Supports JavaScript
★ 9.3K↓ 4.6K/wkLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 12BeeAI Framework
IBM / Linux Foundation
Python and TypeScript framework for multi-agent systems, with MCP and A2A interop, YAML orchestration and OpenTelemetry tracing.
- Supports TypeScript
★ 3.4K↓ 5.4K/wkLast active Oct 23, 2026
AFreshness: A–Security: not graded yet