FRENES

Frameworks · agent framework

Mastra: review, pricing, security and alternatives

Mastra is an open-source agent framework published by Mastra, in the frameworks family. A TypeScript framework for building AI agents with tools, memory, workflows and application evaluation capabilities. Its repository has 29,049 stars and its last commit is from October 24, 2026.

Open sourceSelf-hostableActively maintainedModerate risk

What Mastra does

Mastra belongs to the frameworks family: libraries for building your own agents in code: loop, tools, memory, orchestration. On our grid it ranks #13 of the 28 projects of this family listed in the directory.

Unlike a ready-made agent, a framework provides the parts to build one: tool calling, step sequencing, memory, coordination of several agents. It is aimed at teams that want a custom agent.

You use it from: developer SDK, terminal (CLI), web app, and API. Usable models: any OpenAI-compatible model. It can run on your own machine or server.

Who is Mastra for?

It is for developers building their own agent or adding agentic AI to a product. Typical tasks people give it:

  • build a business agent wired to your APIs
  • orchestrate tool and model calls
  • add memory and error recovery to an agent

It is a good candidate if you are comfortable in a terminal and your data must stay on your machines.

Access and human control

A framework has no access of its own: the tools you plug in define what the agent can do. Start with read-only tools.

We could not establish whether it asks for human approval before sensitive actions: test it first on an unimportant account or folder.

Mastra pricing

The code is public but the repository declares no licence: reuse is not formally allowed. The real cost comes from model calls: each loop step sends the whole context back to the model, and a task of several dozen steps can cost far more than a single question. The LLM price calculator estimates it for the chosen model.

Getting started with Mastra

  1. Install it: the project ships as a Node.js package (install with npm, or run directly with npx). The exact command is in the repository README.
  2. Create an API key with the model provider and put it in an environment variable, never in a shared or versioned file.
  3. Start with the minimal example from the docs, then add one tool at a time and check what the agent does with it.
  4. Give it a short, checkable task, review the result and its action log, then raise the difficulty step by step.

Security: risk level

A framework does not protect you by default: approval, minimal rights and sandboxing are up to you.

Points found for Mastra:

  • No licence: legally shaky for company use.

Three habits: least privilege (minimal rights, dedicated keys), human approval for irreversible actions, a sandbox for code execution. The AI agent security check reviews your setup in a few minutes.

Project activity and releases

Created on August 6, 2024, the mastra-ai/mastra repository has 29,049 stars, 3,038 forks and 338 open issues, with 22,030 commits in total. It received changes this month.

Over the last 52 weeks: 15,258 commits, an average of 293.4 per week.

Nov 2, : 184 · Nov 2, 2025Nov 2,Nov 9, : 208 · Nov 9, 2025Nov 16, : 196 · Nov 16, 2025Nov 23, : 147 · Nov 23, 2025Nov 30, : 160 · Nov 30, 2025Dec 7, : 193 · Dec 7, 2025Dec 14, : 142 · Dec 14, 2025Dec 21, : 147 · Dec 21, 2025Dec 28, : 87 · Dec 28, 2025Dec 28,Jan 4, : 54 · Jan 4, 2026Jan 11, : 226 · Jan 11, 2026Jan 18, : 217 · Jan 18, 2026Jan 25, : 182 · Jan 25, 2026Feb 1, : 258 · Feb 1, 2026Feb 8, : 195 · Feb 8, 2026Feb 15, : 287 · Feb 15, 2026Feb 22, : 280 · Feb 22, 2026Feb 22,Mar 1, : 217 · Mar 1, 2026Mar 8, : 334 · Mar 8, 2026Mar 15, : 314 · Mar 15, 2026Mar 22, : 193 · Mar 22, 2026Mar 29, : 165 · Mar 29, 2026Apr 5, : 245 · Apr 5, 2026Apr 12, : 179 · Apr 12, 2026Apr 19, : 185 · Apr 19, 2026Apr 19,Apr 26, : 233 · Apr 26, 2026May 3, : 309 · May 3, 2026May 10, : 261 · May 10, 2026May 17, : 247 · May 17, 2026May 24, : 221 · May 24, 2026May 31, : 219 · May 31, 2026Jun 7, : 304 · Jun 7, 2026Jun 14, : 175 · Jun 14, 2026Jun 14,Jun 21, : 196 · Jun 21, 2026Jun 28, : 367 · Jun 28, 2026Jul 5, : 277 · Jul 5, 2026Jul 12, : 237 · Jul 12, 2026Jul 19, : 356 · Jul 19, 2026Jul 26, : 317 · Jul 26, 2026Aug 2, : 306 · Aug 2, 2026Aug 9, : 564 · Aug 9, 2026Aug 9,Aug 16, : 412 · Aug 16, 2026Aug 23, : 406 · Aug 23, 2026Aug 30, : 369 · Aug 30, 2026Sep 6, : 366 · Sep 6, 2026Sep 13, : 459 · Sep 13, 2026Sep 20, : 647 · Sep 20, 2026Sep 27, : 641 · Sep 27, 2026Oct 4, : 453 · Oct 4, 2026Oct 4,Oct 11, : 613 · Oct 11, 2026Oct 18, : 608 · Oct 18, 2026Oct 25, : 700 · Oct 25, 2026Oct 25,
Commits per week on the main repository, last 52 weeks (GitHub API, checked October 25, 2026).

