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

dsh-openai-codex-auth

v0.3.2

Published

Unofficial OpenAI Codex provider for DeepSeek Harness with ChatGPT subscription sign-in.

Readme

dsh-openai-codex-auth

简体中文 | English

DeepSeek Harness 增加 openai-codex 模型提供方,通过符合资格的 ChatGPT 订阅登录,无需配置 OpenAI Platform API Key。

一个 LLM provider 路由应当只由一个插件负责。同时启用两个 openai-codex 实现会造成 adapter 注册冲突。

功能

  • 使用 OpenAI Codex OAuth 设备码流程登录 ChatGPT;
  • 在 DSH 模型选择器中提供 Codex 模型及对应推理等级;
  • 在本地保存凭据并自动刷新令牌;
  • 在设置页显示登录状态、滚动用量周期、重置时间和 Credits。

要求

  • Node.js >=22.19.0
  • DSH 0.1.1-rc.2 Web profile;
  • 具有 Codex 使用资格并已启用设备码登录的 ChatGPT 订阅。

安装或更新

dsh plugin --profile web add dsh-openai-codex-auth

安装或更新后重启 DSH。

从源码安装

npm install
dsh plugin --profile web add .

这个包本身就是 DSH bundle,不需要再执行安装脚本。

使用

  1. 打开“设置 → OpenAI Codex”,选择“使用 ChatGPT 登录”;
  2. 打开验证页面,输入显示的设备码并完成授权;
  3. 在模型选择器的“OpenAI Codex”下选择模型。

DSH agent 也可以调用 codex_logincodex_statuscodex_logout

卸载

先在“设置 → OpenAI Codex”中退出登录,然后运行:

dsh plugin --profile web remove dsh-openai-codex-auth

最后重启 DSH。

安全

  • OAuth token 以 PI_OAUTH_OPENAI_CODEX 项保存在本地 $DSH_HOME/.credentials.yaml,不会发送到设置页面;
  • 用量数据只保留聚合百分比、重置时间和 Credits;
  • 请勿提交或分享 .credentials.yamlauth.json 或环境变量文件。

安全问题请按 SECURITY.md 私下报告。

开发

npm run check
npm test
npm pack --dry-run

提交改动前请阅读 CONTRIBUTING.md

License

MIT