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

openai-oauth

v1.0.2

Published

Free OpenAI API access with your ChatGPT account.

Readme

openai-oauth

GitHub | Legal

OpenAI-compatible local endpoint backed by your ChatGPT account.

Usage

npx openai-oauth

When startup succeeds, the CLI prints:

OpenAI-compatible endpoint ready at http://127.0.0.1:10531/v1
Use this as your OpenAI base URL. No API key is required.
Available Models: gpt-5.4, gpt-5.3-codex, ...

If no auth file is available, it fails early and tells you to run:

npx @openai/codex login

Configuration

| Config | CLI | Default | Description | | ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | Host binding | --host | 127.0.0.1 | Host interface the local proxy binds to. | | Port | --port | 10531 | Port the local proxy binds to. | | Model allowlist | --models | Account-specific Codex models discovered from ChatGPT | Comma-separated list of model ids exposed by /v1/models. When omitted, the CLI mirrors the models your account can actually use. | | Codex API version | --codex-version | Local codex --version, then @openai/codex latest from npm, then 0.111.0 | Override the Codex API client version used for model discovery. | | Upstream base URL | --base-url | https://chatgpt.com/backend-api/codex | Override the upstream Codex base URL. | | OAuth client id | --oauth-client-id | app_EMoamEEZ73f0CkXaXp7hrann | Override the OAuth client id used for refresh. | | OAuth token URL | --oauth-token-url | https://auth.openai.com/oauth/token | Override the OAuth token URL used for refresh. | | Auth file path | --oauth-file | --oauth-file path if provided, otherwise $CHATGPT_LOCAL_HOME/auth.json, $CODEX_HOME/auth.json, ~/.chatgpt-local/auth.json, ~/.codex/auth.json | Override where the local OAuth auth file is discovered. |

Features

What currently works:

  • Working Endpoints:
    • /v1/responses
    • /v1/chat/completions
    • /v1/models (account-aware by default, or overridden with --models)
  • Streaming Responses
  • Toolcalls
  • Reasoning Traces

Known Limitations

What is intentionally not there yet:

  • Only LLMs supported by Codex are available. This lists updates over time and is dependent on your Codex plan.
  • Login flow is intentionally not bundled. Simply run npx @openai/codex login to create the auth file.
  • There is no stateful replay support on the CLI /v1/responses endpoint. The proxy is stateless and expects callers to send the full conversation history.

How it Works

OpenAI's Codex CLI uses a special endpoint at chatgpt.com/backend-api/codex/responses to let you use special OpenAI rate limits tied to your ChatGPT account.

By using the same Oauth tokens as Codex, we can effectively use OpenAI's API through Oauth instead of buying API credits.

Legal

This is an unofficial, community-maintained project and is not affiliated with, endorsed by, or sponsored by OpenAI, Inc.

It uses your local Codex/ChatGPT authentication cache (auth.json, e.g. ~/.codex/auth.json) and should be treated like password-equivalent credentials.

Use only for personal, local experimentation on trusted machines; do not run as a hosted service, do not share access, and do not pool or redistribute tokens.

You are solely responsible for complying with OpenAI’s Terms, policies, and any applicable agreements; misuse may result in rate limits, suspension, or termination.

Provided “as is” with no warranties; you assume all risk for data exposure, costs, and account actions.