@tanstack/ai-llmgateway has 199 recorded weekly downloads on npm, an increase of 2.6% over the past 30 days.
It ranks #1598 of 2,256 tracked npm listings by weekly downloads.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @tanstack/ai-llmgateway
@tanstack/ai-llmgateway
LLM Gateway adapter for TanStack AI — one OpenAI-compatible endpoint that routes chat, tool calling, and structured outputs to hundreds of models across many providers.
Installation
Setup
Get your API key from the LLM Gateway dashboard and set it as an environment variable:
Usage
Text/Chat Adapter
With Explicit API Key
Self-Hosted Gateways
LLM Gateway is open source and self-hostable — point baseURL at your own deployment:
Models
Any model listed on llmgateway.io/models works — pass its id as the model name. A curated set of flagship models additionally carries per-model type metadata (input modalities, provider options) with autocomplete, including gpt-5.6-terra, claude-sonnet-5, gemini-pro-latest, kimi-k3, glm-5.2, deepseek-v4-pro, and more (see LLMGATEWAY_CHAT_MODELS).
Model ids accept an optional provider/ prefix to pin routing to a specific provider:
Features
• ✅ Streaming chat completions • ✅ Structured output (JSON Schema) • ✅ Function/tool calling • ✅ Multimodal input (text + images for vision models) • ✅ Reasoning output (reasoning_content deltas from reasoning models) • ✅ Summarization (llmGatewaySummarize)
Tree-Shakeable Adapters
This package uses tree-shakeable adapters, so you only import what you need:
Documentation
• TanStack AI Documentation • LLM Gateway Documentation
Description from the npm listing.
- ai
- ai-sdk
- typescript
- tanstack
- llmgateway
- llm-gateway
- adapter
- llm
- gateway
- chat
- streaming
- tool-calling
- structured-outputs
- model-router
Where @tanstack/ai-llmgateway sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm AI SDKs plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@tanstack/ai-llmgateway. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.