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 dSPy is a Python framework for programming language models, offering an alternative to prompting-based approaches.

Markdown twin · ax alternatives · dspy alternatives

GraphCanon updated Sep 20, 2026

13views this month

ax logo

ax

ax-llm/ax

★ 2.9kpushed Sep 18, 2026
vs
dspy logo

dspy

stanfordnlp/dspy

★ 38kpushed Sep 17, 2026

Trust & integrity

Signalaxdspy
Maintenance
Very active (1d since push)
As of Sep 20, 2026 · github_public_v1
Very active (0d since push)
As of Sep 18, 2026 · github_public_v1
Provenance
Not a fork · Organization account
As of Sep 20, 2026 · github_public_v1
Not a fork · Organization account
As of Sep 18, 2026 · github_public_v1
OSV dependency advisories
No lockfile (source not queried)
As of Jul 15, 2026 · osv@v1
No lockfile (source not queried)
As of Sep 18, 2026 · 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
Framework for programming language models

Stars

ax
2.9k
dspy
38k

Forks

ax
195
dspy
3.3k

Open issues

ax
8
dspy
706

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
DSPy is a Python framework for programming language models, offering an alternative to prompting-based approaches.

Persona

ax
-
dspy
-

Runtime

ax
-
dspy
-

License

ax
Apache-2.0
dspy
DSPy is available under the MIT License, allowing for broad usage with attribution.

Last pushed

ax
Sep 18, 2026
dspy
Sep 17, 2026

Categories

ax
LLM Frameworks
dspy
LLM Frameworks

Trust and health

Days since push

ax
1d
dspy
0d

Open issues (now)

ax
8
dspy
706

Stars delta

ax
+58 (30d)
dspy
+1.4k (30d)

Open issues delta

ax
0 (30d)
dspy
+61 (30d)

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.
  • Pricing: DSPy is free to use and modify due to its MIT License, but users might incur costs related to model training and deployment..
  • Requirements: Min 4 GB RAM; Python environment is required for installation and use..
  • Tags unique to dspy: ai development tools, language models, programming framework.
  • Use DSPy when you need a framework that allows for direct programming of language models, rather than relying on prompting techniques.

When NOT to use dspy

  • Avoid DSPy if your project benefits more from natural language prompting and less from direct programming of the model.
  • Do not use DSPy if you prefer frameworks that focus on enhancing model performance through advanced prompting strategies.

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 38k (synced Sep 20, 2026).

Common questions

What is the difference between ax and dspy?
ax: The pretty much official DSPy framework for TypeScript. dspy: 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; Pricing: DSPy is free to use and modify due to its MIT License, but users might incur costs related to model training and deployment.; Requirements: Min 4 GB RAM; Python environment is required for installation and use.; Tags unique to dspy: ai development tools, language models, programming framework; Use DSPy when you need a framework that allows for direct programming of language models, rather than relying on prompting techniques.
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?
Avoid DSPy if your project benefits more from natural language prompting and less from direct programming of the model. Do not use DSPy if you prefer frameworks that focus on enhancing model performance through advanced prompting strategies.
Is ax or dspy more popular on GitHub?
dspy has more GitHub stars (38,116 vs 2,927). 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.