Ax vs Mastra
Ax and Mastra are both agent frameworks for TypeScript. Ax is published by Ax and Mastra by Mastra. On GitHub, Mastra has 29,050 stars and Ax has 2,969. Both were last active in Oct 2026. The table lines up where they differ (publisher, GitHub stars, weekly downloads and languages) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. Ax describes itself as: DSPy-style toolkit for typed LLM signatures, agents and flows, TypeScript-first with Python, Java, C++, Go and Rust libraries. Mastra: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing. Licenses: Ax Apache-2.0, Mastra unknown.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
Ax
Ax
DSPy-style toolkit for typed LLM signatures, agents and flows, TypeScript-first with Python, Java, C++, Go and Rust libraries.
Mastra
Mastra
TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing.
Who should pick which
- Pick Ax if you work in Python and Java.
- Pick Ax if you need several agents working together.
- Pick Mastra if you want MCP support built in.
- Mastra has the larger community: 29,050 GitHub stars against 2,969.
From listing data only. We don't pick a winner on security beyond the grades; read how grades work.
Side by side
| Fact | Ax | Mastra |
|---|---|---|
| Type | Harness | Harness |
| Publisher | Ax | Mastra |
| License | Apache-2.0 | License unknown |
| Pricing | Not stated | Not stated |
| Runs | Not stated | Not stated |
| Auth | Not stated | Not stated |
| Hosts supported | Not stated | Not stated |
| Tools | Not listed yet | Not listed yet |
| Security grade | –Security: not graded yet | –Security: not graded yet |
| Freshness grade | AFreshness: A | AFreshness: A |
| GitHub stars | 2,969 | 29,050 |
| Weekly downloads | 27,168 | 1,442,185 |
| Last release | Oct 21, 2026 | Oct 21, 2026 |
| Last activity | Oct 21, 2026 | Oct 24, 2026 |
Facts from each listing's public sources, checked daily. Tool lists arrive with tool scans.
Install
Ax
npm install @ax-llm/ax
Mastra
npm install @mastra/core
Also consider
- 0.809score
Rig
Playgrounds
Rust library for LLM applications with agents, tool calling, streaming and 20+ model providers, plus a terminal coding agent.
HarnessAFreshness: A★ 9K↓ 152.4K/wk - 0.777score
ADK for TypeScript
Google
TypeScript toolkit for agents with Zod-typed tools, graph and multi-agent workflows, and Node.js or browser runtimes.
HarnessAFreshness: A★ 1.4K↓ 143.5K/wk - 0.748score
LangGraph
LangChain
Low-level Python orchestration framework for long-running stateful agents, with durable execution, human review points and short- and long-term memory.
HarnessAFreshness: A★ 43.8K↓ 13.1M/wk
Questions
- Is Ax or Mastra more popular?
- Mastra has more GitHub stars (29,050 against 2,969). Stars measure attention, not quality, so check freshness and docs too.
- Are Ax and Mastra open source?
- Ax is open source (Apache-2.0); the other is unknown.
Related
- AlternativesAlternatives to Ax
- AlternativesAlternatives to Mastra
- Best ofBest agent frameworks for Python
- Best ofBest agent frameworks for TypeScript
- ComparisonAx vs Rig
- ComparisonADK for TypeScript vs Ax
- ComparisonAx vs LangGraph
- ComparisonMastra vs Pi Agent Core
- ComparisonCopilotKit vs Mastra
- ComparisonLetta vs Mastra
Cite this page
Ax vs Mastra. Agent Mart. https://agentmart.dev/compare/ax-vs-mastra (last updated 2026-10-26)