dsh-oauth-api
hahaha-taotao/dsh-oauth-api
DeepSeek Harness (dsh) out-of-tree OAuth plugin for Grok/xAI, Codex, and Claude Code. Community plugin, not official.
1
stars
0
forks
MIT
License
2026-08-14
Created
2026-08-14
Last push
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
More in Security & Auth
dsh-agy
by chaos-03x
Google Antigravity (agy) OAuth auth + model access plugin for DeepSeek Harness: multi-account pool, 429 rotation, device fingerprinting, CLI and web login.
deepseek-harness-auth
by taichuy
DeepSeek Harness auth插件
helm-d
by adwmc
DeepSeek Harness 破甲一体化安全分析插件:Android · Web · Native · Protocol · Malware · AI-Security 全领域聚合(9 bundle + 1 preset)
dsh-openai-oauth
by dgpisces
DeepSeek Harness provider for GPT models using managed ChatGPT OAuth through Codex app-server
