Open source Agent Frameworks Open source

Mastra

The TypeScript agent framework.

by Mastra

What is Mastra?

Mastra is an open-source TypeScript framework for building AI agents and workflows. It includes agents with tools and memory, graph-based workflows, RAG, evals and a local playground, and deploys anywhere Node runs.

Key features

  • Agents with tools and memory
  • Durable graph-based workflows
  • Built-in evals and tracing
  • Local dev playground

Use cases

  • Agents in TypeScript products
  • RAG applications
  • Workflow automation

Mastra alternatives

Compare all →

LangGraph

by LangChain

Build controllable, stateful agents as graphs.

Open source Agent Frameworks

CrewAI

by CrewAI

Orchestrate role-playing, collaborative AI agent teams.

Open source Agent Frameworks

OpenAI Agents SDK

by OpenAI

A lightweight SDK for building multi-agent workflows.

Open source Agent Frameworks

Claude Agent SDK

by Anthropic

The agent harness behind Claude Code, as an SDK.

Open source Agent Frameworks

Pydantic AI

by Pydantic

Type-safe agent framework from the Pydantic team.

Open source Agent Frameworks

AutoGen

by Microsoft

Microsoft’s open-source framework for multi-agent applications.

Open source Agent Frameworks

Mastra FAQ

What is Mastra?

Mastra is an open-source TypeScript framework for building AI agents and workflows. It includes agents with tools and memory, graph-based workflows, RAG, evals and a local playground, and deploys anywhere Node runs.

How much does Mastra cost?

Mastra is open source. Open source; paid cloud offering. Check the official website for current pricing.

Who is Mastra best for?

TypeScript and JavaScript teams.

Is Mastra open source?

Yes, Mastra is open source.

What are the best alternatives to Mastra?

Popular alternatives include LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK. See our full list of Mastra alternatives for a comparison.

Listing last reviewed November 2026. Spotted something out of date? Tell us.