What this layer is for
Agent tooling for the JavaScript ecosystem: streaming model output into UIs, typed tool schemas (usually with Zod) and deployment on serverless platforms. The right layer when the agent lives inside a web product rather than a Python data stack.
Side by side
| Tool | Best at | Languages | License | By |
|---|---|---|---|---|
| Mastra | Open-source TypeScript framework for agents, workflows, memory, RAG and evals, from the team behind Gatsby. | TypeScript | Apache-2.0 (core), separate enterprise license for ee/ directories | Mastra |
| Vercel AI SDK | Vercel's open-source TypeScript toolkit - one API across model providers, tool-calling agents, and UI hooks for chat apps. | TypeScript, JavaScript | Apache-2.0 | Vercel |
| Claude Agent SDK | Anthropic's SDK that embeds Claude Code's agent loop, built-in tools, permissions and sessions in Python and TypeScript apps. | Python, TypeScript | MIT (Python SDK); proprietary, Anthropic Commercial Terms (TypeScript SDK and bundled Claude Code runtime) | Anthropic |
| OpenAI Agents SDK | OpenAI's open-source Python and TypeScript SDK for agents built from a few primitives - agents, handoffs, guardrails, sessions, tracing. | Python, TypeScript | MIT | OpenAI |
Tools in this layer
Mastra
Open-source TypeScript framework for agents, workflows, memory, RAG and evals, from the team behind Gatsby.
Mastra · TypeScript
Vercel AI SDK
Vercel's open-source TypeScript toolkit - one API across model providers, tool-calling agents, and UI hooks for chat apps.
Vercel · TypeScript, JavaScript
Claude Agent SDK
Anthropic's SDK that embeds Claude Code's agent loop, built-in tools, permissions and sessions in Python and TypeScript apps.
Anthropic · Python, TypeScript
OpenAI Agents SDK
OpenAI's open-source Python and TypeScript SDK for agents built from a few primitives - agents, handoffs, guardrails, sessions, tracing.
OpenAI · Python, TypeScript