# TanStack AI custom backends

> Connects TanStack AI's useChat to your own backend with custom adapters, so chat streams work with any server.

- Page: https://youraiskill.com/skill/tanstack-ai-core-custom-backend-integration
- What it does: 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.
- Niches: ai-agents, backend
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
