Skip to content
PluginStats

@qoder-ai/qoder-agent-sdk weekly downloads statistics

By qoder-ai · npm · MCP servers

TypeScript SDK for building Qoder-powered coding agents.

View on npm Fresh · Dec 6, 2026

@qoder-ai/qoder-agent-sdk has 15,343 recorded weekly downloads on npm, an increase of 45.4% over the past 30 days, ranking #1130 of 3,247 tracked listings.

Weekly downloads
15,343
Official API · Dec 5, 2026
7-day growth
-10.8%
-1.9K weekly downloads
30-day growth
+45.4%
+4.8K weekly downloads
90-day growth
+304%
+11.5K weekly downloads
Rank
#1130
▼ 58 in 7 days

About @qoder-ai/qoder-agent-sdk

@qoder-ai/qoder-agent-sdk

TypeScript SDK for building applications on top of Qoder Agent.

The SDK starts qodercli for you, streams agent messages back to Node.js, and lets your application configure tools, permissions, working directories, MCP servers, hooks, and interactive sessions.

For compression billing messages, see 压缩费用消息接口.

Installation

npm install @qoder-ai/qoder-agent-sdk zod

Prerequisites:

  • Node.js 18+
  • A Qoder account or another authentication method supported by your host application

zod is a peer dependency used when you define MCP tool schemas. Keep it installed if your application uses SDK tools or MCP integration.

Runtime Behavior

query() runs through a process-wide qodercli daemon. The default route uses the daemon most recently started by startDaemon(); when none is running it starts one. startDaemon() remains a stateless factory: every call starts a new daemon, and the latest one becomes the default for later queries. Pass options.daemon to bind a query to a specific instance. The daemon owns the CLI process boundary, so the SDK does not spawn a separate CLI per query. Call shutdownDaemon() before your host process exits to stop the default daemon.

During npm install, the postinstall script downloads the CLI binary selected by the package's pinned CLI version into dist/_bundled; worker packages also deliver the worker runtime into dist/_worker.

The daemon launches qodercli either as a native process carrier or as a Node worker runtime. startDaemon({ launchMode: 'process' | 'worker' }) selects the carrier explicitly; when a query has to start the default daemon itself, its options.transport (ProcessTransport or WorkerTransport) selects the carrier, otherwise the package's DEFAULT_RUNTIME_TRANSPORT applies. Worker mode launches the bundled dist/_worker runtime, or the runtime passed through pathToQoderWorkerRuntime; when no worker runtime is available the daemon falls back to the process carrier. While a default daemon is ready it is reused, so later queries' carrier and daemon-level options are ignored.

