DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@sunshaobei/dsh-codex-auth

Codex Auth

Codex 订阅授权管理 for the dsh web surface: a dedicated settings page (authorization status, validity/expiry, one-click browser OAuth) plus an expired-credential modal when a GPT model is selected. Host half runs the full OpenAI OAuth flow (PKCE S256, localhost

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:sunshaobei/dsh-codex-auth#75f6c7ae96806dbb36976924aa3ec6e4e53f66aa
READMECompatibilityVersions

Compatibility and provenance

Codex Auth is published as @sunshaobei/dsh-codex-auth and currently resolves to version 3.1.4. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
11/4/2026

Versions

3.1.4stable
10/23/2026
3.1.3stable
10/22/2026
3.1.2stable
10/22/2026
Show 4 more versionsCollapse versions
3.1.1stable
10/22/2026
3.0.8stable
10/22/2026
3.0.3stable
10/22/2026
3.0.1stable
10/22/2026

Related plugins

Loading related plugins…

Latest
3.1.4
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
604
Last push
10/23/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Cc Safety Netcc-safety-netA coding agent CLI hook - block destructive commands and secret file accessDoctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images and Fast mode, and control DSH from the ChatGPT mobile app (Beta)

README

dsh-codex-auth

DeepSeek Harness 客户端插件:在设置面板中管理 Codex 订阅(ChatGPT OAuth)授权,无需 API key 使用 Codex 订阅内的 GPT 模型。

功能

  • 设置页「Codex 订阅」:授权状态徽章(已授权 / 已过期 / 未授权)、有效期倒计时、账号邮箱、订阅类型(Plus/Pro)
  • 一键授权:点击后宿主进程运行完整 OpenAI OAuth 浏览器流程(PKCE S256,localhost:1455 回调,与 Codex CLI 同端口),成功后把 grant 凭证写入 ~/.dsh/.credentials.yaml 的 llm-pi-ai/openai-codex 记录 —— 与 dsh-llm-pi-ai 读写的是同一条记录,模型目录即时刷新
  • 过期自动弹窗:当前会话选中的模型路由到 openai-codex 且凭证过期时,弹出重新授权对话框(可稍后,10 分钟内不再打扰)

架构

双面插件(模板来自 dsh-balance-panel):

  • 宿主面 lib/index.js:loopback RPC 通道 /dsh-codex-auth(status / login / logout),OAuth 常量与 @earendil-works/pi-ai 的 openai-codex 适配器一致
  • 客户端面 lib/client.js:settings.section(id codex-subscription,order 25)+ shell.overlay 过期弹窗;通过 ctx.connection.rpc.call 与宿主通信;订阅 credentials/record-updated 事件实时刷新状态

凭证记录由 llm-pi-ai 的自动 refresh 机制维护(access token 约 10 天过期,refresh 自动续期);refresh 也失效时本插件的弹窗接管。

构建 / 安装

npm run build                      # src/*.ts -> lib/*.js
cd ~/.dsh/profiles/desktop
# package.json: dependencies += "dsh-codex-auth": "file:/Users/sunshaobei/.dsh/dsh-codex-auth"
#               dsh.profile.bundles += "dsh-codex-auth"
npm install                        # 以 symlink 方式安装本地插件
# 重启 DeepSeek Harness 客户端生效

文件

  • src/index.ts — 宿主:OAuth 流程 + RPC
  • src/client.ts — 设置页 + 弹窗
  • src/vendor/ — vendored schemastery/cosmokit(link 安装时解析不到内部包)
  • cordis.patch.yml — profile 层 insert 配置

授权状态与验证

登录请求立即返回,授权期间面板每秒查询进度,窗口重新获得焦点时立即刷新。回调只有在 token 交换、凭证保存和读取校验成功后才显示成功,并尝试打开 dsh://open;浏览器拦截自动唤起时可点击返回按钮。交换请求设有 30 秒超时,授权等待为 5 分钟,失败原因同时显示在回调页和订阅面板。

运行 npm test 验证回调状态校验、保存成功、磁盘写入失败、token 交换失败、拒绝授权、重复登录和端口占用。测试使用模拟 OAuth 服务,不读取个人凭证。构建后重启 DeepSeek Harness 加载新的宿主插件。

授权有效时,插件通过宿主 settings.mutate 自动提交 openai-codex 提供商,使用宿主内置目录并验证模型数量。已有提供商配置会保留,配置写入或目录加载失败会显示在订阅面板;不会切换当前默认模型。当前设置导航不提供自定义图标接口,因此插件仅对自身导航按钮添加 ChatGPT 图标样式,并在卸载时清理。图标来自 Simple Icons v14 的 OpenAI 标志(CC0)。