# MASTRAFRAMEWORK

## Build Agents with a Modern TypeScript Stack

`npm create mastra` [Quickstart](/content/docs/getting-started/quickstart/index.html)

**Everything You Need to Build Agents** Get agents to production faster with primitives for tool use, memory, and multi-step reasoning. Connect to 1000+ models through a unified model router.](/content/docs/agents/overview/index.html)

**Tools** Give agents the ability to act. Define tools and share them across agents via MCP.](/content/docs/agents/using-tools/index.html)

**Memory** Track the context that matters across sessions — from basic message persistence to SoTA observational memory that learns about your users automatically.](/content/docs/memory/overview/index.html)

**Tool Approval** Require a human or external system to approve or reject any tool call before it executes.](/content/docs/agents/agent-approval/index.html)

**Workspaces** Give your agents access to filesystems, sandboxed code execution, and reusable skill files.](/content/docs/workspace/overview/index.html)

**Supervisor Agents** Split complex work across specialized agents that each handle one job. Coordinate them with a supervisor.](/content/docs/agents/supervisor-agents/index.html)

**Go to Production** Make your agent production-ready. Add guardrails, scorers, evals, and tracing.](/content/docs/evals/overview/index.html)

**Control Every Step Precisely** Define exactly what happens, when, and in what order — sequential steps, parallel branches, conditional logic, and loops.](/content/docs/workflows/overview/index.html)

**Break It Down into Steps** Call an agent or run deterministic code at each step. Use models where you need reasoning, plain functions where you don't — and keep inference costs under control.](/content/docs/workflows/control-flow/index.html)

**Human-in-the-Loop** Any step can suspend execution, hand control to a human, and resume when input arrives.](/content/docs/workflows/human-in-the-loop/index.html)

**Rewind and Replay** Persist workflow state automatically. Suspend a workflow and resume whenever ready — or time-travel back to any step with its original context to debug or replay.](/content/docs/workflows/time-travel/index.html)

**Connect Agents and Tools** Wrap any agent or tool as a workflow step. Agents generate, tools execute.](/content/docs/workflows/agents-and-tools/index.html)

**Iterate Fast** Run agents and workflows in Studio. Test prompts, swap models, adjust parameters — and see results instantly.](/content/docs/studio/overview/index.html) [**Trace Every Step** Follow execution traces to see exactly where an agent stalled or made the wrong call. Record every step with timing, inputs, and outputs.](/content/docs/observability/tracing/overview/index.html) [**Invite Domain Experts** Edit prompts and create datasets directly in the UI. Hand it to your product manager, designer, or data scientist — no code required.](/content/docs/editor/overview/index.html) [**Collaborate with Your Team** Build and test Mastra agents in Studio, then bring in non-technical domain experts to test behavior, annotate traces, create datasets, and refine prompts in the editor.](/content/docs/studio/deployment/index.html)

**Observe and Evaluate** Monitor agents in production — token usage, latency, error rates, and costs. Link every metric back to traces to find the root cause.](/content/docs/evals/overview/index.html)

## Platform pricing

[Full Pricing](/content/pricing/index.html)

### Enterprise Support

Need help?

#### Agent Lifecycle Support

- Planning & discovery
- Rapid prototyping
- Productionizing with evals & observability
- Hands-on training workshops

#### Collaboration & SLAs Support

- Architecture & design meetings
- Shared Slack support channel
- Separate service SLAs
- SLA support 8-5 Monday–Friday, 8am–6pm PST

#### On-prem platform deployments

- Deploy Mastra Platform on-prem or in your cloud
- Collaborate with your team in Mastra Studio with SSO and RBAC
- SRE support 8-5 Monday–Friday, 8am–6pm PST

## Mastra is powering the best AI teams

- [How Replit Agent 3 creates thousands of Mastra agents every day](/content/blog/replitagent3/index.html)
- [How SoftBank is restoring Japan's white-collar productivity using Mastra](/content/blog/softbank-productivity-mastra-2025-08-20/index.html)
- [How Sanity Built a Content Agent That Actually Understands Your CMS](/content/blog/sanity/index.html)

How Marsh used Mastra to build Agentic Search for 100k employees

## Start building today.

`npm create mastra` [Documentation](/content/docs/index.html)
