
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
dsh-chatgpt-oauth
Advanced tools
ChatGPT account OAuth login and Codex usage display for DeepSeek Harness.
在 DeepSeek Harness (DSH) 的 Web 模型设置中登录 ChatGPT 账号,并查看 OpenAI Codex 用量。
非 OpenAI 或 DeepSeek 官方插件。使用的是 ChatGPT 账号的 Codex OAuth 授权,不是 OpenAI API Key;可用模型及限额由你的账号和服务端决定。

localhost:1455/auth/callback 回调;回调成功页使用 DSH 文案。llm-pi-ai/openai-codex,过期时在服务端串行刷新。要求:Node.js 22.19+、已安装 DSH,并使用带“模型设置”页面的 web profile。本插件在 DSH 0.1.6-alpha.2 上验证过。
从 npm 安装:
dsh plugin --profile web add -w dsh-chatgpt-oauth
也可以从 GitHub Release 安装:dsh plugin --profile web add -w 'github:zhangnan/dsh-chatgpt-oauth#v0.1.1'。
安装后重启 dsh web,打开“设置 → 模型 → ChatGPT”。此包是 DSH Profile Bundle:安装时自动添加 authorization 服务与本插件,无需手工修改 cordis.patch.yml。
如果 profile 中已有手工添加的 authorization 或 dsh-chatgpt-oauth 条目,先移除旧条目再安装,避免重复挂载;已保存的账号凭据不需要删除。
openai-codex)卡片。如果账号授权成功但模型不可用,先检查 openai-codex 路由是否配置了 apiKeyEnv:该字段会覆盖账号 OAuth 凭据,需要移除。端口 1455 已被其他应用占用时,关闭其他登录流程后重试。
用量由插件服务端请求 https://chatgpt.com/backend-api/wham/usage,访问令牌不会返回给浏览器。用量接口或字段可能变化;查询失败不会影响已保存的登录凭据。插件不会替你购买订阅,也不能绕过账号权限或配额。
本插件复用了 PI Agent/pi-ai 的授权格式和 DSH 原生凭据服务;设备码登录交给 DSH 的授权 flow,浏览器登录由插件提供回调页。请只在你信任的本机 DSH 服务上使用,并勿把 DSH 凭据文件或授权回调 URL 提交到公开仓库。
npm test
node --check lib/index.js
node --check lib/client.js
npm pack --dry-run
源码入口:lib/index.js(服务端登录、凭据和用量接口),lib/client.js(模型卡片 UI),cordis.patch.yml(Bundle 自动挂载)。
MIT
FAQs
ChatGPT account OAuth login and Codex usage display for DeepSeek Harness.
We found that dsh-chatgpt-oauth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.