dsh-oauth-adapter
August 30, 2026 · View on GitHub
English | 中文
An OAuth account page for the DSH Web profile. It supports:
| Provider | pi-ai sign-in path |
|---|---|
| OpenAI Codex | Browser callback or device code |
| GitHub Copilot | GitHub or GitHub Enterprise device code |
| Anthropic | Browser callback with manual code/redirect fallback |
| Kimi For Coding | Device code |
| OpenRouter | Browser PKCE callback |
| xAI | Device code |
The adapter has only been tested with DSH 0.1.1-rc.2; compatibility with future versions is need to test.
Install
dsh plugin --profile web add @edge-sky/dsh-oauth-adapter
or
npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter
Start DSH:
npx @deepseek-ai/dsh web
How it works
DSH integrates pi-ai through the @deepseek-ai/dsh-llm-pi-ai adapter, but does not provide an OAuth entry point. @edge-sky/dsh-oauth-adapter exposes pi-ai's existing provider login flows through the DSH Authorization Service. Browser links, device codes, text and secret input, method selection, cancellation, and withdrawn prompts all use the same provider-neutral transport.
Because DSH does not currently mount the ctx.authorization service, this plugin also mounts it manually.
The plugin itself does not manage OAuth credentials or maintain login state. Maybe DSH support this sign-in method in the future; but for now, this plugin lets you enjoy it.
If this plugins is has helped you, please give a star for me, or create issues if you have any suggestion~