What is Mastra?
Latest launch Open source
Summary
TypeScript agent framework. Mastra Code is the terminal agent; AgentController is the extracted loop, in @mastra/core 1.47.0 or later.
- Category
- Frameworks
- Open source
- Yes
- Pricing
- Mastra Code and AgentController are announced as open source. No license fee is stated in the posts we cited.
Mastra is both a framework and, via Mastra Code, a terminal agent you can run. Two notes:
- Mastra Code, February 24, 2026. Observational memory, plan and build modes, local SQLite.
- Agent Controller, June 18, 2026. The reusable class in
@mastra/core1.47.0 or later, renamed from Harness.
The framework repository linked here is mastra-ai/mastra. Confirm the license file in that repo before you redistribute it; the launch posts say open source and do not quote an SPDX id in the passages we used, so this hub leaves license unset.
Mastra alternatives
| Tool | License | Pricing note |
|---|---|---|
MastraThis pageTypeScript agent framework. Mastra Code is the terminal agent; AgentController is the extracted loop, in @mastra/core 1.47.0 or later. | Open source | Mastra Code and AgentController are announced as open source. No license fee is stated in the posts we cited. |
OpenAI AgentsOpenAI's agent harness, shipped as a Python SDK update in April 2026 and as the hosted Agents API in September 2026. | Open source | SDK and Agents API use standard token and tool pricing. The Agents API has no additional fee. |
OpenHandsMIT-licensed project to build and run AI coding agents: start locally, automate workflows, use any model. | MIT | The OpenHands repository is MIT-licensed. Hosted plans are not priced on this page. |
OpenCodeOpen-source coding agent from the anomalyco/opencode repository, MIT-licensed, with a terminal client and a site at opencode.ai. | MIT | The client is MIT-licensed. Model access is separate; this page does not quote a hosted plan. |
Launches and updates
Mastra core 1.76.0 adds durable run ownership and fencing
MastraMastra's @mastra/core 1.76.0, published October 13, 2026, makes durable agent crash recovery safe across instances and adds atomic Postgres memory merges.
Category: Frameworks
Pricing: Open source
Mastra Agent Controller
MastraMastra extracted the loop around Mastra Code into AgentController, shipping in @mastra/core 1.47.0 on June 18, 2026.
Category: Frameworks
Pricing: Open source
Mastra Code
MastraMastra Code is an open-source terminal coding agent, announced February 24, 2026, built around observational memory instead of compaction.
Category: Coding agents
Pricing: Open source
Guides covering Mastra
Questions
What is Mastra?
Mastra is a TypeScript framework for agents. In 2026 the team shipped Mastra Code, a terminal coding agent, and then AgentController, the class that wraps the agent loop.
What are Mastra alternatives?
OpenAI's Agents SDK and Agents API, OpenHands Agent Canvas, and OpenCode if you want a finished terminal client rather than a framework.