Framework comparison - verified
Mastra vs Vercel AI SDK (agents)
Mastra (Mastra (Kepler Software, Inc.)) and Vercel AI SDK (agents) (Vercel), compared field by field from their official docs as of October 18, 2026. Their docs differ on 2 points, listed below; the table also shows versions, install commands and links.
Key differences
- License: Mastra uses Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License); Vercel AI SDK (agents) uses Apache-2.0.
- Evals: Mastra documents it; Vercel AI SDK (agents) does not state it in its docs.
Generated from the fields below that differ. Versions, dates and links are left to the table.
Side by side
Every field we track, with the source linked on each value. Rows marked Differs are where the two frameworks' docs differ.
| Field | Mastra | Vercel AI SDK (agents) |
|---|---|---|
| MaintainerDiffers | Mastra (Kepler Software, Inc.) | Vercel |
| Languages | TypeScript | TypeScript |
| LicenseDiffers | Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License) | Apache-2.0 |
| Latest versionsDiffers | TypeScript: @mastra/core 1.78.0 (2026-10-15) | TypeScript: ai 7.0.143 (2026-10-16) |
| MCP | Yes | Yes |
| Multi-agent | Yes | Yes |
| Durable execution | Yes | Yes |
| Human in the loop | Yes | Yes |
| Streaming | Yes | Yes |
| Structured output | Yes | Yes |
| Tracing | Yes | Yes |
| Memory | Yes | Yes |
| EvalsDiffers | Yes | Not stated |
| Model-agnostic | Yes | Yes |
| Install commands listedDiffers | 2 (TypeScript) | 1 (TypeScript) |
| Quickstart snippet | TypeScript snippet published | TypeScript snippet published |
| What it is, per its docsDiffers | Mastra is a TypeScript framework for building AI agents and applications, combining agents, graph-based workflows, memory, evals and observability, with models addressed through a provider/model router. | The AI SDK is Vercel's provider-agnostic TypeScript toolkit for building AI applications and agents, and its ToolLoopAgent class runs a language model with tools in a loop until a task is complete. |
| HomepageDiffers | mastra.ai | ai-sdk.dev/docs |
| Source repositoryDiffers | github.com/mastra-ai/mastra | github.com/vercel/ai |
Install both
Copied verbatim from the page linked under each command.
Mastra
TypeScript
npm create mastra@latestnpm install @mastra/core@latest zod@latest typescript@latest @types/node@latest mastra@latestSource: mastra.ai/docs/agents/overview
Vercel AI SDK (agents)
TypeScript
npm install aiSource: github.com/vercel/ai/blob/main/packages/ai/README.md
FAQ
What is the difference between Mastra and Vercel AI SDK (agents)?
Going by their official docs: License: Mastra uses Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License); Vercel AI SDK (agents) uses Apache-2.0. Evals: Mastra documents it; Vercel AI SDK (agents) does not state it in its docs.
Do Mastra and Vercel AI SDK (agents) both support MCP?
Mastra: yes. Vercel AI SDK (agents): yes. "Not stated" means the docs do not say.
Which languages do Mastra and Vercel AI SDK (agents) support?
Mastra: TypeScript. Vercel AI SDK (agents): TypeScript. Both list TypeScript.
What licenses do Mastra and Vercel AI SDK (agents) use?
Mastra: Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License). Vercel AI SDK (agents): Apache-2.0.
Do Mastra and Vercel AI SDK (agents) support durable execution and human in the loop?
Durable execution: Mastra yes, Vercel AI SDK (agents) yes. Human in the loop: Mastra yes, Vercel AI SDK (agents) yes. "Not stated" means the docs do not say.
What are the latest versions of Mastra and Vercel AI SDK (agents)?
As of October 18, 2026: Mastra TypeScript package @mastra/core 1.78.0 (October 15, 2026); Vercel AI SDK (agents) TypeScript package ai 7.0.143 (October 16, 2026).
More comparisons
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.