Mastra
Free tierBuild AI agents. Build, observe, and improve agents that run for days with Mastra, the leading TypeScript agent framework.
Key strengths
Facts verified against mastra.ai on
Get alerts when Mastra changes
Free. We'll email you when pricing, the free tier, API access or open-source status changes.
Developer Documentation & Resources
Mastra is built TypeScript-first, meaning types, autocompletion, and compile-time safety are first-class concerns throughout the framework.
Key technical areas covered in Mastra's documentation:
- Agent construction — defining agent goals, tools, and memory configurations in TypeScript
- Durable workflows — typed control flow primitives for long-running, multi-step agent processes
- Model router — unified API surface for switching between or combining OpenAI, Anthropic, Google, xAI, and other providers
- Memory & recall — observational memory with semantic search for context retrieval across sessions
- Observability stack — built-in tracing, metrics, evaluations (evals), and dataset management; no third-party observability tool required to get started
- Mastra Studio — local development UI for inspecting agent runs, testing prompts, and managing configurations
- Integrations — connectors for LibSQL, Postgres, React, Next.js, Node.js, Jira, GitLab, and incident.io
- Self-hosting — full deployment guide for running Mastra under the Apache 2.0 license on your own infrastructure
Mastra's managed cloud platform offers tiered observability event limits and CPU hours (Starter: 100K events / 24 CPU hrs; Teams: 1M events / 250 CPU hrs), with data retention ranging from 15 days to 6 months depending on plan.
Alternatives to Mastra
Is Mastra yours? Claim the listing & get the badge
