dsh-oauth-adapter

August 30, 2026 · View on GitHub

English | 中文

An OAuth account page for the DSH Web profile. It supports:

Providerpi-ai sign-in path
OpenAI CodexBrowser callback or device code
GitHub CopilotGitHub or GitHub Enterprise device code
AnthropicBrowser callback with manual code/redirect fallback
Kimi For CodingDevice code
OpenRouterBrowser PKCE callback
xAIDevice 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
image image

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~