---
title: "ax vs dspy"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/ax-llm-ax-vs-stanfordnlp-dspy"
tools: ["ax-llm-ax", "stanfordnlp-dspy"]
---

# ax vs dspy

*GraphCanon updated Aug 14, 2026*

## Verdict

Pick ax if ax is a multi-language, open-source framework for TypeScript supporting numerous large language models and AI frameworks; pick dspy if evaluate DSPy based on its unique approach of programming language models via Python, making it an option that steps away from traditional prompting methods.

[ax](http://axllm.dev) reports 2.9k GitHub stars, 187 forks, and 8 open issues, last pushed Aug 14, 2026. [dspy](https://dspy.ai) has 37k stars, 3.2k forks, and 645 open issues, last pushed Aug 7, 2026. Figures are from public GitHub metadata via [ax's repository](https://github.com/ax-llm/ax) and [dspy's repository](https://github.com/stanfordnlp/dspy).

| | [ax](/tools/ax-llm-ax.md) | [dspy](/tools/stanfordnlp-dspy.md) |
| --- | --- | --- |
| Tagline | The pretty much official DSPy framework for TypeScript | A framework for programming language models |
| Stars | 2,869 | 36,676 |
| Forks | 187 | 3,175 |
| Open issues | 8 | 645 |
| Language | TypeScript | Python |
| Adopt for | ax is a multi-language, open-source framework for TypeScript supporting numerous large language models and AI frameworks. | Evaluate DSPy based on its unique approach of programming language models via Python, making it an option that steps away from traditional prompting methods. |
| Persona | - | - |
| Runtime | - | - |
| License | Apache-2.0 | MIT |
| Categories | LLM Frameworks | LLM Frameworks |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [ax](/tools/ax-llm-ax.md) | [dspy](/tools/stanfordnlp-dspy.md) |
| --- | --- | --- |
| Open issues (now) | 8 | 645 |
| Full report | [trust report](/tools/ax-llm-ax/trust.md) | [trust report](/tools/stanfordnlp-dspy/trust.md) |

## Shared compatibility

- **Python**: [ax](/tools/ax-llm-ax.md) - Python runtime; [dspy](/tools/stanfordnlp-dspy.md) - Python runtime

## Decision facts: ax

- **Adopt for:** ax is a multi-language, open-source framework for TypeScript supporting numerous large language models and AI frameworks.

## Decision facts: dspy

- **Adopt for:** Evaluate DSPy based on its unique approach of programming language models via Python, making it an option that steps away from traditional prompting methods.

## Choose when

### Choose ax if…

- ax is primarily TypeScript; dspy is Python.
- License: ax is Apache-2.0, dspy is MIT.
- Tags unique to ax: ai, anthropic, claude, cohere.
- When you require support for large language models such as Claude, Gemini, GPT-4, and others within a TypeScript environment

### Choose dspy if…

- dspy is primarily Python; ax is TypeScript.
- License: dspy is MIT, ax is Apache-2.0.
- Tags unique to dspy: ai-development, language-models, programming framework.
- When you aim to leverage a comprehensive framework designed specifically for programming and developing with language models rather than just prompting them.

## When NOT to use ax

- When your project is predominantly in another language that lacks native support through packages checked into this repository
- If limited to environments not supporting Apache-2.0 licensed software or requiring frameworks without external dependencies for certain features like real-time audio in Go 1.23+

## When NOT to use dspy

- When your project strictly requires real-time interaction and feedback through traditional prompting methods, as DSPy's framework is focused on a programming approach which may not be suitable for all
- In scenarios where the flexibility of prompt-based interactions with language models is preferred over strict programming methodologies.

## Common questions

### What is the difference between ax and dspy?

ax: The pretty much official DSPy framework for TypeScript. dspy: A framework for programming language models. See the comparison table for live GitHub stats and shared categories.

### When should I choose ax over dspy?

Choose ax over dspy when ax is primarily TypeScript; dspy is Python; License: ax is Apache-2.0, dspy is MIT; Tags unique to ax: ai, anthropic, claude, cohere; When you require support for large language models such as Claude, Gemini, GPT-4, and others within a TypeScript environment.

### When should I choose dspy over ax?

Choose dspy over ax when dspy is primarily Python; ax is TypeScript; License: dspy is MIT, ax is Apache-2.0; Tags unique to dspy: ai-development, language-models, programming framework; When you aim to leverage a comprehensive framework designed specifically for programming and developing with language models rather than just prompting them.

### When should I avoid ax?

When your project is predominantly in another language that lacks native support through packages checked into this repository If limited to environments not supporting Apache-2.0 licensed software or requiring frameworks without external dependencies for certain features like real-time audio in Go 1.23+

### When should I avoid dspy?

When your project strictly requires real-time interaction and feedback through traditional prompting methods, as DSPy's framework is focused on a programming approach which may not be suitable for all In scenarios where the flexibility of prompt-based interactions with language models is preferred over strict programming methodologies.

### Is ax or dspy more popular on GitHub?

dspy has more GitHub stars (36,676 vs 2,869). Stars measure visibility, not whether either tool fits your constraints.

### Are ax and dspy open source?

Yes - both are open-source projects on GitHub (ax: Apache-2.0, dspy: MIT).

### Where can I find alternatives to ax or dspy?

GraphCanon lists graph-backed alternatives at [ax alternatives](/tools/ax-llm-ax/alternatives) and [dspy alternatives](/tools/stanfordnlp-dspy/alternatives) ([ax markdown twin](/tools/ax-llm-ax/alternatives.md), [dspy markdown twin](/tools/stanfordnlp-dspy/alternatives.md)), ranked by typed relationship edges rather than popularity votes.

### Is there a machine-readable version of this comparison?

Yes. The markdown twin at [this comparison](/compare/ax-llm-ax-vs-stanfordnlp-dspy.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, ax or dspy?

ax: Very active. dspy: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.

### Where are the full trust reports for ax and dspy?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [ax trust report](/tools/ax-llm-ax/trust); [dspy trust report](/tools/stanfordnlp-dspy/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=ax-llm-ax`](/api/graphcanon/graph?tool=ax-llm-ax)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
