Skip to main content

Get Started

Build AI agents your users actually depend on. Mastra is a TypeScript framework that gives you everything you need to prototype fast and ship with confidence. Create your first agent with a single command and start building.

Quickstart
Direct link to Quickstart

Run this command to create a new project you can test immediately in Studio:

npm create mastra@latest

See the quickstart guide for a full walkthrough.

Integrate with your framework
Direct link to Integrate with your framework

Add Mastra to an existing project, or create a new app with your preferred framework:

For other frameworks, see the framework integration guides.

What you can build
Direct link to What you can build

Here are some of the ways you can use Mastra:

Embed agents in your product

Add AI capabilities to your platform so your users can build or interact with agents.

Used by Replit, Fireworks, Medusa

Customer-facing assistants

Build agents that handle inquiries, schedule appointments, send reminders, and answer questions via chat, WhatsApp, or voice.

Used by Vetnio, Lua

Templates: Docs Chatbot, Slack Agent

Internal copilots

Help employees work faster with AI that understands your domain—HR queries, clinical documentation, sales prep, or document generation.

Used by Factorial, Counsel Health, Cedar, SoftBank

Templates: Chat with PDF, Google Sheet Analysis

Data analysis agents

Let users query databases and dashboards in natural language. Connect to your data sources and return answers, charts, or reports.

Used by Index, PLAID Japan

Templates: Chat with Database, CSV to Questions

Content automation

Generate, transform, and manage structured content at scale—whether for a CMS, knowledge base, or documentation system.

Used by Sanity

Templates: Chat with YouTube, Flash Cards from PDF

DevOps & engineering automation

Automate deployments, debug production issues, manage infrastructure, and handle on-call workflows.

Used by StarSling

Templates: GitHub PR Code Review, Browser Agent

Sales & GTM workflows

Turn customer conversations into structured tasks, generate investment memos, or automate outreach sequences.

Used by Kestral, Orange Collective, WorkOS

Templates: Customer Feedback Summarization

Browse templates for working examples.

Not ready to build yet?
Direct link to Not ready to build yet?

Watch this quick introduction: