Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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.

Mastra and Vercel AI SDK (agents) compared field by field; rows marked Differs are where their docs differ
FieldMastraVercel AI SDK (agents)
MaintainerDiffersMastra (Kepler Software, Inc.)Vercel
LanguagesTypeScriptTypeScript
LicenseDiffersApache-2.0 (code in ee/ directories is under the Mastra Enterprise License)Apache-2.0
Latest versionsDiffersTypeScript: @mastra/core 1.78.0 (2026-10-15)TypeScript: ai 7.0.143 (2026-10-16)
MCPYesYes
Multi-agentYesYes
Durable executionYesYes
Human in the loopYesYes
StreamingYesYes
Structured outputYesYes
TracingYesYes
MemoryYesYes
EvalsDiffersYesNot stated
Model-agnosticYesYes
Install commands listedDiffers2 (TypeScript)1 (TypeScript)
Quickstart snippetTypeScript snippet publishedTypeScript snippet published
What it is, per its docsDiffersMastra 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.
HomepageDiffersmastra.aiai-sdk.dev/docs
Source repositoryDiffersgithub.com/mastra-ai/mastragithub.com/vercel/ai

Install both

Copied verbatim from the page linked under each command.

Mastra

TypeScript

Terminal
npm create mastra@latest

Source: github.com/mastra-ai/mastra/blob/main/README.md

Terminal
npm install @mastra/core@latest zod@latest typescript@latest @types/node@latest mastra@latest

Source: mastra.ai/docs/agents/overview

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.