Watch: The flat Teams price is only part of production cost; CPU...
Mastra
Mastra is a TypeScript-first framework and platform for agents, workflows, RAG, memory, evals, observability, model routing, and production agent...
$0-$250/month + usage add-ons / custom enterprise
Best plan
$0-$250/month + usage add-ons / custom enterprise
Risk: The flat Teams price is only part of production cost; CPU...
Editorial · no paid placements
Should you use it?
Mastra is a TypeScript-first framework and platform for agents, workflows, RAG, memory, evals, observability, model routing, and production agent APIs. The framework is mostly Apache 2.0 and free; Mastra Platform has a $0 Starter plan, $250/month Teams plan, custom Enterprise, and usage meters for CPU, observability, egress, persistent server uptime, Memory Gateway tokens/storage, platform storage, database usage, and model-provider usage as of June 26, 2026. Pick it if your stack is TypeScript and you want agent logic in app code. Skip it if you are Python-first, want no-code automation, or cannot review sandbox/ACP harness permissions.
- Buy if TypeScript and JavaScript developers building AI agents
- Pick $0-$250/month + usage add-ons / custom enterprise
- Skip if Python-first teams
Plan guidance
What to buy
$0/month / $250/month + usage
The flat Teams price is only part of production cost; CPU...
Current pricing source: Mastra pricing
Fit
Use it for this, skip it for that
Best for
- TypeScript and JavaScript developers building AI agents
- Next.js, React, Node, Hono, Astro, and serverless teams
- Teams that want agents, workflows, RAG, evals, memory, and observability in one TS stack
- Product teams that want to deploy agent APIs while keeping source control
Avoid if
- Python-first teams
- Non-developers who need a no-code builder
- Tiny teams that may outgrow the free tier but cannot justify platform usage add-ons
- Watch out
- The flat Teams price is only part of production cost; CPU hours, observability events, data egress, persistent server uptime, Memory Gateway tokens/storage, platform storage, LibSQL/Postgres meters, model/API costs, sandbox execution, and ACP harness permissions can all add spend or security review.
Recent changes
Only what affects the decision
- Platform Starter / Teams
Pricing verified unchanged for Starter and...
Mastra pricing - Platform Starter / Teams
Pricing verified unchanged for Starter and...
Mastra pricing - Platform Starter
Rechecked against the live pricing page: includes 100K observability events then $10/100K, 24 CPU hours then $0.35/hr, 10GB egress then $0.10/GB, 15-day retention, 1GB platform storage, and...
Mastra pricing
Alternatives
Best swaps
GitHub-native AI pair programmer across IDEs, GitHub, CLI, code review, Spaces, Spark, and cloud Coding Agent workflows, now gov
$0-$100/user/month · 9.3/10 Claude CodeAnthropic's agentic coding product for terminal, IDE, desktop, browser, and remote codebase work. Included with paid Claude plan
$20-$200/month · 9/10 OpenAI CodexOpenAI's agentic coding product. Cloud-async coding agent, Codex Desktop app, CLI, IDE extensions, Chrome extension, and now Cha
Included with ChatGPT Free, Go ($8/mo), Plus ($20/mo), Pro, Business, Edu, and Enterprise · 8.5/10Proof and score math Verified Jun 26
Proof
Why this recommendation is trusted
- Source
- Registered source
- Freshness
- Review due
- Confidence
- Low confidence
- Verified
- Review
- Volatility
- Volatile
Stale source mastra-docs.
Editorial score
Unweighted average of 4 axes · confidence high
- Utility 9/10
How much real work it can do for a competent operator, end to end.
- Value 8/10
What you get for the dollar relative to the closest alternative.
- Moat 7/10
How hard it would be for a competitor to replicate the underlying advantage.
- Longevity 8/10
How likely the product is to still be best-in-class 24 months out.
Verified facts
- Best For Best for TypeScript teams building AI agents, graph-style workflows, RAG systems, memory-backed assistants, evals, and production API endpoints inside a modern web stack.
- Pricing Anchor Mastra's Apache 2.0 framework remains free; Mastra Platform currently lists Starter at $0/month, Teams at $250/month, Enterprise custom pricing, and usage meters for observability events, CPU time, data egress, persistent server uptime, Memory Gateway input/output at market rate plus 5.5%, memory tokens, retrieval storage, platform storage, LibSQL rows, Postgres compute, and database storage.
- Watch Out For The flat Teams price is only part of production cost; CPU hours, observability events, data egress, persistent server uptime, Memory Gateway tokens/storage, platform storage, LibSQL/Postgres meters, model/API costs, sandbox execution, and ACP harness permissions can all add spend or security review.
- Platform Scope Mastra Platform currently packages Observability, Studio, and Server for hosted traces/logs/metrics, team testing, and API-server deployment; teams can also deploy Mastra to Node-compatible environments, Bun, Deno, Cloudflare, VMs, containers, PaaS platforms, and cloud providers.
- Open Source Mastra's GitHub repository describes a dual-license model: the core framework and most of the codebase are Apache-2.0, while directories named `ee/` use the Mastra Enterprise License and require an enterprise license for production use.
- Traction Mastra's official site and GitHub repository displayed roughly 25.3k GitHub stars; the About page says the company started in 2024, came from the Gatsby team, gets millions of downloads each month, raised $35m, and has a globally distributed team in the mid-30s.
- Model Router Mastra's model-router docs claim access to 4,550 models from 133 providers through a unified interface, with model fallbacks and provider-specific options; provider API keys, model availability, and downstream provider costs remain external to Mastra.
- Recent Agent Features June 2026 Mastra releases added Code Mode for isolated multi-tool computations, Agent Signals for steering and observing long-running agents, Agent Client Protocol support, and a June 15 harness architecture write-up for long-running coding agents.
Full review notes Long-form details, FAQ, and source history
Mastra is the TypeScript-native agent framework built by the former Gatsby team. It gives JavaScript and TypeScript teams agents, graph-style workflows, RAG, memory, evals, observability, MCP support, and deployment paths without moving the agent layer into Python.
System Verdict
Pick Mastra if your product stack is TypeScript and you want agent logic to live beside the rest of your app. It is strongest for teams shipping AI features in Next.js, React, Node, Hono, Astro, serverless, or standalone API services.
Skip it if your organization is Python-first or wants a visual no-code builder. LangGraph, Microsoft Agent Framework, CrewAI, LangFlow, and Voiceflow are better fits depending on whether the gap is language, enterprise cloud alignment, or builder UX.
Best plan: start with the mostly Apache 2.0 framework and $0 Platform Starter. Move to Teams at $250/month only when shared Studio/Server deployments, SSO/SOC 2 docs, longer retention, or higher included CPU/egress/storage matter. Budget separately for CPU, observability, egress, persistent server uptime, Memory Gateway, model-provider costs, and any sandbox or ACP harness infrastructure.
Key Facts
| Last verified | June 26, 2026 |
| Language | TypeScript / JavaScript |
| Framework license | Core framework and most repository code under Apache-2.0; ee/ code uses Mastra Enterprise License |
| Company | Mastra, founded in 2024 by the former Gatsby team |
| Current site signal | 25.3k GitHub stars displayed on mastra.ai/GitHub |
| Funding/team signal | About page says $35m raised and a globally distributed team in the mid-30s |
| Core primitives | Agents, tools, workflows, RAG, memory, evals, observability, MCP, Browser, Server, Studio, model routing |
| Platform Starter | $0/month with unlimited users, deployments, and projects plus included usage allowances |
| Platform Teams | $250/month with multiple teams, SSO, SOC 2 docs, 250 CPU hours, 100GB data egress, 100GB platform storage, and six-month retention |
| Enterprise | Custom platform pricing and custom licensed self-hosted features |
What Changed Recently
- June 26, 2026 pricing recheck: Starter remains $0/month, Teams remains $250/month, Enterprise remains custom, and self-hosted Enterprise remains custom. The live page still makes usage math central: observability events, CPU, egress, persistent servers, Memory Gateway input/output at market rate plus 5.5%, memory tokens, retrieval storage, platform storage, LibSQL rows, Postgres compute, database storage, and model-provider costs can all move the bill.
- Mastra’s traction claims moved. The site and GitHub now show roughly 25.3k stars, while the About page says Mastra raised $35m, gets millions of downloads each month, and has a globally distributed team in the mid-30s. Treat these as current marketing/procurement signals, not independent adoption proof.
- Code Mode is the new analytical-agent feature to test. Mastra’s June 9 post says Code Mode lets agents run multi-tool computations in an isolated sandbox, reducing repeated tool-result context and improving analytical answers. That makes sandbox policy and data-access boundaries part of the buyer review.
- Agent Signals and ACP widen the orchestration story. The June 3 Signals post adds steering, observing, notification, and state primitives for long-running agents; the June 2 ACP post adds delegation to Claude Agent, Codex CLI, Cursor, Gemini CLI, or compatible harnesses. Useful, but permissions and workspace isolation need a real security review.
- The model router is bigger than the old page implied. Current docs claim 4,550 models from 133 providers through one interface, with fallbacks and provider-specific options. That is a flexibility advantage, not bundled model spend.
- Mastra Platform is now the commercial center. Studio and Server can be deployed to the cloud, while the open-source framework remains free.
- Pricing is no longer just “$0 or $250.” The public page now exposes add-on rates for observability events, CPU time, data egress, persistent server uptime, Memory Gateway tokens, and retrieval storage.
- Memory Gateway matters beyond Mastra apps. Mastra markets it as memory for any agent/framework, with token and storage meters.
- Recent production updates focused on operations. The May blog cadence emphasized background tasks and observability work, which fits Mastra’s buyer: teams shipping agents as production services rather than one-off prompts.
- Model choice is intentionally external. Mastra is the framework and platform layer. Budget model-provider spend separately and avoid assuming a specific Claude, OpenAI, or Gemini model is bundled into Mastra pricing.
When to Pick Mastra
- TypeScript-first teams. Tool definitions, workflow state, agent inputs, eval outputs, and app code can stay in one language and type system.
- Agent APIs inside web products. Mastra can run inside existing frameworks or as a standalone server, so the agent layer can ship as normal infrastructure.
- Workflows need explicit control. Mastra workflows support graph-style control flow for multi-step processes where you do not want a fully autonomous loop.
- Production visibility matters early. Studio, evals, traces, logs, metrics, and CloudExporter make it easier to debug before the agent becomes a black box.
- Memory is a first-class requirement. Mastra’s docs include message history, resource/thread scoping, and observational memory for long-running conversations.
When to Pick Something Else
- Python stack: LangGraph, Microsoft Agent Framework, or CrewAI.
- No-code visual agent builder: LangFlow or Voiceflow.
- Pure observability layer: Langfuse or Helicone can complement Mastra without replacing the framework.
- Azure-first enterprise: Microsoft Agent Framework is usually easier to justify if Azure AI Foundry is already the standard.
- Simple one-off LLM calls: direct provider SDKs or the Vercel AI SDK may be lighter.
Pricing
| Plan / meter | Current public price | Notes |
|---|---|---|
| Open-source framework | $0 | Apache 2.0; build and host agents anywhere |
| Platform Starter | $0/month | Unlimited users/deployments/projects; includes 100K observability events, 24 CPU hours, 10GB egress, 15-day retention, and Memory Gateway starter allowances |
| Platform Teams | $250/month | Adds multiple teams, SSO, SOC 2 docs, 250 CPU hours, 100GB egress, 100GB platform storage, six-month retention, and larger Memory Gateway allowances |
| Platform Enterprise | Custom | Custom volume/retention, RBAC, audit logs, support and uptime SLAs, dedicated support engineer |
| Persistent Server | $100/project on Starter and Teams | Listed as 24/7 uptime add-on on the public pricing page |
| Usage add-ons | Varies | Observability events, CPU time, data egress, Memory Gateway input/output at market rate plus 5.5%, memory token usage, retrieval storage, platform storage, LibSQL rows, Postgres compute, database storage, and model-provider usage can add cost |
| Self-hosted Enterprise | Custom annual fee | Licensed self-hosted features, RBAC, SSO, IAM/network-policy integration, predictable annual fee, and data staying in the customer’s VPC |
Pricing verified June 26, 2026 against Mastra’s public pricing page. Model-provider costs (Anthropic, OpenAI, Google, and others) are not included in Mastra pricing.
Failure Modes
- Usage math is easy to underestimate. Teams that leave persistent servers running, generate high trace volume, or use Memory Gateway heavily may pay more than the headline $250/month Teams plan.
- TypeScript-only by design. This is a strength for web teams and a mismatch for Python-first data/agent teams.
- You still need production engineering. Mastra supplies framework and platform primitives, but auth, secrets, data retention, eval quality, and deployment architecture remain your responsibility.
- Sandbox and harness permissions are now part of the review. Code Mode, ACP delegation, and long-running Signals workflows are powerful, but buyers should check workspace isolation, tool approvals, external agent credentials, logs, and data boundaries before letting agents operate on production repositories or customer data.
- Fast-moving surface area. Platform, Memory Gateway, observability, background tasks, and integrations are evolving quickly; procurement teams should re-check docs before committing.
- No-code buyers will bounce. Studio helps inspect and test, but Mastra is not a drag-and-drop business automation builder.
Against the Alternatives
| Mastra | LangGraph | Microsoft Agent Framework | CrewAI | |
|---|---|---|---|---|
| Primary fit | TypeScript agent apps | Stateful production agents | Azure/Microsoft enterprise agents | Python role-based crews |
| Main language | TypeScript / JavaScript | Python + JavaScript/TypeScript | .NET + Python | Python |
| License posture | Apache 2.0 framework | MIT library | Open source | Open source |
| Hosted path | Mastra Platform: Observability + Studio + Server | LangSmith Deployment | Azure AI Foundry | CrewAI Enterprise |
| Best plan guidance | Start free, pay Teams when platform collaboration/usage limits matter | Free library, pay LangSmith when tracing/deployment matters | Use when Azure governance matters | Use for faster multi-agent crew prototypes |
| Watch-out | Usage meters beyond Teams | LangSmith deployment/trace costs | Azure ecosystem pull | Less explicit graph control |
Methodology
Produced by the aipedia.wiki editorial pipeline. Last verified June 26, 2026 against Mastra official site, documentation, pricing, model-router docs, platform/deployment docs, customers page, About page, GitHub repository, and recent Mastra Code Mode, Agent Signals, ACP, and harness blog surfaces.
FAQ
Is Mastra really free? The framework is free and Apache 2.0 licensed. Mastra Platform also has a $0 Starter plan, but production usage can create add-on costs once CPU, observability, egress, persistent server uptime, Memory Gateway, storage, or model usage grows.
Is all of Mastra Apache 2.0?
Not quite. The public repository says the core framework and most code are Apache-2.0, while directories named ee/ are source-available under the Mastra Enterprise License and require a valid enterprise license for production use.
What is Mastra Platform? Mastra Platform is the hosted product around Studio and Server. Studio is the hosted visual environment for testing agents, workflows, and traces; Server deploys the Mastra application as an API server.
How is Mastra different from LangGraph? Mastra is built for TypeScript product teams and web deployment ergonomics. LangGraph has the larger LangChain/LangSmith ecosystem and remains the stronger default for Python-first stateful agents.
Can I deploy Mastra without Mastra Platform? Yes. Mastra can run in Node-compatible environments, Bun, Deno, Cloudflare, standalone servers, web frameworks, VMs, containers, PaaS platforms, and cloud providers. The paid platform is a managed route, not the only deployment path.
What production companies use Mastra? Mastra’s customers page lists case studies and customer references including Sanity, Replit, SoftBank, WorkOS, Counsel Health, Factorial, Index, Cedar, and Kestral.
What changed for Mastra in June 2026? Mastra added ACP support on June 2, Agent Signals on June 3, and Code Mode on June 9. Those updates make it more relevant for long-running agents, coding-agent delegation, and multi-tool analytical workflows, but they also make sandbox, workspace, and permission controls more important.
Sources
Review History
- 2026-06-26: Re-verified platform pricing, usage meters, model-router scope, GitHub star signal, and June agent/harness posts. Updated model-provider count to 4,550 across 133 providers and kept database meters in buyer cost warnings.
- 2026-06-22: Re-verified platform pricing, usage meters, model-router scope, GitHub star signal, and June agent/harness posts. Updated model-provider count to 4,539 across 133 providers and added database meters to buyer cost warnings.
- 2026-06-15: Re-verified platform pricing, usage meters, model-router scope, deployment/platform docs, company traction claims, GitHub stars/license posture, customers page, Code Mode, Agent Signals, and ACP support. Updated watch-outs for sandbox execution, ACP harness delegation, provider-model costs, and enterprise-license boundaries.
- 2026-06-12: Re-verified Starter, Teams, Enterprise, persistent server, observability event, CPU, data egress, Memory Gateway token, Memory Gateway storage, platform storage, and retention meters. Corrected Starter observability allowance to 100K events and removed unsupported bundled-model implications.
- 2026-05-13: Re-verified Starter, Teams, Enterprise, persistent server, CPU, observability event, data egress, Memory Gateway storage, and retention meters against the live pricing page; no material changes. Added model-cost context for buyers using Mastra with hosted frontier-model APIs.
- 2026-05-10: Refreshed Mastra pricing, source provenance, platform/memory guidance, recent product changes, and buyer watch-outs.
- 2026-04-18: Initial TypeScript agent-framework review.
Reader reviews
Embed this score on your site Free. Links back.
<a href="https://aipedia.wiki/tools/mastra/" target="_blank" rel="noopener"><img src="https://aipedia.wiki/badges/mastra.svg" alt="Mastra on aipedia.wiki" width="260" height="72" /></a> [](https://aipedia.wiki/tools/mastra/) Badge value auto-updates if the editorial score changes. Attribution via the link is required.
Cite this page For journalists, researchers, and bloggers
According to aipedia.wiki Editorial at aipedia.wiki (https://aipedia.wiki/tools/mastra/) aipedia.wiki Editorial. (2026). Mastra: Editorial Review. aipedia.wiki. Retrieved July 2, 2026, from https://aipedia.wiki/tools/mastra/ aipedia.wiki Editorial. "Mastra: Editorial Review." aipedia.wiki, 2026, https://aipedia.wiki/tools/mastra/. Accessed July 2, 2026. aipedia.wiki Editorial. 2026. "Mastra: Editorial Review." aipedia.wiki. https://aipedia.wiki/tools/mastra/. @misc{mastra-editorial-review-2026,
author = {{aipedia.wiki Editorial}},
title = {Mastra: Editorial Review},
year = {2026},
publisher = {aipedia.wiki},
url = {https://aipedia.wiki/tools/mastra/},
note = {Accessed: 2026-07-02}
} Spotted an error or want to share your experience with Mastra?
Every tool page is re-verified on a recurring cycle, and corrections land faster when readers flag them directly. If you spot a stale fact, a missing capability, or have used Mastra and want to share what worked or didn't, the editorial desk reviews every message sent through this form.
Email editorial@aipedia.wiki