About Mastra
Mastra is an open source TypeScript framework for building AI agents and AI powered applications. It gives developers agents that use LLMs and tools to work toward a goal, durable multi step workflows with typed control flow, memory that persists conversation context and application state across sessions, and a harness for building coding style agent controllers. A model router provides access to a large catalog of models from providers such as OpenAI, Anthropic, Google and xAI. Mastra integrates with React, Next.js and Node, or can be deployed anywhere as a standalone server.
The framework is aimed at TypeScript developers moving agents from prototype to production. A local Studio interface is used to build, test and manage agents, workflows and tools, and a command line initializer scaffolds a new project. The company also sells a hosted Mastra Platform that adds observability, with metrics, logs and step by step traces for every production run, along with evals, scorers, datasets and experiments. A Company Brain offering for knowledge search across information silos is sold through sales contact.
The framework itself is free under the Apache 2.0 license. On the hosted platform, the Starter plan is $0 per month and includes 100K observability events then $10 per 100K, 24 CPU hours then $0.35 per hour, 15 days of data retention, and unlimited users, deployments and projects. The Teams plan is $250 per month with 1M observability events then $8 per 100K, 250 CPU hours then $0.25 per hour, six months of retention, multiple teams, SSO and SOC 2 documentation. Enterprise is custom priced with RBAC, audit logs, support and uptime SLAs, and a dedicated support engineer. Other usage is metered, including gateway tokens at market rate plus 5.5 percent, memory tokens, storage, database rows and compute hours. A licensed self hosted enterprise tier is also offered at custom pricing.