DSPy alternatives

Stanford's framework for programming, not prompting, language models: declarative modules and optimizers for prompts and weights. Full DSPy record →

  1. 1 LangChain (framework) Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 149k released 2026-10-21 MIT (OSS framework) Compare with DSPy →

  2. 2 Cline (framework) Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 68k Apache-2.0 Compare with DSPy →

  3. 3 CrewAI Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 59k released 2026-10-24 MIT Compare with DSPy →

  4. 4 LlamaIndex (framework) Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 53k released 2026-09-21 MIT Compare with DSPy →

  5. 5 LangGraph (orchestration) Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 44k released 2026-10-26 MIT Compare with DSPy →

  6. 6 Vercel AI SDK Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 28k released 2026-10-26 Apache-2.0 Compare with DSPy →

  7. 7 Haystack (framework) Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ✓ ★ 27k released 2026-10-21 Apache-2.0 Compare with DSPy →

  8. 8 Temporal Agent frameworks (no first-party memory layer)

    also in Agent frameworks (no first-party memory layer) · also open source · also self-hostable

    OSS ✓ Self-host ✓ Managed ✓ MCP ? ★ 24k released 2026-10-08 MIT Compare with DSPy →

Ranked by shared memory design (storage, retrieval, conflict handling, memory unit), same section and shared must-haves (open source, self-hosting, MCP), with adoption as a tie-breaker. ✓ confirmed · — no · ? not in the catalog yet. Want picks for your own requirements? Use the chooser. Checking a whole project? Check your stack.