Skip to content
PluginStats

@coder/ai-sdk-provider weekly downloads statistics

By coder (5 listings) · npm · AI SDKs

Vercel AI SDK provider for Coder AI Gateway. Point the AI SDK at your Coder deployment with a Coder API token and use any model your deployment proxies — across AI Gateway's OpenAI- and Anthropic-compatible surfaces.

View on npm Fresh · Oct 17, 2026

@coder/ai-sdk-provider has 573 recorded weekly downloads on npm, a decrease of 17.3% over the past 30 days.

It ranks #1479 of 2,256 tracked npm listings by weekly downloads.

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

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

Weekly downloads
573
Official API · Oct 17, 2026
7-day growth
-47.0%
-508 weekly downloads
30-day growth
-17.3%
-120 weekly downloads
90-day growth
+275%
+420 weekly downloads
Rank
#1479
Among tracked npm listings

About @coder/ai-sdk-provider

@coder/ai-sdk-provider

A Vercel AI SDK provider that routes requests through your Coder deployment's AI Gateway (formerly "AI Bridge"). Use any model your deployment proxies, the same way you'd use OpenRouter or any other provider.

Why: in centralized mode (the default), developers authenticate with their Coder token and never handle raw provider keys. AI Gateway authenticates each request against a Coder identity, injects the centrally managed keys for the upstream providers (Anthropic, OpenAI, Bedrock, Copilot, …), and audits usage per user. In bring-your-own-key mode, developers supply their own upstream key instead (see Authentication). The deployment decides which models and providers are available.

[!TIP] This package is for plain model calls: generateText, streamText, and generateObject (schema-constrained structured output). For Coder's server-side agent (multi-step tool loop, built-in tools, MCP servers, workspace file/shell tools), use @coder/ai-sdk-agent. They compose: provider for pure text/JSON steps, Agent for tool-driven ones.

Install

Requirements:

• Node ≥ 22 and ai v7. • A Coder deployment with AI Gateway enabled: stable since Coder v2.29, GA in v2.30, on by default in v2.34. Requires the AI Governance Add-On.

Named providers and the two wire protocols

