Skip to content
PluginStats

@useautumn/gateway weekly downloads statistics

By useautumn · npm · AI SDKs

Autumn usage tracking adapters for AI SDKs and gateways (Vercel AI SDK, OpenRouter)

View on npm Fresh · Oct 17, 2026

@useautumn/gateway has 4,483 recorded weekly downloads on npm, a decrease of 68.9% over the past 30 days.

It ranks #1119 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +138%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
4,483
Official API · Oct 17, 2026
7-day growth
-77.9%
-15.8K weekly downloads
30-day growth
-68.9%
-9.9K weekly downloads
90-day growth
+138%
+2.6K weekly downloads
Rank
#1119
Among tracked npm listings

About @useautumn/gateway

@useautumn/gateway

Autumn adapters for AI SDKs and gateways. Wrap your model or client once and every LLM call's token usage is tracked against the customer's AI credit balance — no manual trackTokens calls.

Autumn converts the token counts to a dollar cost server-side using live models.dev rates plus your configured markup, so pricing changes never require a client redeploy.

Install

Requires Node.js 22+ and ESM imports. The AI SDK adapter targets AI SDK 7 and V4 language models; AI SDK 6 applications should stay on the previous gateway release.

Authentication: pass an autumn client (from autumn-js), or set AUTUMN_API_KEY (or AUTUMN_SECRET_KEY) in the environment and omit it.

Vercel AI SDK

The wrapped model is a drop-in LanguageModelV4. Usage is read per model call from the response (or the stream's finish chunk), including each step in a tool loop, and reported as / (e.g. anthropic/claude-sonnet-4-5). Tracking does not use AI SDK 7's aggregated top-level result.usage.

OpenAI, Anthropic, and Google provider names are normalized automatically: plain names and dotted SDK namespaces such as openai.responses, anthropic.messages, and google.generative-ai use their models.dev provider keys. Vercel's gateway namespace maps to vercel. Model IDs retain all dots and slashes. Other provider names pass through unchanged; use providerId for a custom mapping. Explicit overrides are always used verbatim.

OpenRouter

The wrapper forces OpenRouter usage accounting on every request, tracks chat.send (streaming and non-streaming) and the responses API (including @openrouter/agent's callModel), and reports models as openrouter/ using the response's resolved model — router aliases like openrouter/auto bill against the model that actually served the request. OpenRouter's own reported charge is attached to each event as openrouter_cost.

Streaming usage is tracked in the background; call await trackingSettled(client) before reading balances that must reflect calls just made. For consumption patterns the wrapper doesn't cover, trackOpenRouterUsage({ usage, model, customerId }) accepts both SDK camelCase and raw snake_case usage objects.

Options

Both adapters accept the shared tracking options:

| Option | Required | Description |

| customerId | Yes | Autumn customer ID to attribute usage to | | autumn | No | autumn-js client; falls back to AUTUMN_API_KEY env | | featureId | No | Target AI credit system feature (auto-detected if you have one) | | entityId | No | Entity for entity-scoped balances | | properties | No | Extra properties attached to each usage event |

Tracking failures are caught and logged — they never break your AI responses.

Docs

• Vercel AI SDK guide • OpenRouter guide • trackTokens API reference

Description from the npm listing.

  • autumn
  • billing
  • usage-based-billing
  • ai-sdk
  • openrouter
  • llm
  • token-tracking

Where @useautumn/gateway 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.

All npm2,248 listings · 113 pages · page 56, #19 (overall #1119)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs249 listings · 13 pages · page 5, #1 (overall #81)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@useautumn/gateway weekly downloads on npm, last 90 days: 4,483 weekly downloads as of Oct 17, 2026, +138% over 90 days.@useautumn/gatewayWeekly downloads on npm · Last 90 days4,483downloads / week+138% over 90 days05K10K15K20K25K30K35KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@useautumn/gateway weekly downloads on npm, last 90 days: 4,483 weekly downloads as of Oct 17, 2026, +138% over 90 days.
PNG SVG

7/30/90-day growth

@useautumn/gateway weekly downloads growth on npm: -77.9% over 7 days, -68.9% over 30 days, +138% over 90 days.@useautumn/gatewayWeekly downloads growth on npm4,483downloads / week now7-day growth-15,794 weekly downloads-77.9%30-day growth-9,933 weekly downloads-68.9%90-day growth+2,603 weekly downloads+138%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@useautumn/gateway weekly downloads growth on npm: -77.9% over 7 days, -68.9% over 30 days, +138% over 90 days.
PNG SVG

Ranking history

@useautumn/gateway npm ranking history: currently #1119 (by weekly downloads).@useautumn/gatewaynpm ranking · by weekly downloads · Last 90 days#1119current rank#1117#1118#1119#1120#1121Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@useautumn/gateway npm ranking history: currently #1119 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for @useautumn/gateway
Date (UTC)Weekly downloadsChange vs. previous
4,483-1K
5,498-3.1K
8,601-3K
11,577-1.4K
12,9570
12,957-3.9K
16,874-3.4K
20,277-1.1K
21,400-1.3K
22,737-2.2K
24,962-3.1K
28,062-3.5K
31,535+4.8K
26,726—

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/@useautumn/gateway. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.