Skip to content
AddHunt
Agent skills & plugins

TanStack AI

TypeScript library for AI features and agents

Open source

  • Open source
  • Licence: MIT

In short

TanStack AI is an open-source TypeScript library for building AI features and agents, covering the agent loop, model provider adapters, durable runs, interrupts, sandboxes and tool calling. It is for web developers who want to add AI to an existing server, database and UI.

What you get

  • Agent loop, tools and provider adapters
  • Durability, interrupts and sandboxes
  • React hooks such as useChat for streaming chat
  • AG-UI compliant client protocol
  • Model switching without changing client code
  • Agent skills for Claude Code and other coding agents

The details

TanStack AI comes from the TanStack family of open-source libraries and is designed to slot into an application's existing stack instead of replacing it. The library takes care of the harder parts of AI features, such as running the agent loop, talking to model providers, keeping runs durable, pausing for interrupts, using sandboxes and calling tools, while developers keep their own server, database and interface.

Frameworks and providers

On the client, hooks such as useChat in the React package manage messages, streaming and sending, and the repository topics also mention Solid, Svelte and Vue. Provider adapters let the same client component switch between models from Anthropic, OpenAI, Grok and others. A demo campaign studio on the site shows a single flow moving from text to image to video.

Open protocol

TanStack AI follows the AG-UI protocol for both outgoing requests and incoming events on the client side. As a result, the agent on the other end can be replaced with a runtime written in Python, Go or PHP, and the transport can be swapped.

Getting started

The documentation covers setup, a tutorial, guides, adapters, the API and examples. For AI coding agents, TanStack publishes installable skills, for example as a Claude Code plugin. The library is MIT-licensed.

Alternatives to TanStack AI

All alternatives

Questions

Does TanStack AI require a specific backend?

No. It plugs into an existing server, database and UI, and because it follows the AG-UI protocol, the client can talk to agent runtimes written in Python, Go or PHP.

Which model providers are supported?

The site shows the same client working with Anthropic, OpenAI and Grok through provider adapters, and the repository topics also list Gemini.

More like this