Coder admins define AI Gateway providers: named routes on the deployment (/api/v2/aibridge//v1/…). Each speaks one of two wire protocols, set by its admin-configured type:

| Wire protocol | Provider types behind it | Default name |

| OpenAI-compatible | openai, azure, google, copilot, openai-compat, openrouter, vercel | openai | | Anthropic-compatible | anthropic (native Claude), bedrock (Bedrock-hosted Claude) | anthropic |

Routing is by URL path, not by model id: the provider name in the URL decides which upstream handles the request.

createCoder fronts the default openai / anthropic pair. The bare call coder(modelId) picks one by heuristic: ids starting with claude or anthropic go to the Anthropic-protocol provider, everything else to the OpenAI-protocol one. Explicit accessors override the heuristic, e.g. to reach Claude through a Copilot-typed provider on the OpenAI protocol:

Model ids pass through unchanged to the upstream provider (no vendor/model namespacing). Use whatever ids your deployment's providers accept.

Custom-named providers

Provider names are admin-chosen and match ^[a-z0-9]+(-[a-z0-9]+)*$. A deployment may expose, say, an Azure-backed azure-openai next to a Bedrock-backed anthropic-bedrock. There are two ways to reach them.

Sub-provider accessors. openaiProvider(name) / anthropicProvider(name) return a full sub-provider bound to that gateway provider, so one createCoder instance can target any number of providers. Pick the accessor that matches the provider's wire protocol:

| Name | Fails with |

| Outside the gateway's grammar | AI SDK InvalidArgumentError at accessor time | | Well-formed but not configured on deployment | The gateway's 404 at request time |

A name outside the grammar can never be registered, so it fails early.

Re-pointing the defaults. If your deployment just names its one OpenAI/Anthropic pair differently, override the names once and keep using the bare call and the openai / anthropic accessors:

Ask your Coder admins for provider names. Discovery is admin-only server-side: GET /api/v2/ai/providers returns 403 for regular users, and the models endpoint does not attribute models to providers.

Embeddings are not supported yet

coder.textEmbeddingModel(id) and the embedding accessors on coder.openai throw the AI SDK's NoSuchModelError immediately.

Why embeddings throw instead of sending a request

AI Gateway does not intercept /v1/embeddings, so a request would be rejected with a 404. Throwing up front avoids emitting it. The accessors stay so they can light up without a breaking change once the gateway adds an embeddings route. See coder/ai-sdk#69.

Authentication

| Mode | Set | Upstream provider key |

| Centralized (default) | apiKey: your Coder API token | Held by AI Gateway, which brokers the call | | Bring-your-own-key | coderToken: Coder token; apiKey: your upstream key | Yours, forwarded to the upstream |

Centralized mode is all most apps need:

BYOK sends coderToken in the X-Coder-AI-Governance-Token header to authenticate you to the gateway, and forwards apiKey to the upstream:

Configuration

| Option | Type | Default | Description |

| baseURL | string | — (required) | Your Coder deployment URL, e.g. https://coder.example.com. The AI Gateway path is appended for you. | | apiKey | string | — | Coder API token (centralized) or upstream key (BYOK). | | coderToken | string | — | Enables BYOK mode; sent in X-Coder-AI-Governance-Token. | | headers | Record | — | Extra headers merged into every request. | | aiGatewayPath | string | /api/v2/aibridge | Override if your deployment uses a different mount path. Use the canonical /api/v2/ai-gateway with Coder v2.35.0+. | | providers | { openai?, anthropic? } | openai / anthropic | Re-point the default pair at differently-named providers. | | fetch | typeof fetch | global fetch | Custom fetch (testing / middleware). |

Enterprise governance & security

The full reference for security reviewers is in docs/security.md: data flow, credential isolation, audit capture, required permissions, and a security FAQ.

Key points:…

Description from the npm listing.

  • ai
  • ai-gateway
  • ai-sdk
  • aibridge
  • anthropic
  • coder
  • llm
  • openai
  • provider
  • vercel-ai-sdk

Charts

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

Adoption over time

@coder/ai-sdk-provider weekly downloads on npm, last 90 days: 573 weekly downloads as of Oct 17, 2026, +275% over 90 days.@coder/ai-sdk-providerWeekly downloads on npm · Last 90 days573downloads / week+275% over 90 days02004006008001K1.2K1.4K1.6KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
@coder/ai-sdk-provider weekly downloads on npm, last 90 days: 573 weekly downloads as of Oct 17, 2026, +275% over 90 days.
PNG SVG

7/30/90-day growth

@coder/ai-sdk-provider weekly downloads growth on npm: -47.0% over 7 days, -17.3% over 30 days, +275% over 90 days.@coder/ai-sdk-providerWeekly downloads growth on npm573downloads / week now7-day growth-508 weekly downloads-47.0%30-day growth-120 weekly downloads-17.3%90-day growth+420 weekly downloads+275%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@coder/ai-sdk-provider weekly downloads growth on npm: -47.0% over 7 days, -17.3% over 30 days, +275% over 90 days.
PNG SVG

Ranking history

@coder/ai-sdk-provider npm ranking history: currently #1479 (by weekly downloads).@coder/ai-sdk-providernpm ranking · by weekly downloads · Last 90 days#1479current rank#1472#1474#1476#1478#1480#1482Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@coder/ai-sdk-provider npm ranking history: currently #1479 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 74, #20 (overall #1,480)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

AI SDKs250 listings · 13 pages · page 8, #19 (overall #159)
AI SDKs: every listing in weekly downloads order
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.

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.

Recent observations

Full history (121)
Recent weekly downloads observations for @coder/ai-sdk-provider
Date (UTC)Weekly downloadsChange vs. previous
573-392
965+180
785-206
991-145
1,1360
1,136+48
1,088+7
1,081+327
754-96
850-172
1,022-73
1,095-45
1,140-212
1,352—

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/@coder/ai-sdk-provider. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.