A powerful, open-source AI SDK with a unified interface across multiple providers. No vendor lock-in, no proprietary formats, just clean TypeScript and honest open source.
Get StartedType a message...
TanStack AI is open-source libraries and AG-UI-compatible standards, not a hosted gateway. Bring your client framework, your server runtime, and the AI providers you trust. There is no middleman, no service fee, and no vendor lock-in, just composable tools built for teams that want to own their AI stack.
Use the headless client directly or framework bindings for React, Vue, Solid, Svelte, and Preact.
Client-to-server requests and server-to-client streams use AG-UI, so compatible clients and servers can interoperate.
Build endpoints in TypeScript, Python, or PHP with portable helpers for AG-UI events, SSE, and provider message formats.
Official adapters cover OpenRouter, OpenAI, Anthropic, Gemini, Ollama, Groq, Grok/xAI, ElevenLabs, and fal.ai.
Define isomorphic tools once, run them on the client or server, gate them with approvals, and use provider-native tools safely.
Provider and model choices narrow options, tools, modalities, and structured outputs at compile time.
Use stable APIs for image, video, speech, transcription, realtime voice, summarization, and generation hooks.
Devtools, debug logging, middleware, and observability hooks show what happened across your AI pipeline.