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

@yan06/openai-oauth

v2.0.2

Published

Free OpenAI API access with your ChatGPT account.

Readme

openai-oauth

Docs | GitHub | npm

Turn your ChatGPT account into an OpenAI-compatible local API.

> npx @yan06/openai-oauth

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.6-sol, gpt-5.6-terra, ...

[d] Run in background  [q] Quit

Press d to keep it running in the background or q to quit. You can also manage it directly:

npx @yan06/openai-oauth --detach
npx @yan06/openai-oauth status
npx @yan06/openai-oauth logs --follow
npx @yan06/openai-oauth stop

Package Notes

openai-oauth exposes an OpenAI-compatible local endpoint backed by your ChatGPT account.

Supported endpoints:

  • /v1/responses
  • /v1/chat/completions
  • /v1/images/generations
  • /v1/images/edits
  • /v1/models

Image generation uses JSON requests. Image editing uses the standard OpenAI multipart request with one or more image fields. Both return base64 image data and usage metadata.

curl http://127.0.0.1:10531/v1/images/generations \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"A tiny house in a forest","quality":"low"}'

Common flags:

| Config | Flag | Default | | --- | --- | --- | | Host binding | --host | 127.0.0.1 | | Port | --port | 10531 | | Model allowlist | --models | Account-specific Codex models discovered from ChatGPT | | Auth file path | --oauth-file | $CODEX_HOME/auth.json or ~/.codex/auth.json | | Open browser | --open / --no-open | --open | | Login timeout | --login-timeout-ms | 300000 |

Binding --host beyond loopback exposes the proxy to your network. Anyone who can reach that port can make requests with your ChatGPT account.

Login listens on loopback and uses http://localhost:1455/auth/callback, the local callback URL accepted by OpenAI OAuth.

The CLI resolves the latest published Codex client version automatically. Advanced flags also exist for overriding it, the upstream Codex base URL, OAuth client id, and OAuth token URL.

More

Learn more in the openai-oauth README.