Skip to main content

Get started

Mastra is a TypeScript framework for building AI agents and applications. Create your first agent with a single command and start building.

Quickstart
Direct link to Quickstart

Run this command to create a general-purpose agent harness with a local workspace, shell tools, memory, task tracking, web access, and recurring schedules. It also installs Mastra skills for your installed coding agent, so you can start prompting and editing it:

npm create mastra@latest

You can open Studio immediately, which is an interactive UI for your Mastra project. 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.

Templates
Direct link to Templates

Browse templates for complete Mastra projects you can clone and adapt.

note

New to Mastra? Read What is Mastra? for an overview of the framework, its capabilities, and what you can build with it.

On this page