v1.2.0 — local Codex / Claude OAuth as DSH model routes
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.gitThen enable it in the profile's patch layer (~/.dsh/profiles/web/cordis.patch.yml):
- insert:
- id: llm-local-token
name: dsh-llm-local-token