# Cross-link map: Mastra with AI Gateway (/docs/ai-gateway/ecosystem/framework-integrations/mastra)

> From the Vercel docs graph (built 2026-11-10T05:37:46.007Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.json

## Semantically closest pages

- [Mastra with Vercel Sandbox](https://vercel.com/docs/sandbox/ecosystem/mastra) — Give a Mastra agent an isolated workspace for running commands with the Vercel Sandbox adapter and AI Gateway.
- [Mastra on Vercel](https://vercel.com/docs/frameworks/agents/mastra) — Deploy a Mastra agent as a Vercel Function and route its model requests through AI Gateway.
- [Build a Software Factory with Mastra](https://vercel.com/docs/agent-resources/software-factory/mastra) — Combine Mastra workflow stages with AI Gateway, Vercel Sandbox, and GitHub Tools to prepare reviewed changes.
- [Vercel AI Gateway: Models, Routing, and Observability](https://vercel.com/docs/ai-gateway) — Call AI models from any infrastructure through a managed gateway. Centralize credentials, request logs, spend budgets, r
- [Agent Frameworks on Vercel](https://vercel.com/docs/frameworks/agents) — Build AI agents with eve, Mastra, Flue, and Vercel. Learn how each framework connects to Vercel compute, models, and sto

## Prerequisites

- [Ecosystem](https://vercel.com/docs/sandbox/ecosystem) — Use Vercel Sandbox with the agent frameworks, model SDKs, and agents you already work with.

## This page links to (16)

- [AI Gateway Authentication and BYOK](https://vercel.com/docs/ai-gateway/authentication-and-byok) — Authenticate AI Gateway requests with API keys or OIDC tokens, and configure bring your own key \\(BYOK\\) credentials for
- [Bring Your Own Key \\(BYOK\\) to AI Gateway](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) — Learn how to configure your own provider keys with AI Gateway.
- [AI Gateway OIDC Authentication](https://vercel.com/docs/ai-gateway/authentication-and-byok/oidc) — Authenticate AI Gateway requests from Vercel deployments with OIDC tokens. Configure the AI SDK or send bearer tokens di
- [AI Gateway Models and Providers](https://vercel.com/docs/ai-gateway/models-and-providers) — Choose AI Gateway models and providers. Configure routing, fallbacks, timeouts, prompt caching, reasoning, and web searc
- [AI Gateway Observability](https://vercel.com/docs/ai-gateway/observability-and-spend/observability) — Monitor AI Gateway requests in the Vercel dashboard. Inspect token usage, latency, spend, and logs at team, project, and
- [AI SDK](https://vercel.com/docs/ai-sdk) — Build TypeScript agents and AI applications with a unified API for models, tools, structured output, and streaming.
- [Chat SDK](https://vercel.com/docs/chat-sdk) — Build bots for Slack and other chat platforms with Chat SDK, and deploy them on Vercel.
- [Daemons](https://vercel.com/docs/daemons) — Run long-running background workers, such as queue consumers and workflow workers, next to your app with Vercel Daemons.
- [Mastra on Vercel](https://vercel.com/docs/frameworks/agents/mastra) — Deploy a Mastra agent as a Vercel Function and route its model requests through AI Gateway.
- [Vercel Functions](https://vercel.com/docs/functions) — Build API routes, webhooks, and agent request handlers with Vercel Functions, then test and debug them with Vercel CLI.
- [Restrict access to deployments with Passport](https://vercel.com/docs/passport) — Learn how to protect deployments with Passport, read visitor identity, and verify Passport tokens in server-side code.
- [Vercel Sandbox](https://vercel.com/docs/sandbox) — Run untrusted or agent-generated code in isolated Linux microVMs with Vercel Sandbox.
- [Drives](https://vercel.com/docs/sandbox/concepts/drives) — Persistent storage that can be mounted into sandboxes and shared across runs.
- [Mastra with Vercel Sandbox](https://vercel.com/docs/sandbox/ecosystem/mastra) — Give a Mastra agent an isolated workspace for running commands with the Vercel Sandbox adapter and AI Gateway.
- [Vercel Blob](https://vercel.com/docs/vercel-blob) — Vercel Blob is a scalable, cost-effective object storage service with private and public access modes for files up to 5
- [Vercel Workflows](https://vercel.com/docs/workflows) — Build agents and applications that retry failed steps, wait for external events, and resume across crashes and deploymen

## Pages that link here (4)

By site: vercel-docs (4)

- [AI Gateway Ecosystem and Integrations](https://vercel.com/docs/ai-gateway/ecosystem) — Connect frameworks, coding tools, and billing integrations to AI Gateway. Configure app attribution and explore integrat
- [AI Gateway Framework Integrations](https://vercel.com/docs/ai-gateway/ecosystem/framework-integrations) — Connect Flue, LangChain, LiteLLM, LlamaIndex, Mastra, Pydantic AI, TanStack AI, and other frameworks to Vercel AI Gatewa
- [Mastra on Vercel](https://vercel.com/docs/frameworks/agents/mastra) — Deploy a Mastra agent as a Vercel Function and route its model requests through AI Gateway.
- [Mastra with Vercel Sandbox](https://vercel.com/docs/sandbox/ecosystem/mastra) — Give a Mastra agent an isolated workspace for running commands with the Vercel Sandbox adapter and AI Gateway.
