Mastra
TypeScript framework for building AI agents and AI-powered applications
Mastra is an open-source TypeScript framework for building AI agents and AI-powered applications. It addresses the need to develop, run, and maintain agents that use language models and tools to solve open-ended tasks, while keeping the surrounding application logic, data access, and deployment in one codebase. The framework can be integrated into React, Next.js, and Node.js applications or deployed as a standalone server.
Its core modules include typed agents, a graph-based workflow engine with control-flow methods and human-in-the-loop steps, memory with conversation history and retrieval, workspaces, and observability covering traces, metrics, logs, evals, experiments, scorers, and datasets. Model routing connects to many providers through a single interface, and Mastra can author Model Context Protocol servers. Guardrails process inputs and outputs, and optional deployers support Vercel, Netlify, and Cloudflare.
Mastra is aimed at TypeScript developers building conversational agents, domain-specific copilots, workflow automations, and decision-support tools. The core framework is open source under Apache 2.0, while enterprise features are source-available under a separate license. The Mastra Platform offers a free Starter plan with unlimited users, deployments, and projects, a paid Teams plan for growing teams, and a custom-priced Enterprise edition with RBAC, audit logs, support SLAs, and on-premises deployment.
12 alternatives to Mastra
Ranked by how well each tool replaces Mastra: shared features, audience, price and popularity.
AI models plus chat, coding, agent-building and training tools
Covers 4 of 15 key features and starts cheaper.
Free plan67 out of 100 match$14.99/moBuild powerful AI agents for yourself, your team, or your enterprise — no coding required.
Covers 4 of 15 key features and starts cheaper.
Free plan64 out of 100 match$20/moThe open source platform for durable AI agents
Covers 5 of 15 key features and starts cheaper.
Free planOpen source63 out of 100 match$10/moThe AI agent platform for customer experience automation.
Covers 10 of 15 key features.
Free plan63 out of 100 matchUsage-based- 63 out of 100 matchContact sales
The open-source workspace for your agents
Covers 7 of 15 key features and starts cheaper.
Free planOpen source62 out of 100 match$29/moMultiplayer AI for human-agent collaboration
Covers 6 of 15 key features and starts cheaper.
Free plan62 out of 100 match$24/moAI agents for support, sales, and operations
Covers 6 of 15 key features and starts cheaper.
62 out of 100 match$25/moSovereign AI workspace without vendor lock-in.
Covers 7 of 15 key features and starts cheaper.
Free planOpen source62 out of 100 match$10/moPlatform for building UIs, automating workflows, and deploying AI agents.
Covers 5 of 15 key features and starts cheaper.
Free planOpen source62 out of 100 match$29/mo