🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid.
TanStack AI is a TypeScript SDK that provides a unified, provider-agnostic interface for building AI-powered applications across React, Vue, Svelte, Solid, and Preact, as well as server-side and headless environments. It connects to Anthropic's API (alongside OpenAI, Gemini, and OpenRouter) through provider adapters like `@tanstack/ai-openai`, enabling streaming chat, type-safe tool calling via `toolDefinition()`, structured outputs validated with Zod, ArkType, or Valibot, and multimodal workflows covering images, audio, video, speech, and transcription. A standout feature called Code Mode lets a language model write and execute TypeScript in an isolated sandbox to orchestrate tools with loops, branches, and parallel calls. Built-in devtools expose message streams, tool calls, errors, usage metrics, and OpenTelemetry traces for observability. The library is designed for frontend developers and backend engineers who want consistent AI primitives across multiple frameworks and providers without being locked into a single vendor.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
git clone https://github.com/TanStack/ai && cp ai/*.md ~/.claude/agents/24 items in this repository
Triage all open GitHub issues, PRs, and discussions in the current repository by fanning out up to 100 parallel subagents (one per item), then produce a single prioritized report ranking which PRs to review first, which issues to address first, and which discussions need maintainer attention. Use when the user asks to "triage open issues/PRs", "triage discussions", "prioritize the backlog", "what should I review first", "sweep the repo", or any request to bulk-evaluate open GitHub work and recommend an order.
Use when writing, editing, or organizing documentation, when planning what docs a feature needs, and whenever planning or implementing a new feature or change in a repo (docs ship with the code). Also use when tempted to write docs without showing the discovered readers to the user, without asking for tone, or without loading simple-english and i-have-adhd. Triggers on "write docs for X", "document this feature", "add a guide", "update the docs", "reorganize the docs", "plan feature X", "implement X", or /docs.
Use when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output. Also used as a required writing filter by the docs skill. Don't use for marketing copy or after the user says "stop adhd mode" or "normal mode".
Use when writing a pull request title or body, when about to run gh pr create, when about to git push on a branch that already has an open PR, or when the user says /pr-description, "write the PR description", or "update the PR title". Don't use for commit messages, changelogs, or review comments.
Use when wiring hindsight() from @tanstack/ai-memory/hindsight — a hosted memory adapter that buckets memory per conversation and exposes retain/recall/reflect tools to the model. Requires the optional @vectorize-io/hindsight-client peer.
Use when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments). Requires the optional @honcho-ai/sdk peer.
Use when wiring inMemory() from @tanstack/ai-memory/in-memory — explains setup, options (embedder, extract, topK/minScore), when to pick it (dev/tests/single-process demos), and what NOT to use it for (multi-process or persistent).
Subagents overview
What people ask about ai
What is TanStack/ai?
+
TanStack/ai is subagents for the Claude AI ecosystem. 🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid. It has 3.1k GitHub stars and its last recorded update is dated 2026-09-11.
How do I install ai?
+
You can install ai by cloning the repository (https://github.com/TanStack/ai) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is TanStack/ai safe to use?
+
Our security agent has analyzed TanStack/ai and assigned a Trust Score of 97/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains TanStack/ai?
+
TanStack/ai is maintained by TanStack. The last recorded GitHub activity is dated 2026-09-11, with 99 open issues.
Are there alternatives to ai?
+
Yes. On ClaudeWave you can browse similar subagents at /categories/agents, sorted by popularity or recent activity.
Deploy ai to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
More Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.