lijieyu233/dsh-codex-account-tools ↗★ 0

dsh-codex-account-tools

Codex 账号工具:为 DSH Codex 订阅提供安全的 JSON 导入、预览与导出。

패키지
dsh-codex-account-tools
호환성
미검증
버전
1.1.0
라이선스
MIT
최근 업데이트
2026. 11. 7.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/lijieyu233/dsh-codex-account-tools/releases/download/v1.1.0/dsh-codex-account-tools-1.1.0.tgz

使用

  • 设置 → Codex 账号工具,或插件 → dsh-codex-account-tools 配置页。
  • 粘贴 JSON 或选择 JSON 文件,点击「校验并预览」,确认新增/更新/保持不变的数量,再点击「确认导入」。
  • 勾选要导出的账号,下载脱敏清单或完整备份。完整备份必须再次确认,包含明文登录令牌,请保存到可信位置。
  • 不会自动复制令牌到剪贴板,不记录原始 JSON,不发起 OpenAI 在线验证。

支持:单账号对象、数组、{accounts:[...]}、本工具备份、Codex CLI {tokens:{...}}、DSH {credential:{...}}。

{
  "email": "you@example.com",
  "access_token": "YOUR_ACCESS_TOKEN",
  "refresh_token": "YOUR_REFRESH_TOKEN",
  "id_token": "OPTIONAL_ID_TOKEN",
  "account_id": "OPTIONAL_ACCOUNT_ID"
}

id_token、account_id 可省略;未知过期时间记为 0,让订阅插件决定是否刷新,绝不捏造一个未来有效期。JWT 解码仅提取本地元数据,不代表令牌验签或认证/订阅有效。