Setup
Import your Mastra project to Mastra Cloud to use Studio and optionally deploy your agent.
Before you beginDirect link to Before you begin
- Sign in to Cloud
- Push your Mastra project to GitHub
OptionsDirect link to Options

When you create a new project, you can choose from three options:
- Create from GitHub - Import a Mastra project from GitHub
- Create from your server - Connect a self-hosted Mastra instance to Studio
- Create from template - Start from a pre-built template
To create a project from GitHub, follow these steps:
Create from GitHubDirect link to Create from GitHub
Connect to GitHub when prompted

Search for your repository and click Import

Configure your project settings. Mastra Cloud auto-detects most settings, but you'll still need to enter the environment variables for your configured model provider:

Click Create Project
Next stepsDirect link to Next steps
Once your project is imported, Studio automatically creates a sandbox where you can interact with your agents and share access with your team.
When you're ready for production, enable Deployment settings and hit deploy!