Home/Compare/ax vs dspy

Comparison

ax vs dspy

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.

Markdown twin · ax alternatives · dspy alternatives

GraphCanon updated 1w

ax logo

ax

ax-llm/ax

2.9kpushed Aug 14, 2026
vs
dspy logo

dspy

stanfordnlp/dspy

37kpushed Aug 7, 2026

Trust & integrity

Signalaxdspy
Maintenance
Very active (0d since push)
As of 1w · github_public_v1
Very active (0d since push)
As of 2w · github_public_v1
Provenance
Not a fork · Organization account
As of 1w · github_public_v1
Not a fork · Organization account
As of 2w · github_public_v1
OSV dependency advisories
No lockfile (source not queried)
As of 1mo · osv@v1
No lockfile (source not queried)
As of 1mo · osv@v1
deps.dev advisories
Not queried
deps.dev@v1
Not queried
deps.dev@v1
OpenSSF Scorecard
Not queried
openssf-scorecard@v1
Not queried
openssf-scorecard@v1

Tagline

ax
The pretty much official DSPy framework for TypeScript
dspy
A framework for programming language models

Stars

ax
2.9k
dspy
37k

Forks

ax
187
dspy
3.2k

Open issues

ax
8
dspy
645

Language

ax
TypeScript
dspy
Python

Adopt for

ax
ax is a multi-language, open-source framework for TypeScript supporting numerous large language models and AI frameworks.
dspy
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

ax
-
dspy
-

Runtime

ax
-
dspy
-

License

ax
Apache-2.0
dspy
MIT

Last pushed

ax
Aug 14, 2026
dspy
Aug 7, 2026

Categories

ax
LLM Frameworks
dspy
LLM Frameworks

Trust and health

Open issues (now)

ax
8
dspy
645

Full report

Shared compatibility

  • Python · ax: Python runtime · dspy: Python runtime

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

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+

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 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.

Explore

Sources

Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.

GitHub stars on cards: ax 2.9k · dspy 37k (synced Aug 14, 2026).

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 and dspy alternatives (ax markdown twin, dspy markdown twin), 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 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; dspy trust report.

Was this helpful?

Anonymous feedback helps us improve pages and translations.