# Mastra

[BASE product page](<https://base.akulich.dev/en/library/mastra/>) · [Resource](<https://github.com/mastra-ai/mastra>)

ID: mastra · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A TypeScript framework for AI agents, workflows, and retrieval with model integrations: it helps build an AI application backend in a single stack\.

## Type

AI / ML development tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/mastra/#resource-access>)

freemium

## [What you can use for free](<https://base.akulich.dev/en/library/mastra/#resource-access>)

Core Apache\-2\.0 packages for your own agent application\.

## [Paid features and costs](<https://base.akulich.dev/en/library/mastra/#resource-access>)

EE modules, managed services, and selected model APIs are paid for separately\.

## [Access and limitations](<https://base.akulich.dev/en/library/mastra/#resource-access>)

Core Apache\-2\.0 packages for your own agent application\. EE modules, managed services, and selected model APIs are paid for separately\.

## [Use cases](<https://base.akulich.dev/en/library/mastra/#resource-tasks>)

- Build an application's TypeScript agent workflow
- Connect retrieval/state to the backend and inspect the execution trace

## Category IDs

- ai
- backend

## Subcategory IDs

- ai\.orchestration
- backend\.api

## Tags

- Mastra
- ml
- Development

## Also known as

- mastra\-ai/mastra
- mastra\-ai
- mastra
- mastra\-agent\-framework

## [Selection purpose](<https://base.akulich.dev/en/library/mastra/#resource-selection>)

Build an application's TypeScript agent workflow

## [Choose this when](<https://base.akulich.dev/en/library/mastra/#resource-selection>)

- Build an application's TypeScript agent workflow
- Connect retrieval/state to the backend and inspect the execution trace

## [Requirements](<https://base.akulich.dev/en/library/mastra/#resource-selection>)

- Configured storage is required to preserve workflow state\.

## [Limitations](<https://base.akulich.dev/en/library/mastra/#resource-selection>)

- Costs and limits of free use: EE modules, managed services, and selected model APIs are paid for separately\.
- Terms of use: Code outside ee/ is Apache\-2\.0; ee/ uses the Mastra Enterprise Edition License\. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted\. Production requires a current written agreement and a valid scoped License Key\.
- The EE Development and Testing grant excludes processing data of end users/customers/business operations and does not permit redistribution\. Production requires both a written Agreement and a valid scoped License Key\.

## [Questions before use](<https://base.akulich.dev/en/library/mastra/#resource-faq>)

### What can you use for free in Mastra?

Core Apache\-2\.0 packages for your own agent application\.

### What additional costs might arise with Mastra?

EE modules, managed services, and selected model APIs are paid for separately\.

### What terms of use matter for Mastra?

Code outside ee/ is Apache\-2\.0; ee/ uses the Mastra Enterprise Edition License\. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted\. Production requires a current written agreement and a valid scoped License Key\.

### How do you get started with Mastra?

Define agent tools, the model provider, and workflow stages\. Connect retrieval/state to the backend and inspect the execution trace\. Connect the workflow to the application and make errors observable\.

### When should I choose a Mastra workflow over an independently acting agent?

Agents decide which tools to call; graph workflows explicitly define order through \.then\(\), \.branch\(\), and \.parallel\(\)\. Workflows can suspend/resume, and storage retains execution state\. Mastra connects to React/Next\.js/Node\.js applications or runs as a standalone server; model routing and MCP separate orchestration from a specific provider\.

## Sources for the selection guide

- [https://github\.com/mastra\-ai/mastra](<https://github.com/mastra-ai/mastra>)
- [https://raw\.githubusercontent\.com/mastra\-ai/mastra/HEAD/README\.md](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/mastra\-ai/mastra/HEAD/LICENSE\.md](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/LICENSE.md>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://raw\.githubusercontent\.com/mastra\-ai/mastra/HEAD/ee/LICENSE](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/ee/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/mastra/#resource-scenario>)

Build an application's TypeScript agent workflow\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Test documents or tasks, and a quality criterion\.
- Models, a runtime, and a computing budget\.

## Steps

1. Define agent tools, the model provider, and workflow stages\.
2. Connect retrieval/state to the backend and inspect the execution trace\.
3. Connect the workflow to the application and make errors observable\.

## Check your result

- Check the result against reference examples and invalid inputs\.
- Inference costs, model rights, and data handling have been established\.

## [License](<https://base.akulich.dev/en/library/mastra/#resource-license>)

Code outside ee/ is Apache\-2\.0; ee/ uses the Mastra Enterprise Edition License\. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted\. Production requires a current written agreement and a valid scoped License Key\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

Mastra code outside ee/; dependencies retain their own terms\.

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

### Proprietary terms — the vendor determines your rights

Mastra Enterprise Features/ee/: a limited Dev/Test grant; Production requires an Agreement and a valid License Key\.

Use of the software or service is governed by its Terms/EULA and the chosen plan\. Free access does not automatically grant rights to modify and distribute source code, resell assets, or use outputs commercially\. The specific product's terms define permitted use, export, and commercial rights\.

## [Sources](<https://base.akulich.dev/en/library/mastra/#resource-sources>)

- [Official source](<https://github.com/mastra-ai/mastra>)
- [Official source](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/LICENSE.md>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/ee/LICENSE>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
