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

codex-for-claude-code

v0.2.6

Published

Run Claude Code against ChatGPT Codex via your Codex CLI OAuth.

Readme

codex-for-claude-code

Run Claude Code against ChatGPT Codex using your existing Codex CLI subscription.

[!IMPORTANT] If you hit a 401 error, just launch the Codex CLI once (codex) to refresh the OAuth token, then rerun claude-codex.


Install

Requires Node.js ≥ 20, Claude Code, and a logged-in Codex CLI (codex login).

npm install -g codex-for-claude-code

How to run

claude-codex                      # launch Claude Code in Codex mode
claude-codex --resume my-session  # any extra args forward to `claude`

How it works

Claude Code TUI  ──►  codex-proxy :3099  ──►  chatgpt.com/backend-api/codex
                                (translates Anthropic ↔ Responses API,
                                 auth: Codex OAuth from ~/.codex/auth.json)

On each launch claude-codex:

  1. Reads ~/.codex/auth.json for your Codex OAuth token.
  2. Starts the local proxy on 127.0.0.1:3099 (if not already running).
  3. Uses an isolated Claude config dir ~/.claude-codex so Codex model-picker state cannot bleed into plain claude windows. Shared assets (settings.json, agents, commands, hooks, plugins) are symlinked from ~/.claude so there is still one source of truth for configuration.
  4. Writes Codex model options to ~/.claude-codex/.claude.json — Claude Code v2.1+ reads ${CLAUDE_CONFIG_DIR}/.claude.json (non-hashed) to populate the model picker.
  5. Spawns claude with ANTHROPIC_BASE_URL=http://127.0.0.1:3099 and CLAUDE_CONFIG_DIR=~/.claude-codex.

Claude model IDs (claude-*, opus, sonnet, haiku) pass through unchanged to api.anthropic.com. Only Codex IDs hit ChatGPT.


Troubleshooting

401 Unauthorized from ChatGPT backend OAuth token expired. Run codex once to refresh, then rerun claude-codex.

**No Codex auth: login via \codex` CLI** Run codex login. Verify ~/.codex/auth.jsoncontainstokens.access_token`.

Could not find Claude Code binary Install Claude Code, or set CLAUDE_CODEX_CLAUDE_BIN=/path/to/claude.

Model picker shows only Claude models Quit the TUI and relaunch claude-codex.

claude-codex --resume cannot see my plain Claude sessions Current builds keep session/history interoperability by symlinking shared Claude assets from ~/.claude into ~/.claude-codex. If plain claude sessions still do not appear, restart both TUIs so they reread the shared config tree.

Port 3099 in use pkill -f codex-proxy.mjs or set CODEX_PROXY_PORT=3199.

Requests hang / 502 curl http://127.0.0.1:3099/health. Next claude-codex run auto-restarts on version mismatch.


MIT © Yusang Park