> ## Documentation Index
> Fetch the complete documentation index at: https://docs.restate.dev/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.restate.dev/feedback

```json
{
  "path": "/ai/sdk-integrations/vercel-ai-sdk",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Restate & Vercel AI SDK

> Learn how to use the Vercel AI SDK with Restate.

The Vercel AI SDK is an excellent fit for Restate integration.

<Card icon="https://mintcdn.com/restate-6d46e1dc/VzG7GAPBH0jzpzUw/img/ai/sdk-integrations/vercel.svg?fit=max&auto=format&n=VzG7GAPBH0jzpzUw&q=85&s=4967ab5afdb94b8334f29f964de9dcb9" title="Learn more about Vercel AI SDK" horizontal href="https://ai-sdk.dev" width="800" height="800" data-path="img/ai/sdk-integrations/vercel.svg" />

## Quick Start

* [Quickstart guide](/ai-quickstart#typescript-%2B-vercel-ai)
* [Tour of Core Concepts](/ai/patterns/durable-agents)
* [npm package `@restatedev/vercel-ai-middleware`](https://www.npmjs.com/package/@restatedev/vercel-ai-middleware)

## Examples & Templates

* [Template](https://github.com/restatedev/ai-examples/tree/main/vercel-ai/template)
* [Examples](https://github.com/restatedev/ai-examples/tree/main/vercel-ai/tour-of-agents)
* [Next.js template](https://github.com/restatedev/ai-examples/tree/main/vercel-ai/nextjs-template)
* [Next.js example app](https://github.com/restatedev/ai-examples/tree/main/vercel-ai/nextjs-example-app)
* [TypeScript patterns](https://github.com/restatedev/ai-examples/tree/main/typescript-restate-only/tour-of-agents)

## Learn More

* [Announcement:](https://www.restate.dev/blog/building-durable-agents-with-vercel-and-restate) Building Durable AI Agents with Restate + Vercel AI SDK
* [Blog:](https://www.restate.dev/blog/durable-ai-loops-fault-tolerance-across-frameworks-and-without-handcuffs) Durable AI Loops: Fault Tolerance across Frameworks and without Handcuffs
* [Blog:](https://www.restate.dev/blog/resilient-serverless-agents) AI Agents should be serverless and durable
* [Blog:](https://www.restate.dev/blog/durable-coding-agent-with-restate-and-modal) Durable Coding Agent with Modal and Restate
* [Video:](https://www.youtube.com/watch?v=BawfutguT5E) Community Meeting July 2025 - Durable AI Agents
