tianxia--/dsh-llm-local-token

tianxia--★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

Stop pasting API keys into DeepSeek Harness — reuse the OAuth tokens your local Codex CLI and Claude Code already hold as model routes, with subscription usage built in.

README 摘要

dsh-llm-local-token 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 Endpoint openai-codex /.codex/auth.json (ChatGPT OAuth, shared with the codex CLI) https://chatgpt.com/backend-api anthropic /.claude/.credentials.json , else the macOS Keychain item Claude Code-credentials https://api.anthropic.com 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. Both subscriptions as routes in the model picker Subscription usage, read from provider rate-limit headers Why it exists DSH resolves a provider's key through its credential seam, which expects an API key. Personal Codex / Claude subscriptions are OAuth-only, so the keys simply do not exist. This plugin resolves the token per request from the file the CLI maintains, refreshes it when it is close to expiry, and hands it to the pi-ai engine that DSH already ships. Install Then restart dsh — that is the whole inst…

在 GitHub 查看完整 README →
终端/TUIanthropicclaude-codecodexcodex-clicordisdeepseek-harnessdshdsh-plugin

分类