DeepSeek Harness plugin

deepseek-harness-gpt-account-manager

Release-ready OpenAI Codex OAuth account pool, usage ledger, and cost UI for DeepSeek Harness

Jump to install

Source facts

Repository
jingshendegege/deepseek-harness-gpt-account-manager
Latest update
Aug 18, 2026
Category
Models & Providers
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/jingshendegege/deepseek-harness-gpt-account-manager
Plugin: deepseek-harness-gpt-account-manager
Author: jingshendegege

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-gpt-account-manager(Hermes GPT 账号管理器迁移版)

DeepSeek Harness 的独立 Bundle:把 Hermes GPT 账号管理器迁移为 Harness 原生 Host/Client 插件。

> 非官方社区插件,与 OpenAI、DeepSeek 均无隶属或背书关系。仅用于管理用户本人有权使用的账号;请遵守相关服务条款,不要共享、转售或滥用账号额度。

![verify](https://github.com/jingshendegege/deepseek-harness-gpt-account-manager/actions/workflows/verify.yml) ![release](https://github.com/jingshendegege/deepseek-harness-gpt-account-manager/releases)

功能

  • OpenAI Codex device-code OAuth,后台轮询,不阻塞 UI
  • 多个 openai-codex OAuth 账号,首选账号、优先级、轮换、移除
  • 每次请求实际选择账号,并按稳定 account_id 记账
  • 今日、近 7 天、累计 Token 与请求次数
  • 输入、输出、缓存读取、缓存写入、Reasoning 分开统计
  • 额度窗口按 OpenAI 实际返回的窗口角色、统计周期、可用状态和自动重置时间显示,不写死“5 小时”
  • 设置页提示模型入口;聊天页可在 模型 → OpenAI Codex OAuth 账号池 中选择 GPT-5.6 Sol / Terra / Luna
  • 三款 5.6 均提供低、中、高、超高、最大五档思考等级,默认“中”,并映射到 Responses reasoning.effort
  • Codex OAuth 实际模型目录报告三款 5.6 的上下文窗口均为 272K
  • 按公开 OpenAI API 价格计算“API 等价估值”
  • 未知模型显示“暂无法估价”,不猜价格
  • OAuth token 只通过 Harness credentials seam 保存,绝不进入 Session Event、UI、普通日志或 Remote 返回值
  • Windows 上由 Host 侧通过 microsoft-edge: 安全打开 OpenAI HTTPS 验证页,Client 不接触 device secret
  • 外部 HTTP 自动遵守 HTTP_PROXY / HTTPS_PROXY / NO_PROXY

安装

从 Release 安装(推荐)

下载 v0.2.0 Release 中的:

  • dsh-gpt-account-manager-0.2.0.tgz
  • SHA256SUMS.txt

校验 SHA-256 后,在 DeepSeek Harness 根目录执行;路径替换为下载文件的绝对路径:

pnpm dsh plugin --profile web add "/absolute/path/dsh-gpt-account-manager-0.2.0.tgz"
pnpm dsh --profile web

给自动化代理使用的完整安全部署步骤见 [DEPLOY_WITH_AI.md](./DEPLOY_WITH_AI.md)。

从源码构建

这是一个 out-of-tree Bundle。CLI 会读取 dsh.bundle 并自动把 cordis.patch.yml 加入 profile:

pnpm install --frozen-lockfile --ignore-scripts
pnpm pack

# 在 DeepSeek Harness 仓库/安装目录执行;路径替换为实际 tarball
pnpm dsh plugin --profile web add /path/to/dsh-gpt-account-manager-0.2.0.tgz
pnpm dsh --profile web

源码验收可运行 pnpm run verifypnpm pack 也会通过 prepack 自动执行同一套测试、类型检查与 Host/Client/Typert 构建。

Bundle 依赖 Harness 的 web 组装(dsh-web-appdsh-api-remotesdsh-client-ui-settings)。Headless 模式仍可使用 Host 账号池与账本,但没有账号管理页面。

v0.2.0 公开交付改进

  • 补齐 Hermes GPT 账号管理器迁移定位、Release 安装、AI 辅助部署、版本记录和安全报告文档。
  • pnpm run verify 现在会真实生成 tarball,并从归档内部检查入口文件、source map、本机账号数据、SQLite、环境文件、绝对路径和明显秘密。
  • 推送 v* 标签时,GitHub Actions 会在干净环境重新验证,生成 .tgzSHA256SUMS.txt 后创建 Release。
  • Codex OAuth 生图实验未进入本公开版本:Harness 当前会在工具返回后再次应用取消信号,而附件服务没有回滚接口;强行发布可能留下无会话引用的持久化对象。账号池、文本模型与账本不受影响。

卸载:

pnpm dsh plugin --profile web remove dsh-gpt-account-manager

账号安全

账号元数据写入 $DSH_HOME/gpt-account-manager/accounts.json;OAuth access/refresh token 交给 Harness credentials 服务保存,引用名为随机稳定 ID 生成的 DSH_CODEX_ACCESS_<ID> / DSH_CODEX_REFRESH_<ID>。任何公开对象都经过 publicAccount() 脱敏。

仓库和 Release tarball 不包含本机账号文件、SQLite、Harness credentials、OAuth Token、真实邮箱、日志、截图或 source map。安全报告方式见 [SECURITY.md](./SECURITY.md)。

估值含义

页面上的美元是“如果相同 Token 走公开 API 的等价价格”,不是 ChatGPT Team/Codex OAuth 的真实扣费。额度窗口、统计周期和重置时间完全以 OpenAI /usage 的当前响应为准;插件不会把统计窗口擅自解释成产品限制。额度由 OpenAI 自动重置,插件不能手动清零。

当前边界

OpenAI Codex backend 的 wire 协议会随官方客户端变化。适配器使用低层 Responses SSE,并只依赖 response.output_text.deltaresponse.function_call_arguments.deltaresponse.completed 等事件。当前 Codex OAuth backend 会拒绝 max_output_tokens,因此插件不发送该字段,由服务端管理输出上限。

当前账号目录会为 Sol/Terra 宣称一个 ultra 档位,但低层 Responses 接口会明确拒绝该值,只接受到 maxultra 属于带自动任务委派的 Codex 客户端能力,不在本插件中显示,避免用户选中后得到 HTTP 400。

账号池主路径已在 Harness 0.1.0-rc.5 源码 + 0.1.0-rc.6 公共 SDK 环境验证:tarball 安装、Cordis Host 启动、Typert Remote、React 设置入口、device-code 完整授权、Team 账号头、GPT-5.6 Sol 真实 Responses 流式请求,以及 SQLite 逐账号 Token 归属。浏览器登录仍必须由用户本人完成,插件不会代替用户授权。

版本变更见 [CHANGELOG.md](./CHANGELOG.md)。