Mastra

Mastra

A TypeScript framework for building and operating AI agents, workflows, memory, tools, and observability.

Category:AI Agent
freemium
Last Updated 8/28/2026

About Mastra

Mastra is a TypeScript framework for building AI applications and agents with typed definitions for models, tools, instructions, memory, and runtime behavior. It also supports durable multi-step workflows and includes observability for logs, metrics, and traces. Developers can start a project with the create Mastra CLI, work locally in Mastra Studio, and deploy through their own infrastructure or Mastra Platform. The open-source framework is Apache 2.0 licensed and can be hosted anywhere. Platform pricing starts with a free Starter tier, while Teams costs $250 per month and Enterprise uses custom pricing. Usage beyond included platform allowances can add charges for traces, data egress, CPU time, gateway tokens, memory, retrieval storage, and databases. Mastra is a practical fit for TypeScript teams that want one framework across agent logic and operational tooling. Buyers should estimate workload-based costs and confirm that its TypeScript-first approach fits their stack.

Best for

TypeScript teams building agent-based applications
Engineering teams that need workflows, memory, and observability together
Organizations comparing managed platform deployment with self-hosting

Best use cases

Prototype an agent locally and move it into production

Coordinate durable multi-step work with typed control flow

Monitor deployed agents through logs, metrics, and traces

Compare before choosing

Compare the $0 Starter allowance with expected usage charges

Compare the $250 monthly Teams tier with self-hosted operating costs

Compare TypeScript compatibility and enterprise controls with alternative agent frameworks

Features

Build typed AI agents

Define agent instructions, models, tools, memory, and runtime behavior in a TypeScript project.

Orchestrate durable workflows

Create multi-step agent processes with typed control flow for work that must continue reliably.

Operate production agents

Use Studio plus logs, metrics, and traces to test, inspect, deploy, and monitor agent applications.

Pros

  • The Apache 2.0 framework costs $0 and can be hosted on infrastructure you control.
  • Typed agents and durable workflows keep agent logic in the same TypeScript development workflow.
  • Built-in logs, metrics, traces, Studio, and deployment tooling reduce the number of separate operational tools.

Cons

  • Platform usage beyond included allowances can add charges across observability, egress, compute, tokens, storage, and databases.
  • The TypeScript-first workflow is less convenient for teams standardized on Python or another runtime.
  • Enterprise self-hosting features and pricing require a sales conversation, which limits upfront cost comparison.

Pricing Plans

Free

$0month
  • Apache 2.0 licensed
  • Build and host agents anywhere
  • Agents, workflows, and observational memory

Starter

$0month
  • 100K logs, metrics, and traces included
  • 10GB data egress included
  • 24 CPU hours included
  • 1GB platform data storage

Teams

$250month
  • 1M logs, metrics, and traces included
  • 100GB data egress included
  • 250 CPU hours included
  • 100GB platform data storage

Enterprise

Customcustom
  • Enterprise controls including RBAC, SSO, IAM, and network policies
  • Data stays in your VPC
  • Flat annual fee for licensed self-hosted features
  • Custom platform allowances

* Pricing information is for reference only. Please refer to the latest announcement on Mastra's official website.

FAQ

Mastra is used to build TypeScript AI applications and agents with tools, memory, workflows, model routing, and observability.
Yes. The Apache 2.0 licensed framework can be built and hosted anywhere, while licensed enterprise self-hosting adds controls such as RBAC, SSO, IAM, and network policies.
The open-source framework and Starter platform tier are $0 per month. Teams is $250 per month, Enterprise is custom priced, and platform usage above included allowances can create additional charges.

Tool Information

DeveloperMastra
Release Date7/20/2026
Pricingfreemium