Agent Builder
The Agent Builder provides a UI for creating and operating Mastra agents. It runs inside your Mastra server. Everything persists to Mastra's storage layer, with support for multi-tenant agent workflows, RBAC, and channel integrations.
- Configuration: Toggle UI sections and pin admin-controlled defaults for every new agent.
- Model policy: Restrict which providers and models the Builder exposes, and pin a default.
- Memory: Configure the default memory shape for every Builder-created agent.
- Workspace: Configure the default filesystem, sandbox, and skills workspace for Builder-created agents.
- Browser: Register browser providers and pin a default browser configuration.
- Access control: Gate the Builder behind Mastra RBAC roles and permissions.
- Channels: Connect Builder-created agents to Slack and other channels.
- Tool providers: Connect Builder-created agents to third-party apps through OAuth-backed tool providers.
- Skill registries: Browse and install community skills from opt-in registries.
- Deployment: Swap local primitives for cloud-backed storage, filesystems, and sandboxes.
For building agents entirely in code, see the Agents overview. For editing code-defined agents through Studio, see the Editor overview.
๐น Watch
Watch Mastra Agent Builder overview to see how teams create and configure agents from the UI.
Prerequisitesโ
The Agent Builder requires:
- Mastra Enterprise Edition: Production deployments require a valid EE license. Contact sales for more information.
Quickstartโ
Run this command to create a new Mastra project with the Agent Builder enabled:
- npm
- pnpm
- Yarn
- Bun
npm create mastra@latest -- --template agent-builderpnpm create mastra --template agent-builderyarn create mastra --template agent-builderbunx create-mastra --template agent-builderAfterwards, start Mastra's development server:
- npm
- pnpm
- Yarn
- Bun
npx mastra devpnpm dlx mastra devyarn dlx mastra devbun x mastra devThe Agent Builder is mounted at http://localhost:4111/agent-builder.
Manual installโ
Instructions
Next stepsโ
- Configuration: Toggle Builder surfaces and pin defaults for new agents.
- Access control: Gate the Builder with authentication and role-based access control.
- Deployment: Replace local development primitives with production-ready storage, filesystems, and sandboxes.
- ๐น Mastra Agent Builder workshop