Mastra
Free tierBuild AI agents. Build, observe, and improve agents that run for days with Mastra, the leading TypeScript agent framework.
Free tier available·All audiences·Powered by Multi-provider (OpenAI, Anthropic, Google, xAI, and others via Mastra model router)·Open source
Key strengths
TypeScript-native agent frameworkBuilt-in observability (traces, metrics, evals, datasets)Durable workflows with typed control flowObservational memory and semantic recallMulti-model support via model routerSelf-hostable with Apache 2.0 licenseMastra Studio for building, testing, and managing agents
Free tier + paid plans
Self-hostable
No ratings yet
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.
