Start
Create a new Mastra project, or integrate Mastra with your preferred framework to start building.
New projectDirect link to New project
The create mastra command is the fastest way to build your first agent. It walks you through setup and generates an example agent you can run and adapt in Studio right away. You can always integrate Mastra with your framework or UI when you’re ready.
Integrate with your frameworkDirect link to Integrate with your framework
Add Mastra to an existing project, or scaffold a new Mastra-powered app if you’re starting from scratch.
Build an AI-powered Next.js app
Add agents to your React + Vite app
Integrate Mastra with SvelteKit
Add AI agents to your Astro site
Create endpoints that call agents and stream responses
Mastra works great with agentic UI frameworks like AI SDK UI, CopilotKit, and Assistant UI. Use them with any of the frontend frameworks above to stream agent responses, render tools, and build chat interfaces.
Start from a templateDirect link to Start from a template
Have a use case in mind? Start with a pre-built template from Mastra or our community.