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-codex-oauth

v0.2.7

Published

Use a ChatGPT Codex subscription in DeepSeek Harness through standalone OAuth

Readme

dsh-codex-oauth

English | 中文

一个独立的 DeepSeek Harness(dsh) 插件,通过 OpenAI Codex OAuth 使用 ChatGPT Plus/Pro 订阅模型。

不需要安装 Pi。 插件使用 @earendil-works/pi-ai 提供的 Codex provider,以及 DSH 公共的 dsh-llm-pi-ai 适配器,支持流式输出、工具调用、推理、图片、replay、上下文压缩、OAuth 自动刷新和 Codex 模型目录。

这是 ChatGPT Codex 后端接入,不是普通的 OpenAI Platform API Key 适配器。

安装

dsh plugin --profile web add dsh-codex-oauth
dsh web

如果使用 npx

npx @deepseek-ai/dsh plugin --profile web add dsh-codex-oauth
npx @deepseek-ai/dsh web

登录

插件拥有独立的 OAuth 登录流程和凭据文件。新用户不需要安装 Pi,也不需要复制任何 token。

Web UI

打开 设置 → OpenAI Codex,点击 使用 ChatGPT 登录。插件会打开浏览器完成 OAuth 授权;返回 DSH 后,在模型选择器中选择 openai-codex

命令行登录

dsh plugin --profile web exec dsh-openai-codex login

无图形浏览器的机器:

dsh plugin --profile web exec dsh-openai-codex login --device-code

查看状态和退出登录:

dsh plugin --profile web exec dsh-openai-codex status
dsh plugin --profile web exec dsh-openai-codex logout

浏览器登录会打开 OpenAI 授权页面,并通过 localhost 回调完成。登录后,在 DSH 模型选择器中选择 openai-codex

凭据存储

凭据默认存储在:

~/.dsh/.openai-codex-auth.json

也可以通过 DSH_HOME 改变目录。文件采用原子写入、仅所有者可读写(0600),登录、刷新和退出登录使用跨进程文件锁。

插件不会读取或修改:

~/.pi/agent/auth.json
~/.codex/auth.json

开发与测试

npm test

npm test 会先重新构建 Web bundle,再运行基础检查。

测试需要当前 DSH profile 提供 DSH 和 pi-ai peer dependencies。

限制

  • ChatGPT 套餐资格、模型权限、配额和后端行为由 OpenAI 控制,可能变化;
  • Codex 端点不是公开的 OpenAI Platform API 端点;
  • 文件系统、Shell、MCP、权限、附件等能力仍由当前 DSH profile 提供。

许可证

MIT