· Framework/ What thinks

Mastra

Mastra is a framework option for building AI agents. TypeScript agent framework with workflows, memory, evals and a local playground.

Open source · can be self-hosted · SDKs for TypeScript · by Mastra · verified 2026-08-21

Official docsAdd to a stackAll framework options
· When to reach for it/ Fit
  • You are choosing a framework component — what thinks.
  • You need to run it on your own infrastructure, or your procurement process requires source access.
  • You want to start without a commercial conversation.
· What it takes to run/ Setup
Install
npm install @mastra/core
· Mastra vs the alternatives/ 7 others
OptionWhat it doesLicenceSelf-host
MastraTypeScript agent framework with workflows, memory, evals and a local playground.Open sourceYes
LangGraphGraph-shaped orchestration with checkpointing, interrupts and human-in-the-loop.Open sourceYes
Pydantic AIType-safe Python agents with structured output that actually validates.Open sourceYes
CrewAIRole-based crews of agents with delegation between them.Open sourceYes
AgnoFast, lightweight multi-agent runtime with built-in memory and knowledge.Open sourceYes
LlamaIndexData-first framework — ingestion, indexing and RAG-heavy agents.Open sourceYes
DSPyPrograms, not prompts — compile and optimise the prompt against a metric.Open sourceYes
Vercel AI SDKStreaming-first TypeScript SDK with a unified provider interface and UI hooks.Open sourceYes
· Stacks that use it/ 1
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/c/mastra