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

Mastra — Technical Overview

Mastra is an open-source, TypeScript-native agent framework (Apache 2.0) for building, deploying, and observing AI agents and agentic workflows. It provides a unified API surface across 90+ model providers — including OpenAI, Anthropic, and Gemini — so you can swap or combine LLMs without rewriting orchestration logic.

Key architectural capabilities:

  • Durable workflows with typed control flow, enabling reliable multi-step agent execution
  • Observational memory and semantic recall for stateful, context-aware agents
  • Built-in observability — traces, metrics, evals, and datasets — surfaced out of the box without third-party instrumentation
  • Self-hostable with VPC data isolation, or deployable via Mastra's managed cloud (freemium)
  • Integrations with React, Next.js, Node, Slack, Microsoft Teams, LibSQL, Postgres, WorkOS, Okta, Auth0, and Clerk

Mastra targets TypeScript developers who want a strongly-typed, batteries-included stack for production AI agents — from local development through to enterprise-grade deployment.

Alternatives

Alternatives to Mastra

See all alternatives
Browse all 15 agent frameworks tools