Lattice
Skip to content

Mastra

mastra.aiframeworkself-hosted

Mastra is a self-hosted framework in the Agent Frameworks layer of the AI stack. TypeScript agent framework with typed workflows and evals.

By Lattice editorial · Facts verified · method

licence
Apache-2.0
language
TypeScript
cost
free

Use Mastra when

TypeScript agents with typed workflows and evals built in.

Skip Mastra when

You are working in Python.

Turns a model call into a multi-step program. — that is what this layer of the stack is answerable for. See the full Agent Frameworks section for the rest of the options.

Also belongs in

  • Evaluation & ObservabilityIts eval harness ships inside the framework, so grading an agent is part of running it rather than a separate tool.
Visit mastra.aiCompare with another tool
Badge this entry
Lattice badge: Mastra verified 2026-09
[![Mastra on Lattice: verified 2026-09](https://lattice.kunjshah.in/agent-frameworks/mastra/badge.svg)](https://lattice.kunjshah.in/agent-frameworks/mastra)

Quick answers

Is Mastra open source?
Yes. Mastra is open source under the Apache-2.0 licence. It is free to use.
What are the alternatives to Mastra?
The closest alternatives to Mastra are Vercel AI SDK and OpenAI Agents SDK.

Reading on agents

Alternatives to Mastra

Listed as an alternative to

  • Vercel AI SDK

Also in agents

  • LangChain
  • LlamaIndex
  • Pydantic AI
  • AutoGen
  • CrewAI
  • Semantic Kernel
  • OpenAI Agents SDK
  • Agno
  • Claude Agent SDK
  • Letta
  • smolagents
  • Vercel AI SDK