Alternatives to Mastra
Mastra is an agent framework by Mastra: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing. If it doesn't fit your setup, these 12 agent frameworks cover similar ground. They are ordered by how closely they match Mastra and by our rank, which weighs adoption, freshness and documentation; money never changes the order. Pi Agent Core leads the list (more GitHub stars (117.6K); open source). Each entry shows data reasons to switch, and you can open a side-by-side comparison with Mastra.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
You're replacing
Mastra
TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing.
12 alternatives
Ordered by how closely each matches Mastra (shared product, category or stated alternative) and by rank.
- 1Pi Agent Core
Earendil
Minimal TypeScript agent harness with an agent runtime, multi-provider LLM API, terminal UI and coding agent CLI that users extend themselves.
- More GitHub stars (117.6K)
- Open source
★ 117.6K↓ 5.1M/wkLast active Oct 24, 2026Compare →
AFreshness: A–Security: not graded yet - 2CopilotKit
CopilotKit
Open-source SDK that connects AI agents to app front ends with chat UI, generative UI, shared state and human approvals; creator of the AG-UI protocol.
- Open source
★ 38.2K↓ 286.2K/wkLast active Oct 24, 2026Compare →
AFreshness: A–Security: not graded yet - 3Letta
Letta
Open-source agent harness for stateful agents whose memory persists and improves with use, with a terminal UI, app server and TypeScript SDK.
- Open source
★ 25.2K↓ 40.7K/wkLast active Oct 18, 2026Compare →
AFreshness: A–Security: not graded yet - 4trueforge
truefoundry
Open-source agent harness that runs the model loop for you, with MCP tools, skills, sandboxing, approvals and a chat UI.
- Open source
★ 6.4KLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 5ADK for TypeScript
Google
TypeScript toolkit for agents with Zod-typed tools, graph and multi-agent workflows, and Node.js or browser runtimes.
- Open source
★ 1.4K↓ 143.5K/wkLast active Oct 23, 2026Compare →
AFreshness: A–Security: not graded yet - 6Ax
Ax
DSPy-style toolkit for typed LLM signatures, agents and flows, TypeScript-first with Python, Java, C++, Go and Rust libraries.
- Open source
- Supports Python and Java
★ 3K↓ 27.2K/wkLast active Oct 21, 2026
AFreshness: A–Security: not graded yet - 7ai
TanStack
TypeScript SDK for streaming chat, tool-calling agents and structured output across model providers and UI frameworks.
- Open source
★ 3.2KLast active Oct 24, 2026
AFreshness: A–Security: not graded yet - 8
Open-source toolkit for building, evaluating and deploying agents in Python, TypeScript, Go, Java and Kotlin, tuned for Gemini but model-agnostic.
- Open source
- Supports Python and Go
★ 22K↓ 2.4M/wkLast active Oct 24, 2026Compare →
AFreshness: A–Security: not graded yet - 9Vercel AI SDK
Vercel
TypeScript toolkit for AI apps and agents with a unified provider API, streaming, UI hooks and a wrapper for running established agent harnesses.
- 27.5K GitHub stars
- Active in the last 30 days
★ 27.5KLast active Oct 23, 2026
AFreshness: A–Security: not graded yet - 10LangGraph.js
LangChain
Open-source agent harness from LangChain for building agents with code, with LangSmith for testing and monitoring.
- Open source
★ 3.4K↓ 2.3M/wkLast active Oct 22, 2026
AFreshness: A–Security: not graded yet - 11LangChain.js
LangChain
JavaScript and TypeScript framework of interoperable components for building LLM apps and agents, with LangGraph.js and Deep Agents above it.
- Open source
- Supports JavaScript
★ 18.3KLast active Oct 23, 2026
AFreshness: A–Security: not graded yet - 12Claude Agent SDK (TypeScript)
Anthropic
TypeScript SDK that gives programs Claude Code's built-in tools for reading, editing and running code, installed from npm.
- 1.8K GitHub stars
- Most weekly downloads here (8.1M)
★ 1.8K↓ 8.1M/wkLast active Oct 23, 2026Compare →
AFreshness: A–Security: not graded yet
Related
- ComparisonMastra vs Pi Agent Core
- ComparisonCopilotKit vs Mastra
- ComparisonLetta vs Mastra
- ComparisonGoogle Agent Development Kit (ADK) vs Mastra
- ComparisonADK for TypeScript vs Mastra
- ComparisonClaude Agent SDK (TypeScript) vs Mastra
- Best ofBest agent frameworks for TypeScript
- AlternativesAlternatives to Pi Agent Core
- AlternativesAlternatives to CopilotKit
- AlternativesAlternatives to Letta
- AlternativesAlternatives to trueforge
- AlternativesAlternatives to ADK for TypeScript
- AlternativesAlternatives to Ax