TanStackAI
ALPHA

A powerful, open-source AI SDK with a unified interface across multiple providers

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 Started
VanillaReactSolid?@tanstack/ai-clientTanStack AIOllamaOpenAIAnthropicGeminiTypeScriptPHPPython?

Chat Panel

Type a message...

0
NPM Downloads
24
Stars on Github
9
Contributors on GitHub
0
Dependents on GitHub

Multi-Provider Support

Support for OpenAI, Anthropic, Ollama, and Google Gemini. Switch providers at runtime without code changes. No vendor lock-in, just clean TypeScript.

Unified API

Same interface across all providers. Standalone functions with automatic type inference from adapters. Framework-agnostic client for any JavaScript environment.

Tool/Function Calling

Automatic execution loop with no manual tool management needed. Type-safe tool definitions with structured outputs and streaming support.

A complete AI ecosystem, not a vendor platform

TanStack AI is a pure open-source ecosystem of libraries and standards—not a service. We connect you directly to the AI providers you choose, with no middleman, no service fees, and no vendor lock-in. Just powerful, type-safe tools built by and for the community.

🖥️ Server Agnostic

Use any backend server you want. Well-documented protocol with libraries for TypeScript, PHP, Python, and more.

📱 Client Agnostic

Vanilla client library (@tanstack/ai-client) or framework integrations for React, Solid, and more coming soon.

🔌 Service Agnostic

Connect to OpenAI, Anthropic, Gemini, and Ollama out of the box. Create custom adapters for any provider.

🛠️ Full Tooling Support

Complete support for client and server tools, including tool approvals and execution control.

🧠 Thinking & Reasoning

Full support for thinking and reasoning models with thinking/reasoning tokens streamed to clients.

🎯 Fully Type-Safe

Complete type safety across providers, models, and model options from end to end.

🔍 Next-Gen DevTools

Amazing developer tools that show you everything happening with your AI connections in real-time.

💚 Pure Open Source

No hidden service, no fees, no upsells. Community-supported software connecting you directly to your chosen providers.

Partners

Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Nozzle.io
AI You?
We're looking for TanStack AI Partners to join our mission! Partner with us to push the boundaries of TanStack AI and build amazing things together.
Let's chat
Wow, you've come a long way!
Only one thing left to do...
Get Started!