Skip to content
Agent Search Engine.

Alternatives · Agent Frameworks

DSPy alternatives

Looking for an alternative to DSPy? Below are the agent frameworks in our index that do a similar job — open-source options are ranked by real maintained adoption (GitHub stars and recent commit activity), never by sponsorship. DSPy is open source, so the list below includes both other self-hostable projects and commercial products.

the 10 closest of 54 · all agent frameworks · how we rank

The product you're replacing

DSPyFrameworkAgent Frameworks

Stanford's framework for programming, not prompting, language models, with optimisers for prompts and weights.

Open source · 38k stars · Python · MIT · updated Sep 2026

Building one yourself? How to choose an agent framework

Commercial alternatives to DSPy

Listed alphabetically — GitHub stars don't measure commercial adoption.

CrewAI PlatformPlatformFramework and platform for orchestrating role-playing multi-agent crews.FreemiumVerified

vs DSPyCrewAI Platform is a commercial product; DSPy is open-source and self-hostable.

Open-source alternatives to DSPy

Ranked by maintained adoption — self-hostable and free to run.

langchainFrameworkThe agent engineering platform.Open sourcePython · MITVerified · Active 147kGitHub stars

vs DSPyBest for builders who want composable primitives and the broadest ecosystem of integrations for LLM applications.

LlamaIndexFrameworkFramework for connecting LLMs and agents to your own documents and data.Open sourceMITVerified · Active 52kGitHub stars

vs DSPyBest for retrieval-heavy applications where the hard part is getting your own documents and data into an agent reliably.

For agent buildersMake your product part of the discovery.Explore advertising

Showing the 10 closest. See all 54 agent frameworks

Frequently asked

What is the best alternative to DSPy?
It depends on whether you'd rather self-host or buy a managed product. langchain is the most widely-adopted open-source alternative (147k GitHub stars); CrewAI Platform is one of the commercial options. Compare the full list above on adoption, license, and pricing.
Is there a free or open-source alternative to DSPy?
Yes. langchain, ruflo, and MetaGPT are open-source agent frameworks you can self-host for free — you still pay for the infrastructure you run them on and any model or API usage. See the ranked open-source list above.
How are these DSPy alternatives ranked?
Every product in the agent frameworks category is a candidate. Open-source alternatives are ranked by maintained adoption — GitHub stars plus recent commit activity — so you see what's genuinely used, not abandoned. Commercial products are listed separately and alphabetically, because stars don't measure commercial adoption. Sponsored placement is always labeled and never affects the ranking.