Skip to content

v1.2.0 — local Codex / Claude OAuth as DSH model routes

Choose a tag to compare

@tianxia-- tianxia-- released this 17 Aug 13:01
· 3 commits to main since this release

A DeepSeek Harness plugin that serves LLM
calls with the OAuth tokens your local CLIs already hold — no separate API key, no extra login.

If you are signed in to the Codex CLI or to Claude Code, those subscriptions become usable model
routes inside DSH.

Provider route Credential source
openai-codex ~/.codex/auth.json (ChatGPT OAuth, shared with the codex CLI)
anthropic ~/.claude/.credentials.json, else the macOS Keychain item Claude Code-credentials

Both routes appear in the model picker as soon as the plugin loads. A route whose credential is
missing is skipped instead of failing the boot.

Highlights

  • Resolves the OAuth token per request from the file the CLI maintains, and refreshes it near expiry.
  • Hands the token to the pi-ai engine DSH already ships — no forked engine, no proxy process.
  • Shows Codex / Claude subscription usage from provider rate-limit headers, including quota read
    over SSE for Codex, following whichever provider is selected.
  • Quota windows are named by their actual length rather than the vendor's marketing word.

Install

dsh plugin --profile web add https://github.com/tianxia--/dsh-llm-local-token.git

Then enable it in the profile's patch layer (~/.dsh/profiles/web/cordis.patch.yml):

- insert:
    - id: llm-local-token
      name: dsh-llm-local-token

See the README — also available in
中文.