dsh-llm-local-token
v1.3.2 · 0 天前发布
DeepSeek Harness plugin: serve LLM calls with the OAuth tokens your local Codex CLI and Claude Code already hold, instead of a separately configured API key.
README
dsh-llm-local-token
一个 DeepSeek Harness 插件:让 DSH 的 LLM 请求
直接复用你本机 CLI 已有的 OAuth 登录态,不需要另配 API key,也不用重新登录。只要你登录过
Codex CLI 或 Claude Code,这些订阅就会变成 DSH 里可选的模型路由。
| Provider 路由 | 凭据来源 | 端点 |
| --- | --- | --- |
| openai-codex | ~/.codex/auth.json(ChatGPT OAuth,与 codex CLI 共用) | https://chatgpt.com/backend-api |
| anthropic | ~/.claude/.credentials.json,否则读 macOS Keychain 的 Claude Code-credentials | https://api.anthropic.com |
插件加载后模型直接出现在模型选择器里。缺少凭据的路由会被跳过,不会导致启动失败。
<table>
<tr>
<td align="center" width="50%"><sub>两份订阅都成了模型选择器里的路由</sub><br><img src="https://raw.githubusercontent.com/tianxia--/dsh-llm-local-token/main/docs/model-routes.png" alt="DSH 模型选择器中的 OpenAI Codex (local token) 与 Claude (local token) 分组" width="
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-llm-local-token
- Repo
- git+https://github.com/tianxia--/dsh-llm-local-token.git
- Engines
{"node":">=22.13.0"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["slots","locale"],"platform":"web"}}