vercel-ai-sdk

Persist AI chat responses in durable streams for Vercel AI SDK useChat().

1.7k|64|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/durable-streams/durable-streams --skill vercel-ai-sdk-durable-streams
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-ai-sdk
Source: https://github.com/durable-streams/durable-streams/tree/main/packages/aisdk-transport/skills/vercel-ai-sdk
Command: npx skills add https://github.com/durable-streams/durable-streams --skill vercel-ai-sdk-durable-streams

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need chat responses that survive page reloads and can be resumed without losing generation progress, while keeping write credentials secure.

Core Features & Use Cases

  • Durable streaming: Writes AI chat output to durable streams that can be replayed or tail‑tracked.
  • Resumable conversations: Enables resume functionality in Vercel AI SDK to continue in‑flight generations after a refresh.
  • Secure read proxy: Provides server‑side read endpoints that hide write URLs and credentials.
  • Flexible modes: Supports immediate response mode and await mode for serverless environments.

Quick Start

Use the vercel-ai-sdk skill to enable durable streaming for your Vercel AI chat application.

Frequently Asked Questions about vercel-ai-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make Vercel AI SDK chat streams resumable after a page reload?▼

To make Vercel AI SDK chat streams resumable, you persist AI chat responses in durable streams. This allows you to resume conversations and continue in-flight generations seamlessly after a browser refresh.

What is durable streaming for AI chat responses?▼

Durable streaming writes AI chat output to persistent streams that can be replayed or tail-tracked. It prevents the loss of generation progress during a web page reload by securely storing the response data.

Can I use the Vercel AI SDK useChat() hook with durable streams?▼

Yes, durable streams integrate directly with the Vercel AI SDK useChat() hook in web apps. This integration enables resumable conversations across page reloads without losing active generation progress.

How do I secure write URLs and credentials for resumable AI chat streams?▼

You secure write URLs and credentials by using server-side read proxy endpoints. This read proxy hides your write URLs while still allowing clients to safely resume conversations.

Does durable streaming work in serverless environments?▼

Yes, durable streaming works in serverless environments by supporting await mode alongside immediate response mode. Await mode is specifically designed to handle the execution constraints of serverless computing platforms.

When should I use immediate mode vs await mode for AI chat streaming?▼

Use immediate mode for instant response delivery or await mode for serverless environments. Await mode ensures the stream completes safely within serverless execution limits, while immediate mode prioritizes instant delivery.