插件目录 / Developer / dsh-oauth-api
dsh-oauth-api
未验证 hahaha-taotao
功能简介
DeepSeek Harness(dsh)树外OAuth插件,支持Grok/xAI、Codex、Claude Code。社区插件,非官方。
未验证 — 尚未实测
DeepSeek Harness(dsh)树外OAuth插件,支持Grok/xAI、Codex、Claude Code。社区插件,非官方。 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-oauth-api
Out-of-tree DeepSeek Harness plugin for third-party OAuth login. It is a community plugin, not an official DeepSeek product and not an upstream PR.
After install, Settings 锟斤拷 OAuth 锟斤拷录 shows one card per provider. Successful login does not change the current default model 锟斤拷 pick the provider in the official model picker.
Providers
| Settings card | Model picker group | Auth | Inference |
|---|---|---|---|
| Grok / xAI | xai-oauth |
Device code (auth.x.ai) |
https://api.x.ai/v1/responses |
| Codex / ChatGPT | codex-oauth |
Device code (auth.openai.com/codex/device) |
https://chatgpt.com/backend-api/codex |
| Claude Code | claude-oauth |
PKCE: open authorize URL, paste code#state |
https://api.anthropic.com/v1/messages |
| Kimi Code | kimi-oauth |
Device code (auth.kimi.com) |
https://api.kimi.com/coding/v1 |
Install
git clone https://github.com/hahaha-taotao/dsh-oauth-api.git
cd dsh-oauth-api
pnpm install
pnpm build
dsh plugin --profile web add .
Confirm the Cordis rows:
dsh --profile web --dump-config
You should see dsh-oauth-host and dsh-oauth-client.
Login
- Start the UI:
dsh web - Open Settings 锟斤拷 OAuth 锟斤拷录
- Click 锟斤拷录 on a provider card
- Finish the browser step (device code, or paste Claude锟斤拷s
code#state) - Select the matching group in the model picker (
xai-oauth,codex-oauth,claude-oauth, orkimi-oauth)
Grok tokens need the api:access scope. If inference says the scope is missing, log in again.
Token store
Tokens live only in this plugin锟斤拷s store:
$DSH_HOME/oauth/xai.json$DSH_HOME/oauth/codex.json$DSH_HOME/oauth/claude.json$DSH_HOME/oauth/kimi.json
Default $DSH_HOME is ~/.dsh.
Develop
pnpm install
pnpm test
pnpm run typecheck
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-oauth-api」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:hahaha-taotao/dsh-oauth-api Headless(CLI)profile:
dsh plugin --profile headless add github:hahaha-taotao/dsh-oauth-api 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。
备注:验证: install-fail (0.1.0-rc.6) 浏览全部待验证失败 →
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。