Your agent in prod without the headache

Zero-config, fully managed infrastructure with everything you need from a Gateway and Sandboxes to managed servers and databases.

Zero-config Infrastructure

Studio

Test, improve, and collaborate on your agents, workflows, and tools with a Studio deployed alongside your app.

CI/CD

Get your agents and AI applications deployed with our CI/CD pipeline from GitHub or the Mastra CLI.

Compute

Vertically scale your applications from serverless up through dedicated server sizes that fit your workload.

Databases

Automatically provision managed databases for your projects to store memories, workflows and more.

Sandboxes

Spin up sandboxes to give your agents isolated environments for safely executing code and running commands.

Gateway

One API key, all the models

Use the best models for every agent and workflow all from the same Gateway.

Multi-cloud/provider

Set model and provider priorities. Set spend limits by key, user, project and more.

BYOK

Bring your own API key for the frontier labs you're already paying for.

User-scoped telemetry

Understand each user's token spend and usage with fully managed observability baked in.

Observability

Full transparency behind your agents

Understand how your users are interacting with your agents and AI applications with fully managed observability.

Full Evaluation Suite

Build datasets, run experiments, and evaluate your agents and workflows against ready-to-use and custom scorers.

Trace Intelligence

Understand the patterns in agent and user interactions to better understand your AI applications at scale.

Agent Learning

Automatically improve your agents with a self-learning loop based on insights from Trace Intelligence.

Free

$0/ month

Build and test your first agents.

  • Unlimited agents
  • Unlimited users
  • Unlimited deployments
  • 100K observability events
  • 1 GB egress
  • 5 connections
  • 15-day trace retention

Starter

$25/ month

1 Project and higher allowances.

  • Everything in Free, plus:
  • 1 small dedicated project
  • Usage alerts
  • 250K observability events
  • 10 GB egress
  • 10 connections
  • 60-day trace retention

Team

$250/ month

3 Projects and SOC 2 report.

  • Everything in Starter, plus:
  • 2 medium dedicated projects
  • SOC 2 report
  • 10M observability events
  • 100 GB egress
  • 50 connections
  • 180-day trace retention

Enterprise

Custom

RBAC, SSO and audit logs.

  • Everything in Team, plus:
  • RBAC
  • SSO
  • Audit logs
  • Custom allowances
  • Custom connections
  • Dedicated Support

Get a demo

Frequently asked questions

How do I deploy to Mastra Server?

Mastra Server deploys with a single mastra server deploy command that creates a live endpoint with routing, scaling and infrastructure handled for you. The CLI outputs the URL of your deployed Server instance on a successful deploy.

What authentication providers does Mastra Server support?

Mastra Server supports JWT, Clerk, Supabase, Firebase, Auth0 and WorkOS for securing agent endpoints. Configure authentication by adding an auth provider to your server configuration. Use middleware to intercept requests for authentication, logging, CORS or injecting request-specific context.

How does Mastra Studio connect to my Mastra application?

Mastra Studio connects to your Mastra instance via a configurable server URL and runs at localhost:4111 during local development. Studio updates in real time as you edit your agents, workflows and tools. Share Studio behind a URL for team access when you are ready to deploy.

What is the Gateway?

Mastra's Gateway adds observational memory and unified model routing to any agent. Use one endpoint for every model and one API key for every provider. Observational memory forms dense observations in the background without interrupting the conversation.

What does Mastra Platform Observability include?

Mastra Platform Observability includes metrics dashboards, structured logs and step-by-step traces for every agent run in production. The free tier includes 100K observability events and 15 days of data retention with unlimited users, deployments and projects.

Start building with Mastra