AI Core/custom Backend Integration

Connect useChat to a non-TanStack-AI backend through custom connection adapters. ConnectConnectionAdapter (single async iterable) vs SubscribeConnectionAdapter (separate subscribe/send). Customize fetchServerSentEvents() and fetchHttpStream() with auth headers, custom URLs, and request options. Import from framework package, not @tanstack/ai-client.

TanStack Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit 3126805a2a

Frequently asked questions

npx get-skill add tanstack/ai-core-custom-backend-integration