Skip to content
Agentmart
Submit a tool

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.

  1. 1

    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 →

  2. 2
    CopilotKit

    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 →

  3. 3
    Letta

    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 →

  4. 4
    trueforge

    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

  5. 5

    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 →

  6. 6
    Ax

    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

  7. 7
    ai

    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

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

  9. 9

    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

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

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

  12. 12

    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 →