z331225718/dsh-openai-codex-auth ↗★ 0

@sipi/dsh-openai-codex-auth

可安装的 OpenAI Codex 设备登录提供方,用于 DSH 的 pi-ai 路由。 适合想通过 ChatGPT 设备码登录接入 Codex 模型的用户,需网页端。

包名
@sipi/dsh-openai-codex-auth
兼容性
待验证
Harness 依赖范围
>=0.1.0-rc.5 <0.2.0
Cordis 依赖范围
>=4.0.1 <5
版本
0.1.0
许可证
MIT
最近更新
2026年8月15日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:z331225718/dsh-openai-codex-auth

Configuration

Structured credentials are stored at $DSH_HOME/.llm-oauth.json. path overrides that file, dshHome changes the default home, lockTimeoutMs defaults to 30 seconds, lockStaleMs to 60 seconds, loginTimeoutMs to 16 minutes, and startupTimeoutMs to 30 seconds.

- id: openai-codex-auth
  name: '@sipi/dsh-openai-codex-auth'
  config:
    dshHome: ~/.dsh

The store serializes mutations in process and across processes. A provider generation prevents a login completing after logout from restoring a deleted credential. POSIX files are atomically replaced at mode 0600; Windows users must protect DSH_HOME with their account ACL. Browser RPC state never includes tokens or raw provider responses.