Mastra
Mastra is an open-source TypeScript framework for building AI agents, workflows and RAG pipelines, created by the team that built the Gatsby web framework. It bundles agents, persistent memory, a graph-based workflow engine, tool-calling with schema validation, and built-in observability, and routes through a unified API that reaches thousands of models across roughly 100 providers. It graduated from Y Combinator, reached its 1.0 release in January 2026, and added Harness in June 2026 for building interactive agents with threads, tool approval and model switching. Mastra Cloud is the hosted, paid layer for deployment and scaling.
Work at Mastra? Manage this listing
Our take
Mastra is a TypeScript-native framework for building AI agents and workflows, from the team behind Gatsby. You get agents, memory, workflows and observability in one MIT-licensed stack with a unified router across thousands of models. It's code-first, so it rewards engineers over no-code teams; the hosted Mastra Cloud carries the paid value.
Best for
TypeScript and JavaScript engineers who want to build production AI agents and workflows in their own codebase, with memory and observability built in rather than stitched together.
Pros
- MIT-licensed and free to self-host
- TypeScript-native with strong developer experience
- Unified router reaches thousands of models from ~100 providers
- Agents, memory, workflows and observability in one stack
Cons
- Code-first - not for no-code teams
- Younger ecosystem than Python agent frameworks
- Production scale leans on paid Mastra Cloud
How it compares
Against Python-first frameworks like CrewAI or LangGraph, Mastra is built for the TypeScript stack; against no-code builders, it trades clicks for full code control.
Full review
Mastra is an open-source TypeScript framework for building AI agents, workflows and RAG pipelines, created by the team that built the Gatsby web framework. It bundles agents, persistent memory, a graph-based workflow engine, tool-calling with schema validation, and built-in observability, and routes through a unified API that reaches thousands of models across roughly 100 providers. It graduated from Y Combinator, reached its 1.0 release in January 2026, and added Harness in June 2026 for building interactive agents with threads, tool approval and model switching. Mastra Cloud is the hosted, paid layer for deployment and scaling.
Against Python-first frameworks like CrewAI or LangGraph, Mastra is built for the TypeScript stack; against no-code builders, it trades clicks for full code control.
Cloudkart Trust Graph
4.2/5- Actual Utility4/5
Source: Initial LLM-authored rubric (backfill)
- Ease of Use4/5
Source: Initial LLM-authored rubric (backfill)
- Pricing Fairness5/5
Source: Initial LLM-authored rubric (backfill)
- Reliability4/5
Source: Initial LLM-authored rubric (backfill)
- Differentiation4/5
Source: Initial LLM-authored rubric (backfill)
Scored as of . Each score is versioned and auditable; vendors cannot buy it.
How this score is set
- Editorial rubric
- Primary signal — five dimensions, 4.2/5 average.
- Community reviews
- None yet.
- Pricing verified
- Not yet verified
- Independence
- Score set by our editorial team before any affiliate relationship is considered. No vendor can buy it.
Frequently asked questions
- Is Mastra free, and how much does it cost?
- Mastra is open source and free to self-host.
- Who is Mastra best for?
- TypeScript and JavaScript engineers who want to build production AI agents and workflows in their own codebase, with memory and observability built in rather than stitched together.
- How is Mastra rated on Cloudkart.ai?
- Mastra scores 4.2 out of 5 on the Cloudkart.ai rubric, which weighs actual utility, ease of use, pricing fairness, reliability and differentiation. Scores are set editorially and can never be bought.
Community reviews
No community reviews yet. Be the first to share how Mastra works for you.
Relevant tools
More tools in AI Coding Assistants.
Composio
Composio provides the execution infrastructure that connects AI agents to real software. It sits at the tooling and connectivity layer of the agent stack, giving developers one framework - SDKs, a CLI and 850+ pre-built connectors - to let agents act across apps such as GitHub, Slack and Salesforce. It handles the hard parts: complex authentication and OAuth, plus remote sandboxed environments for safe execution, exposed over the Model Context Protocol so agents can reason and then reliably take action. The platform is built for production, with SOC 2 and ISO 27001:2022 certifications and deployment across public cloud, VPC and on-premises. Composio operates from San Francisco and Bangalore and raised a $25M Series A led by Lightspeed, with angels including Vercel's Guillermo Rauch and HubSpot's Dharmesh Shah.
LiteLLM
LiteLLM, from BerriAI, is an open-source AI gateway that gives you a single OpenAI-compatible interface to 140+ providers and 2,500+ models, including OpenAI, Anthropic, Gemini, Bedrock, Azure, Mistral, Ollama and vLLM. You can use it as a lightweight Python SDK for direct calls, or deploy the proxy server as a centralized gateway for a team, with virtual keys, budgets, load balancing, rate limiting, request logging and LLM guardrails. It has become a default building block in the AI stack, with 45,000+ GitHub stars, 240M+ Docker pulls and over a billion requests served, and is used by companies including Netflix, Adobe and Stripe. The core is free; an enterprise tier adds JWT auth, SSO/SAML, audit logs, SLAs and dedicated support.
Claude Code
Terminal-based agentic coding tool from Anthropic for autonomous multi-step coding tasks.
Kiro
AWS agentic IDE built around spec-driven development: it writes a spec, then builds matching code, tests and docs across IDE, CLI and web.
Compare Mastra head-to-head: vs Composio · vs LiteLLM · vs Claude Code · vs Kiro