Mastra logo

Mastra

Free tier

Build 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 OpenAI, Anthropic, Gemini, and 90+ providers·Open source

Key strengths

TypeScript-native agent frameworkBuilt-in observability (traces, metrics, evals, datasets)90+ model provider support via single APIDurable workflows with typed control flowObservational memory and semantic recallOpen-source (Apache 2.0)Self-hostable with VPC data isolation
Free tier + paid plans
Self-hostable

Facts verified against mastra.ai on

Recent changes

  • Models updated: OpenAI, Anthropic, Gemini, and 90+ providers
What's changed across AI tools →

Get alerts when Mastra changes

Free. We'll email you when pricing, the free tier, API access or open-source status changes.

No ratings yet

Use Cases for Developers

Mastra is purpose-built for TypeScript developers shipping production AI agents. Common technical use cases include:

  • Agentic RAG pipelines — combine semantic recall and Postgres/LibSQL memory backends to build retrieval-augmented agents with persistent context
  • Multi-step durable workflows — orchestrate complex, failure-tolerant agent pipelines with typed control flow (e.g., data enrichment, automated triage, report generation)
  • Multi-model routing — leverage the unified 90+ provider API to route tasks to the best-fit model (cost, capability, latency) without changing agent logic
  • Slack / Teams bots — deploy conversational agents with first-class Slack and Microsoft Teams integrations and stateful memory across sessions
  • Observability-first agent development — use built-in traces, evals, and datasets to iterate on agent quality with measurable benchmarks
  • Enterprise self-hosted deployments — run Mastra inside a VPC under Apache 2.0 with RBAC, audit logs, and SSO (Teams/Enterprise tiers) for compliance-sensitive environments
Alternatives

Alternatives to Mastra

See all alternatives
Browse all 15 agent frameworks tools