tianxia--/dsh-llm-local-token
Serves model calls from the OAuth tokens your local CLIs already hold, so an existing Codex or Claude Code subscription shows up as a DSH model route with no separate API key.
Both routes appear in the model picker as soon as the plugin loads, hitting https://chatgpt.com/backend-api and https://api.anthropic.com with the tokens those CLIs already stored — no extra login, no separate API key. The usage badge also reports a GLM Coding Plan subscription, but deliberately adds only the quota and not a second route, because DSH already serves that plan through pi-ai's own zai-coding-cn route, so the picker gains no duplicate entry.
Install
dsh plugin --profile web add dsh-llm-local-tokenThe npm line from the README; dsh-llm-local-token@1.7.0 resolves its registry repository to this repo. The README also documents an https git URL for installing from source.
Compatibility
Reads credentials from the local CLIs: ~/.codex/auth.json for the openai-codex route (ChatGPT OAuth, shared with the codex CLI) and ~/.claude/.credentials.json or the macOS Keychain item Claude Code-credentials for the anthropic route. A route whose credential is missing is skipped rather than failing boot.
Details
- Repo: tianxia--/dsh-llm-local-token
- Category: Models & Providers
- Stars: 2
- Version: 1.7.0 (npm); MIT
Alternatives
shengbinxu/dsh-llm-latency · ffyuuu/dsh-llm-longcat · btspoony/dsh-llm-fallbacks