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

@yfzhou/dsh-llm-codex-subscription

v0.1.4

Published

Reuses the Codex CLI login in ~/.codex/auth.json so DSH can use ChatGPT subscription models without an API key.

Readme

@yfzhou/dsh-llm-codex-subscription

Registers a codex LLM provider that reuses the Codex CLI's local login, so DSH can talk to ChatGPT subscription models (gpt-5.6-sol and friends) with no API key. It reads the same ~/.codex/auth.json that codex login writes, fresh on every request, so logging in or switching accounts through the CLI takes effect immediately; expired tokens are refreshed and written back atomically, exactly as the CLI does. Requests go to the OpenAI Responses API over SSE, with reasoning, text, and tool calls mapped to the matching DSH blocks.

Requires Node.js 20+ and a codex login. Quota is metered by OpenAI per account and shared with the Codex CLI.

Install

dsh plugin --profile web add @yfzhou/dsh-llm-codex-subscription

The package supplies its own DSH bundle row; do not add a separate cordis.patch.yml entry. Restart DSH and Codex (ChatGPT subscription) appears in the model picker.

Configuration

Machine-specific settings live in $DSH_HOME/settings.yaml, never in the package. The ChatGPT backend usually needs a proxy, and Node's fetch ignores system proxy variables:

llm-codex-subscription:
  proxy: http://127.0.0.1:7890
  account: personal
  accounts:
    personal: ~/.codex-personal/auth.json
    work: ~/.codex-work/auth.json

agent-default-model:      # optional: make Codex the default
  provider: codex
  model: gpt-5.6-sol

| Key | Effect | | --- | --- | | proxy | Takes precedence over HTTPS_PROXY, then HTTP_PROXY; NO_PROXY hosts connect directly. | | accounts / account | Your own aliases for separate auth files, and which one is live. Switching applies to the next request; refreshes only write to the selected file. Not OpenAI's account_id — that still comes from the file's tokens.account_id. | | authFile | Single auth file, when accounts is unset. Defaults to ~/.codex/auth.json. | | writeBack | false keeps refreshed tokens in memory instead of updating auth.json. | | staticModels / modelsCacheFile | Override the catalog, which otherwise comes from the API, then ~/.codex/models_cache.json, then a built-in list. | | clientVersion | Version string sent upstream. |

The section hot-reloads. Image attachments are sent as Responses API input_image data URLs, with the local attachment-local pixel ceiling raised to 200,000,000 — upstream limits still apply.

Troubleshooting

| Symptom | Fix | | --- | --- | | MISSING_CREDENTIAL | Run codex login. | | TRANSPORT: Connect Timeout | Backend unreachable directly; configure proxy. | | HTTP 401 after a failed refresh | Subscription expired or flagged; codex login again. | | HTTP 429 | Quota or rate limit; retry later. | | Empty model list | Live discovery failed with no cache; the static list is used. | | INVALID_REQUEST: Unsupported parameter | The adapter strips parameters the subscription backend rejects; upgrade the plugin. |

License

MIT