130 releases in total; 30 in the last twelve months. Latest release: @mastra/core@1.79.0, on October 21, 2026.

@mastra/core@1.60.0 · Aug 19, 2026@mastra/core@1.60.Aug 19, 2026@mastra/core@1.61.0 · Aug 24, 2026@mastra/core@1.62.0 · Aug 26, 2026@mastra/core@1.63.0 · Aug 28, 2026@mastra/core@1.64.0 · Sep 4, 2026@mastra/core@1.65.0 · Sep 9, 2026@mastra/core@1.66.0 · Sep 11, 2026@mastra/core@1.67.0 · Sep 15, 2026@mastra/core@1.68.0 · Sep 23, 2026@mastra/core@1.69.0 · Sep 24, 2026@mastra/core@1.71.0 · Sep 25, 2026@mastra/core@1.70.0 · Sep 25, 2026@mastra/core@1.72.0 · Sep 30, 2026@mastra/core@1.74.0 · Oct 5, 2026@mastra/core@1.73.0 · Oct 5, 2026@mastra/core@1.75.0 · Oct 7, 2026@mastra/core@1.76.0 · Oct 13, 2026@mastra/core@1.77.0 · Oct 14, 2026@mastra/core@1.78.0 · Oct 16, 2026@mastra/core@1.79.0 · Oct 21, 2026@mastra/core@1.79.Oct 21, 2026
The latest 20 releases published on GitHub (hover a point for details).

Mastra vs other frameworks

GitHub stars of the best-rated open-source projects in the frameworks family. Stars measure attention, not quality: a heavily promoted project collects them fast, a specialised tool will have few.

LangChainLangChain : 148.4K148.4KLangGraphLangGraph : 43.8K43.8KHaystackHaystack : 26.8K26.8KDSPyDSPy : 38.8K38.8KAgent Development KitAgent Development Kit : 22K22KPydantic AIPydantic AI : 20.8K20.8KSemantic KernelSemantic Kernel : 28.7K28.7KelizaOSelizaOS : 19.6K19.6KMastraMastra : 29K29K
Log scale; Mastra in orange. Checked October 25, 2026.

Mastra and other frameworks at a glance

The 7 best-ranked agents in the same family, 7 of them open source. The score out of 100 only applies to open-source projects; for proprietary services we show the published entry price. A dash marks information the documentation does not state.

Quick comparison: frameworks
AgentModelScoreStars or entry priceSelf-hostableHuman approval
Mastraopen source7529K ★yes–
LangChainopen source93148.4K ★yes–
LangGraphopen source8743.8K ★yes–
Haystackopen source8426.8K ★yes–
DSPyopen source8338.8K ★yes–
Agent Development Kitopen source8322K ★yes–
Pydantic AIopen source8320.8K ★yes–
Semantic Kernelopen source8228.7K ★yes–

How we rated it

Score: 75/100, computed only from public, verifiable data, with no subjective testing or partnership:

  • Adoption 30/40: 29,049 stars on a log scale (40 points from about 200,000).
  • Activity 30/30: last commit less than a month ago, 30 releases in six months, 15,258 commits in a year.
  • Framework 15/30: licence, default human approval, self-hosting, model choice and documentation site.

The score does not say whether the agent will succeed at your tasks: it measures how solid the project is. The full grid is on the method page.

Verdict

Mastra is a serious option; check the limitations below before granting it access.

Strengths

  • Widely followed: 29K stars
  • Very active development
  • Frequent releases (30 in a year)
  • Can run on your side: data under control
  • Free choice of model

Limitations

  • No licence declared
  • Requires programming skills

Avoid if…

  • You want a ready-made agent, without code

Frequently asked questions

Is Mastra free?

The software is public, with no declared licence. You still pay for the model calls, unless you use a local model.

Is Mastra safe?

Our risk level: mid. Points found: no licence. Give it minimum rights and approve irreversible actions.

Which models does Mastra use?

According to its documentation: any OpenAI-compatible model.

Can Mastra be installed on your own server?

Yes, from the mastra-ai/mastra repository. Data then stays with you, but security and updates are your job.

What are the alternatives to Mastra?

In the same family: LangChain, LangGraph, Haystack, and DSPy.

Mastra or LangChain: what is the difference?

Both belong to the frameworks family. Mastra has 29K stars against 148.4K for LangChain. The right choice mostly depends on the access you are willing to give it.

Related articles

Neutrality. No affiliate links. No vendor pays to be reviewed, rated or ranked. Reviews are directed by François Chollet, neutral and factual, and every data point is dated and sourced. How we score