The process carrier uses pathToQoderCLIExecutable when provided, then QODERCLI_PATH, then the bundled CLI, then a locally installed qodercli. JavaScript CLI entries run through executable (or the SDK host's Node binary).

Options.transport, ProcessTransport, and WorkerTransport remain available: selecting either transport no longer spawns a per-query process or worker, it routes the query to the default daemon. A custom QueryTransportProvider is the only transport that bypasses the daemon. Query options that configure the CLI process, such as pathToQoderCLIExecutable, executable, executableArgs, env, proxy, vpcEndpoint, and auth, only apply when the default daemon has to be started; while one is ready they are ignored.

options.extraHeaders accepts a Record<string, string> for the first Qoder main-model request of the first queryable input and its network retries. Later tool continuations, subagents, and queries do not inherit these headers. Existing built-in headers take precedence. Use a paired CLI build with extra_headers support. For example, after the host obtains the user's paid-usage confirmation:

query({
  prompt,
  options: {
    ...options,
    extraHeaders: { "Cosy-Paid-Confirmed": "true" },
  },
});

If your environment blocks install scripts or network downloads, skip postinstall runtime downloads:

QODER_SKIP_DOWNLOAD=1 npm install @qoder-ai/qoder-agent-sdk zod

QODER_SKIP_DOWNLOAD only affects install-time downloads. Point the daemon at an existing qodercli with:

export QODERCLI_PATH=/absolute/path/to/qodercli

Authentication

Every SDK query needs an explicit authentication option.

Authentication methodIdentityUse case
Personal Access Token (PAT)A Qoder userAutomation that needs the user's permissions and data
Service AccountAn organization workloadServices and jobs that should not depend on a personal account
Local qodercli sessionThe signed-in userInteractive development on a workstation

For a PAT, generate a token at qoder.com/account/integrations, store it in a secret manager, and expose it through the default environment variable:

export QODER_PERSONAL_ACCESS_TOKEN=your-token
import { accessTokenFromEnv, query } from "@qoder-ai/qoder-agent-sdk";

const q = query({
  prompt: "Summarize this repository.",
  options: {
    auth: accessTokenFromEnv(),
    cwd: process.cwd(),
  },
});

For a Service Account, read the key from your secret manager and pass it directly to the SDK:

import { query, serviceAccount } from "@qoder-ai/qoder-agent-sdk";

// Get the Service Account key from the host's secret manager adapter.
const serviceAccountKey = await readSecret("qoder-service-account-key");

const q = query({
  prompt: "Summarize this repository.",
  options: {
    auth: serviceAccount({ serviceAccountKey }),
    cwd: process.cwd(),
  },
});

The SDK and CLI obtain and refresh short-lived Service Account tokens for this authentication method. A host can retain the Service Account key and use serviceAccount({ fetchServiceAccountToken }) to obtain and refresh short-lived SATs for qodercli. See the host callback example for a complete Token exchange and query. To reuse a signed-in developer workstation, use qodercliAuth(). See the SDK authentication guide for complete setup instructions and security guidance.

Quick Start

Create demo.mjs:

import { qodercliAuth, query } from "@qoder-ai/qoder-agent-sdk";…

Description from the npm listing.

  • qoder
  • agent
  • sdk
  • cli
  • mcp
  • ai

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

@qoder-ai/qoder-agent-sdk weekly downloads on npm, last 90 days: 15,343 weekly downloads as of Dec 5, 2026, +304% over 90 days.@qoder-ai/qoder-agent-sdkWeekly downloads on npm · Last 90 days15,343downloads / week+304% over 90 days05K10K15K20KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@qoder-ai/qoder-agent-sdk weekly downloads on npm, last 90 days: 15,343 weekly downloads as of Dec 5, 2026, +304% over 90 days.

7/30/90-day growth

@qoder-ai/qoder-agent-sdk weekly downloads growth on npm: -10.8% over 7 days, +45.4% over 30 days, +304% over 90 days.@qoder-ai/qoder-agent-sdkWeekly downloads growth on npm15,343downloads / week now7-day growth-1,851 weekly downloads-10.8%30-day growth+4,791 weekly downloads+45.4%90-day growth+11,544 weekly downloads+304%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@qoder-ai/qoder-agent-sdk weekly downloads growth on npm: -10.8% over 7 days, +45.4% over 30 days, +304% over 90 days.

Ranking history

@qoder-ai/qoder-agent-sdk npm ranking history: currently #1130 (by weekly downloads).@qoder-ai/qoder-agent-sdknpm ranking · by weekly downloads · Last 90 days#1130current rank#1040#1060#1080#1100#1120#1140Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 20, 2026 – Dec 6, 2026 · 14 observations · Updated Dec 5, 2026pluginstats.com
@qoder-ai/qoder-agent-sdk npm ranking history: currently #1130 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 57, #10 (overall #1,130)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 12, #18 (overall #238)
MCP servers: every listing in weekly downloads order

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 linear 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 (135)
Recent weekly downloads observations for @qoder-ai/qoder-agent-sdk
Date (UTC)Weekly downloadsChange vs. previous
15,343-2.6K
17,934+185
17,749+222
17,527+140
17,387-134
17,521+157
17,364+170
17,194+413
16,781+205
16,576-76
16,652+79
16,573+302
16,271+356
15,915—

Similar npm MCP servers plugins

All 20 @qoder-ai/qoder-agent-sdk alternatives

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/@qoder-ai/qoder-agent-sdk. First seen Nov 20, 2026; last successful collection Dec 6, 2026. See the methodology.