eons2long/dsh-llm-codex-oauth1

dsh-llm-codex-oauth

Use Pi's OpenAI Codex OAuth subscription in DeepSeek Harness

AI Analysis

核心用途是复用 Pi 的 Codex 凭证,使 DSH 能够直接调用 `openai-codex` 模型。适合已拥有 Pi 订阅并希望在 DSH 中使用的用户。

Package
dsh-llm-codex-oauth
Version
0.1.0
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:eons2long/dsh-llm-codex-oauth

dsh-llm-codex-oauth

DSH adapter that uses the same OpenAI Codex OAuth credential as Pi: ~/.pi/agent/auth.jsonopenai-codex.

It uses Pi's installed @earendil-works/pi-ai Codex provider and DSH's public dsh-llm-pi-ai adapter, including the official Codex Responses transport, images, tool calls, reasoning replay, compaction, and OAuth refresh. It does not copy the token into an API-key environment variable.

Install

dsh plugin --profile web add dsh-llm-codex-oauth

For a manual profile install, add the package to the profile and include this entry in its cordis.patch.yml:

- insert:
    - id: llm-codex-oauth
      name: dsh-llm-codex-oauth

The profile must also include the normal llm service. Restart:

npx @deepseek-ai/dsh web

Then select provider openai-codex in the model picker.

Scope

The plugin delegates message conversion, streaming, image attachments, tool calls, reasoning replay, and compaction to DSH's public dsh-llm-pi-ai adapter. It only bridges the credential store to Pi's existing OAuth document.

The plugin reads/writes ~/.pi/agent/auth.json and never prints token values. Because Pi and DSH do not share a cross-application lock, avoid starting both at the same time while an OAuth refresh may occur; a future version may use a separate DSH credential file and its own login flow to remove that race.