npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@heungtae/codex-chat-bridge

v0.4.15

Published

Responses-to-chat/completions bridge for Codex workflows

Readme

codex-chat-bridge

Tiny local bridge for running Codex and Claude Code against OpenAI-compatible upstreams without patching either client.

What It Is

  • Codex: OpenAI's local coding agent. It is configured through Codex profile config files and can call a custom model_provider.
  • Claude Code: Anthropic's coding agent. It sends Anthropic /v1/messages traffic.
  • codex-chat-bridge: A local adapter that accepts Responses, Chat Completions, and Anthropic Messages requests, then forwards them to a configured upstream as /v1/responses, /v1/chat/completions, or /v1/messages.

Install

npm install -g @heungtae/codex-chat-bridge

The npm package builds a Rust binary during install. You need Node.js 20+, npm 10+, and a Rust toolchain.

Quick Start

Create the bridge config:

mkdir -p ~/.config/codex-chat-bridge
cp conf.toml.example ~/.config/codex-chat-bridge/conf.toml

Run the bridge:

export OPENROUTER_API_KEY=sk-...
codex-chat-bridge --config ~/.config/codex-chat-bridge/conf.toml

Use Codex 0.134.0+ with a separate profile file. Do not put legacy [profiles.*] blocks or profile = "..." in ~/.codex/config.toml.

codex --profile chat-bridge

Full setup:

Bridge Behavior

  • responses -> chat: maps Codex Responses traffic to Chat Completions upstreams.
  • chat -> responses: maps Chat Completions clients to Responses upstreams.
  • anthropic -> chat: maps Claude Code /v1/messages traffic to Chat Completions upstreams.
  • messages -> messages: bypasses Anthropic Messages traffic to native /v1/messages upstreams without payload conversion while keeping configured upstream headers, forwarded incoming headers, and configured upstream model overrides.
  • namespace, custom, mcp, and web_search* tools can be converted into chat function tools when tool_transform_mode = "legacy_convert".

Minimal Router

[routers.chat_bridge]
incoming_url = "http://127.0.0.1:8787/chat-bridge/v1/responses"
upstream_url = "https://openrouter.ai/api/v1/chat/completions"
upstream_wire = "chat"

Codex provider base_url must stop at /v1; Codex appends /responses itself:

base_url = "http://127.0.0.1:8787/chat-bridge/v1"
wire_api = "responses"

License

Apache-2.0