Mastra

Open-source TypeScript framework (Apache 2.0) for agents, workflows and RAG

What Mastra does

  • Open-source TypeScript framework (Apache 2.0) for agents, workflows and RAG
  • Drops directly into existing React/Next.js apps or runs standalone
  • Built-in workflow engine with suspend/resume and human-in-the-loop steps

Models & architecture

AI models and engines Mastra uses or lets you pick, as documented by the vendor. Source: Mastra docs: Models

openai/gpt-6.1-solanthropic claude-sonnet-5-5gemini-3.8-flashDeepSeekOllamaGroqMistralQwen (qwen3-30b-a3b-2507)

Example workflows

Typical ways people put Mastra to work, based on its documented capabilities:

Next.js full-stack developers replace sprawling Python microservices with Mastra TypeScript agents running natively inside their existing Node.js application repos.

Frontend teams replace custom serverless agent dispatch logic with Mastra workflows that provide type-safe streaming directly to React components.

Latest releases & milestones

@mastra/core 1.84.0

Experimental storageVersion 2 for durable agents and evented workflows stores runs as a header plus per-step rows, cutting write sizes.

Release notes (github.com)
@mastra/core 1.85.0

Session streams opened with displayState=false start with the session's current state as events; fixes tool calls running without approval after a resume.

Release notes (github.com)

Vendor sources

Pricing and feature details checked against these first-party sources on 2026-11-19.

Mastra: straight answers

What is Mastra?

Mastra is listed under Agent Frameworks (Developers), in the AI Agents & Automation category on Flocci AI Tools. Open-source TypeScript framework (Apache 2.0) for agents, workflows and RAG. It is free, with no paid plan attached, and it lives at mastra.ai.

Is Mastra free?

Mastra is listed as fully free: there is no paid tier attached to it in the catalog. That makes it one of the 396 entries on Flocci AI Tools with no upgrade path built in.

Which AI models does Mastra use?

Mastra uses or offers openai/gpt-6.1-sol, anthropic claude-sonnet-5-5, gemini-3.8-flash, DeepSeek, Ollama, Groq, Mistral and Qwen (qwen3-30b-a3b-2507), according to Mastra docs: Models. Model availability can depend on plan and region, so check the vendor's model list before you rely on a specific one.

What's new in Mastra?

The most recent Mastra releases Flocci tracks are @mastra/core 1.84.0 (2026-11-18): Experimental storageVersion 2 for durable agents and evented workflows stores runs as a header plus per-step rows, cutting write sizes; @mastra/core 1.85.0 (2026-11-18): Session streams opened with displayState=false start with the session's current state as events; fixes tool calls running without approval after a resume. Each release links to the vendor's own release notes on the tool page.

What do people use Mastra for?

Typical uses for Mastra: Next.js full-stack developers replace sprawling Python microservices with Mastra TypeScript agents running natively inside their existing Node.js application repos. Frontend teams replace custom serverless agent dispatch logic with Mastra workflows that provide type-safe streaming directly to React components.

Can I use Mastra in a browser or is there an app?

Mastra needs to be installed or self-hosted: it does not run in a browser tab. It is available on an API, self-hosting and the command line.

What can Mastra do?

Mastra does 3 things the catalog singles out: Open-source typescript framework (apache 2.0) for agents, workflows and rag; drops directly into existing react/next.js apps or runs standalone; built-in workflow engine with suspend/resume and human-in-the-loop steps.

What is the best free alternative to Mastra?

Agno is the closest free alternative: it sits in the same Agent Frameworks (Developers) sub-category and is free. AWS Strands Agents, CAMEL and Claude Agent SDK also start free. The full list is on the alternatives page.

See the full list →

Mastra alternatives

Compare all alternatives →

LangGraph

Agent Frameworks (Developers)
free
  • Build stateful, multi-agent apps as graphs
  • Human-in-the-loop and durable execution
  • Works with any LLM
  • Open-source with a hosted platform

CrewAI

Agent Frameworks (Developers)
freemium
  • Role-based multi-agent 'crews'
  • Simple Python API for collaboration
  • Tasks, tools and flows
  • Open-source core

OpenAI Agents SDK

Agent Frameworks (Developers)
free
  • OpenAI Agents SDK is a code-first toolkit for building agent loops, tools, handoffs and traces.
  • Use current OpenAI API models such as GPT-6.2 Astra for advanced reasoning and coding, or GPT-6.2 Sol for faster multi-step work.
  • Set the model explicitly in your agent configuration; API model access and pricing are separate from ChatGPT plans.
  • The SDK is open source; provider models and compute are billed under their respective terms.

Microsoft AutoGen

Agent Frameworks (Developers)
free
  • Multi-agent conversation framework
  • Event-driven, async agent design
  • Studio UI for prototyping
  • Fully open-source

LlamaIndex

Agent Frameworks (Developers)
freemium
  • Leading framework for RAG and data agents
  • Connect LLMs to your documents & APIs
  • Agentic document workflows
  • Open-source with a hosted cloud

Google Agent Development Kit (ADK)

Agent Frameworks (Developers)
free
  • Open-source Python/Java framework from Google for building multi-agent systems
  • Native integration with Vertex AI Agent Engine and Gemini models
  • Model-agnostic: works with non-Google LLMs via LiteLLM

Head-to-head comparisons