# Mastra

> Mastra: A strong pick for TypeScript developers who want agents, workflows and observability in one open-source framework.
> Pricing: Framework open source (Apache 2.0; enterprise features under a separate license). Mastra Platform, per workspace: Free $0 (100K observability events); Starter $25/mo (1 small dedicated project, 250K events); Team $250/mo (3 dedicated projects, SOC 2 report, 10M events); Enterprise custom (RBAC, SSO, audit logs). Usage past the allowances is billed, e.g. $10 per 100K events and $0.25 per GB-hour of memory. ([source](https://mastra.ai/pricing), verified 2026-11-30).

- Canonical page: https://usewhichtool.com/tools/mastra
- Last verified: 2026-11-30
- Publisher: Use Which Tool (https://usewhichtool.com), run by Sameer Chowdhry
- Cite as: Use Which Tool, "Mastra", https://usewhichtool.com/tools/mastra (last verified 2026-11-30)


## Verdict

A strong pick for TypeScript developers who want agents, workflows and observability in one open-source framework.

Per its docs and pricing page, Mastra is an open-source TypeScript framework with agents, workflows, memory and observability built in, plus a hosted platform with a free plan.

## Pricing

- Summary: Framework open source (Apache 2.0; enterprise features under a separate license). Mastra Platform, per workspace: Free $0 (100K observability events); Starter $25/mo (1 small dedicated project, 250K events); Team $250/mo (3 dedicated projects, SOC 2 report, 10M events); Enterprise custom (RBAC, SSO, audit logs). Usage past the allowances is billed, e.g. $10 per 100K events and $0.25 per GB-hour of memory.
- Price type: Open source
- Official source: https://mastra.ai/pricing
- Verified: 2026-11-30
- Official site: https://mastra.ai

## Use cases

- build AI agents and workflows in TypeScript
- add agents to an existing Next.js, React, Express or SvelteKit app
- trace and evaluate agents before and after release

## Strengths

- Open-source TypeScript agent framework (Apache 2.0, except enterprise features in ee/ folders)
- Agents, workflows and memory in one framework, with Studio, an interactive UI for your project
- Built-in observability: traces, metrics, evals and datasets
- Hosted Mastra Platform has a free plan with unlimited agents, users and deployments

## Limitations

- Code required: it is a TypeScript framework
- Enterprise features in ee/ folders use a separate Mastra Enterprise Edition license
- Hosted platform bills compute, connections, egress and observability events beyond each plan's allowance

## Categories

- [Agents](https://usewhichtool.com/category/agents)

## Alternatives (AI agents tools)

| Tool | Price type | Pricing | Source | Verified |
| --- | --- | --- | --- | --- |
| [Cursor](https://usewhichtool.com/tools/cursor) | Free tier | Free tier; paid tiers listed at $8, $30, $100 and $200/month; Teams from $30/user/month; Enterprise custom. | [official](https://cursor.com/pricing) | 2026-11-30 |
| [GitHub Copilot](https://usewhichtool.com/tools/github-copilot) | Free tier | Free; Pro $10/mo; Pro+ $39/mo; Max $100/mo. Each plan includes monthly GitHub AI Credits for chat and agents (Pro $15, Pro+ $70, Max $200 in credits); code completions stay unlimited on paid plans. | [official](https://github.com/features/copilot/plans) | 2026-11-30 |
| [Claude Code](https://usewhichtool.com/tools/claude-code) | Paid | Included with Claude Pro ($17/mo annual, $20 monthly), Max ($100/mo, 5x Pro usage, $100/mo Claude Platform API credits) and Ultra ($200/mo, 10x Pro weekly usage, $200/mo API credits, no 5-hour limit for verified accounts); Claude Code usage beyond plan limits is billed separately via usage credits (the monthly API credits do not cover Claude Code). | [official](https://claude.com/pricing) | 2026-11-30 |
| [Devin (incl. Devin Desktop, formerly Windsurf)](https://usewhichtool.com/tools/devin) | Free tier | Free; Pro $20/mo; Max $200/mo; Teams $80/mo flat, paid as on-demand credits shared by the whole team; Enterprise custom. | [official](https://devin.ai/pricing) | 2026-11-30 |
| [Cline](https://usewhichtool.com/tools/cline) | Open source | Free open-source extension; pay only for AI inference (BYOK or Cline provider); optional ClinePass subscription for open-weight models listed at $9.99/mo; Enterprise custom. | [official](https://cline.bot/pricing) | 2026-11-30 |
| [OpenAI Codex](https://usewhichtool.com/tools/openai-codex) | Free tier | Free plan includes Codex with lower limits; Go $8/mo; Plus $20/mo; Pro $100, $200 or $500/mo; Business $20/user/mo (2+ users, annual; $25 monthly); Enterprise and Edu via sales. Codex shares one usage allowance with ChatGPT Work. | [official](https://learn.chatgpt.com/docs/pricing) | 2026-11-30 |
| [Factory (Droid)](https://usewhichtool.com/tools/factory) | Free tier | Free $0 (bring your own inference: sign in with ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway, or connect your own API keys or custom endpoint); Pro $20/mo; Plus $100/mo (~5x Pro usage); Max $200/mo (~10x Pro usage); Teams $60/mo per team plus $40/mo per individual, up to 10 seats; Business and Enterprise custom. Extra Usage is prepaid credit with a $10 minimum. | [official](https://factory.com/pricing) | 2026-11-30 |
| [OpenCode](https://usewhichtool.com/tools/opencode) | Open source | Free and open source, with free models included; you pay any model provider you connect. Optional OpenCode Go model subscription: Go $10/mo, Go Plus $40/mo, Go Teams $20/member/mo. OpenCode Models are pay-as-you-go from a $20 balance. | [official](https://opencode.ai) | 2026-11-30 |
| [Google Antigravity](https://usewhichtool.com/tools/google-antigravity) | Freemium | Individual $0 (baseline quota refreshed weekly); Google AI Pro ($19.99/mo) refreshes quota every 5 hours with a higher weekly limit; Google AI Ultra (from $99.99/mo) has the highest quota and weekly limits plus Gemini 4 Carbon; Pro and Ultra include Gemini 4 Neon; Pro and Ultra can pay for usage above the quota with AI credits; Business via Gemini Enterprise on Google Cloud (Standard/Plus from $30 per seat/mo, or pay as you go with a $0 seat fee), or API access with consumption-based pricing. | [official](https://antigravity.google/pricing) | 2026-11-30 |
| [Kiro](https://usewhichtool.com/tools/kiro) | Free tier | Free $0 (50 credits; open-weight models and Claude Sonnet 4.5, with limits); Pro $20, Pro+ $40, Pro Max $100, Power $200 per user/mo (1,000 / 2,000 / 5,000 / 10,000 credits); add-on credits $0.04 each; team credit pooling (Credit sharing) from $20/seat/mo with 500 credits per seat into a shared pool. First upgrade from Free: rest of that month free plus 500 trial credits. | [official](https://kiro.dev/pricing/) | 2026-11-30 |
| [Replit](https://usewhichtool.com/tools/replit) | Freemium | Core $20/mo ($18 annual) incl. $20 model credit; Pro $100/mo ($90 annual) incl. $100 credit, with larger options up to $2,000/mo; Enterprise custom. | [official](https://replit.com/pricing) | 2026-11-30 |
| [LangGraph](https://usewhichtool.com/tools/langgraph) | Open source | Framework open source; LangSmith Developer $0/seat, Plus $39/seat + pay-as-you-go; Enterprise custom. | [official](https://www.langchain.com/pricing) | 2026-11-30 |
| [CrewAI](https://usewhichtool.com/tools/crewai) | Free tier | Basic: Free; Enterprise: custom (per pricing page). | [official](https://www.crewai.com/pricing) | 2026-11-30 |
| [OpenAI Agents SDK](https://usewhichtool.com/tools/openai-agents-sdk) | Open source | SDK is free/open source; model usage billed per OpenAI API pricing. | [official](https://openai.com/business/pricing/#api) | 2026-11-30 |
| [n8n](https://usewhichtool.com/tools/n8n) | Paid | Starter €20/mo, Pro €50/mo, Business €667/mo (billed annually); Community Edition self-hosted free. | [official](https://n8n.io/pricing/) | 2026-11-30 |

## Cost by plan

| Price | What's included | Usage unit | When limits reset | Past the limit | Can you cap spend? |
| --- | --- | --- | --- | --- | --- |
| $0 | Open source (Apache 2.0; enterprise features under a separate license) | Mastra Platform, per workspace each month: compute (memory GB-hours and vCPU-hours), connections, egress and observability events | Not published | Usage past a plan's allowance is billed: $0.25 per GB-hour of memory, $0.25 per vCPU-hour, $0.50 per extra connection, $0.10 per GB of egress and $10 per 100K observability events. | Not published |
| $0 | Unlimited agents, users and deployments; 360 GB-hours memory, 40 vCPU-hours, 5 connections, 10 GB egress, 100K observability events | Mastra Platform, per workspace each month: compute (memory GB-hours and vCPU-hours), connections, egress and observability events | Not published | Usage past a plan's allowance is billed: $0.25 per GB-hour of memory, $0.25 per vCPU-hour, $0.50 per extra connection, $0.10 per GB of egress and $10 per 100K observability events. | Not published |
| $25/mo | 1 small dedicated project; 720 GB-hours, 100 vCPU-hours, 10 connections, 25 GB egress, 250K events, usage alerts | Mastra Platform, per workspace each month: compute (memory GB-hours and vCPU-hours), connections, egress and observability events | Not published | Usage past a plan's allowance is billed: $0.25 per GB-hour of memory, $0.25 per vCPU-hour, $0.50 per extra connection, $0.10 per GB of egress and $10 per 100K observability events. | Not published |
| $250/mo | 1 small and 2 medium dedicated projects; 3.6K GB-hours, 400 vCPU-hours, 50 connections, 50 GB egress, 10M events, SOC 2 report | Mastra Platform, per workspace each month: compute (memory GB-hours and vCPU-hours), connections, egress and observability events | Not published | Usage past a plan's allowance is billed: $0.25 per GB-hour of memory, $0.25 per vCPU-hour, $0.50 per extra connection, $0.10 per GB of egress and $10 per 100K observability events. | Not published |
| Custom | RBAC, SSO, audit logs, custom connections and allowances, and dedicated support | Mastra Platform, per workspace each month: compute (memory GB-hours and vCPU-hours), connections, egress and observability events | Not published | Usage past a plan's allowance is billed: $0.25 per GB-hour of memory, $0.25 per vCPU-hour, $0.50 per extra connection, $0.10 per GB of egress and $10 per 100K observability events. | Not published |

Sources: [Mastra: official pricing page](https://mastra.ai/pricing) (checked 2026-11-30); [Mastra license (Apache 2.0 and Enterprise Edition)](https://github.com/mastra-ai/mastra/blob/main/LICENSE.md) (checked 2026-11-23). "Not published" means the value was not found on these official pages.

## Questions

### Is Mastra free?

It has an open-source option. Framework open source (Apache 2.0; enterprise features under a separate license). Mastra Platform, per workspace: Free $0 (100K observability events); Starter $25/mo (1 small dedicated project, 250K events); Team $250/mo (3 dedicated projects, SOC 2 report, 10M events); Enterprise custom (RBAC, SSO, audit logs). Usage past the allowances is billed, e.g. $10 per 100K events and $0.25 per GB-hour of memory. (official pricing page, checked 2026-11-30)

### How much does Mastra cost?

Framework open source (Apache 2.0; enterprise features under a separate license). Mastra Platform, per workspace: Free $0 (100K observability events); Starter $25/mo (1 small dedicated project, 250K events); Team $250/mo (3 dedicated projects, SOC 2 report, 10M events); Enterprise custom (RBAC, SSO, audit logs). Usage past the allowances is billed, e.g. $10 per 100K events and $0.25 per GB-hour of memory. (from mastra.ai/pricing, checked 2026-11-30).

### What is Mastra used for?

Listed use cases: build AI agents and workflows in TypeScript; add agents to an existing Next.js, React, Express or SvelteKit app; trace and evaluate agents before and after release.

### What are the best alternatives to Mastra?

Other AI agents tools in this directory: Cursor, GitHub Copilot, Claude Code, Devin (incl. Devin Desktop, formerly Windsurf). We list them in data order, not ranked.

### Did you test Mastra?

No. Verdicts are based on each vendor's public docs and pricing pages, not hands-on testing, unless a page says otherwise.

---

Use Which Tool builds verdicts from public docs and official pricing pages, not hands-on testing. No paid rankings. Free to read, quote and reuse with attribution. Please cite "Use Which Tool" and link to https://usewhichtool.com (or the tool's page). Prices change: show the verified date and link the official source.
More: https://usewhichtool.com/llms.txt · https://usewhichtool.com/data/tools.json · https://usewhichtool.com/sitemap.xml
