Skip to content
PluginStats

codex-anthropic-bridge weekly downloads statistics

By CodingForMoney · npm · Claude Code

A local Anthropic Messages and OpenAI Responses API bridge for an existing Codex login.

View on npm Fresh · Nov 2, 2026 · data Oct 29, 2026

codex-anthropic-bridge has 9,604 recorded weekly downloads on npm.

Weekly downloads
9,604
Official API · Oct 29, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About codex-anthropic-bridge

Codex Bridge

Codex Bridge is a focused local Anthropic Messages and OpenAI Responses API bridge for an existing Codex login. It lets clients send supported requests to Codex-backed models without changing Claude Code settings or copying Codex OAuth credentials into another tool.

Codex Bridge is intentionally not a provider router. It does not launch Claude Code, edit ~/.claude, refresh OAuth tokens, or manage multiple providers.

The ChatGPT-authenticated Codex backend is not a documented stable third-party API. Codex Bridge isolates that integration, but upstream changes can still require a bridge update.

Requirements

  • Node.js 20 or newer
  • Codex installed and signed in
  • file-backed Codex credentials at $CODEX_HOME/auth.json or ~/.codex/auth.json

If Codex stores credentials only in an OS keyring, the first release reports CODEX_AUTH_STORAGE_UNSUPPORTED rather than copying or exporting them.

Start The Bridge

npm install --global codex-anthropic-bridge
codex-bridge serve

On first use, Codex Bridge generates a local API key and saves it to ~/.cb/config.json. Every serve startup prints the current key so it can be copied into the client. The server listens on http://127.0.0.1:3456 by default.

Use a temporary process-scoped Claude Code configuration when selecting the bridge. This leaves normal Claude Code sessions unchanged:

export CB_API_KEY="copy-the-key-printed-by-codex-bridge"
ANTHROPIC_BASE_URL="http://127.0.0.1:3456" \
ANTHROPIC_AUTH_TOKEN="$CB_API_KEY" \
claude --model gpt-6.1-sol

OpenAI Responses clients can use the same server and key:

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.CB_API_KEY,
  baseURL: "http://127.0.0.1:3456/v1"
});

const response = await client.responses.create({
  model: "gpt-6.1-sol",
  input: "Hello"
});

Supported Models

Codex Bridge supports exactly:

ModelMaximum context windowEffective context window
gpt-6-astra272,000 tokensapproximately 258,400 tokens
gpt-6.1-sol272,000 tokensapproximately 258,400 tokens
gpt-6-luna272,000 tokensapproximately 258,400 tokens

The effective window is 95% of the maximum window according to the current Codex model metadata. These limits are controlled by the upstream model and may change when Codex updates its model catalog; Codex Bridge does not override or independently enforce them.

GET /v1/models returns this fixed list. Requests for any other model fail with CODEX_MODEL_UNAVAILABLE before an upstream request is sent.

CLI

codex-bridge serve [--host HOST] [--port PORT]
codex-bridge status [--host HOST] [--port PORT]
codex-bridge doctor
codex-bridge key refresh
codex-bridge --version
codex-bridge --help
  • serve starts the local API.
  • status reports server reachability and redacted credential state.
  • doctor validates local credentials and reports the supported models without sending a model inference request.
  • key refresh replaces the local Bridge API key and prints the new value.

The running server reads the stored key for every protected request. A manual refresh therefore takes effect immediately: clients using the old key receive HTTP 401 and must be updated with the newly printed key.

There are no login, refresh, or logout commands. Open Codex and make a request, or run codex login, when the bridge reports expired or unauthorized credentials.

API

The bridge exposes:

  • POST /v1/messages
  • POST /v1/messages/count_tokens
  • POST /v1/responses
  • POST /v1/responses/compact
  • GET /v1/models
  • GET /auth/status
  • GET /health

All endpoints except /health require either:

x-api-key: <printed Codex Bridge API key>

or:

Authorization: Bearer <printed Codex Bridge API key>

Messages support text, image inputs, tools, tool results, streaming, reasoning effort, usage, and Codex encrypted reasoning continuity. Unsupported required content returns an explicit compatibility error.

Responses support string or item-array input, text and image URL content, function tools and results, encrypted reasoning history, structured text configuration, and streaming or non-streaming output. The upstream request is always stateless and streamed internally; non-streaming client requests are assembled from the terminal Responses event.

Responses compaction accepts the OpenAI-compatible POST /v1/responses/compact contract. The ChatGPT Codex subscription backend does not expose that route directly, so the bridge uses the current Codex protocol: it sends the complete history plus a compaction_trigger through /responses, then returns a response.compaction object containing the retained user messages and the upstream compaction item. The compaction item, its encrypted content, IDs, ordering, usage, and unknown fields remain opaque. Pass the returned output items plus the next user message to POST /v1/responses:

const compacted = await client.responses.compact({
  model: "gpt-6.1-sol",
  input: completeHistory
});

const next = await client.responses.create({
  model: "gpt-6.1-sol",
  input: [...compacted.output, { role: "user", content: "Continue." }]
});

Compaction remains stateless: the caller owns the history and decides when to compact or fall back. Treat returned compaction items as opaque and continue with the same upstream model because their encrypted content is model- and provider-specific. See the OpenAI Responses Compaction API.…

Description from the npm listing.

  • codex
  • claude-code
  • anthropic
  • gateway
  • bridge

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

codex-anthropic-bridge weekly downloads on npm, last 90 days: 9,604 weekly downloads as of Oct 29, 2026.codex-anthropic-bridgeWeekly downloads on npm · Last 90 days9,604downloads / week8.5K9K9.5K10K10.5K11KJul 31Aug 15Aug 30Sep 14Sep 29Oct 14Oct 29downloads / weekOct 29, 2026 – Oct 29, 2026 · 1 observations · Updated Oct 29, 2026pluginstats.com
codex-anthropic-bridge weekly downloads on npm, last 90 days: 9,604 weekly downloads as of Oct 29, 2026.

7/30/90-day growth

codex-anthropic-bridge weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.codex-anthropic-bridgeWeekly downloads growth on npm9,604downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 29, 2026pluginstats.com
codex-anthropic-bridge weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

codex-anthropic-bridge npm ranking history: currently #1151 (by weekly downloads).codex-anthropic-bridgenpm ranking · by weekly downloads · Last 90 days#1151current rank#1149#1150#1151#1152#1153Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17Nov 1rankNov 1, 2026 – Nov 1, 2026 · 1 observations · Updated Oct 29, 2026pluginstats.com
codex-anthropic-bridge npm ranking history: currently #1151 (by weekly downloads).

Listing placement

All npm2,762 listings · 139 pages · 1,383 shown · page 61, #18 (overall #1,218)
All npm: every listing in weekly downloads order

Listing placement

Claude Code419 listings · 21 pages · page 4, #15 (overall #75)
Claude Code: 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 (1)
Recent weekly downloads observations for codex-anthropic-bridge
Date (UTC)Weekly downloadsChange vs. previous
9,604—

Similar npm Claude Code plugins

All 20 codex-anthropic-bridge 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/codex-anthropic-bridge. First seen Nov 1, 2026; last successful collection Nov 2, 2026. See the methodology.