edge-sky/dsh-oauth-adapter
Adds the OAuth account page DSH's pi-ai adapter never had, for Codex, Copilot, Anthropic, Kimi, OpenRouter and xAI.
Fills the gap the README states plainly: DSH integrates pi-ai through @deepseek-ai/dsh-llm-pi-ai but ships no OAuth entry point, so pi-ai's provider login flows have nowhere to land. This exposes them as an account page in the Web profile — one page per provider family, driven by the flows those providers actually implement rather than a single uniform form. The per-version mapping in the notes above is the detail that saves an hour: the plugin's own peer range moved forward while the adapter kept publishing releases for older harnesses, so the right package version depends on the DSH build you are on.
Install
dsh plugin --profile web add @edge-sky/dsh-oauth-adapterThe npm line. The README is unusually explicit about which release to take: this one requires DSH >=0.2.0-rc.2, the 0.1.3 series covers DSH 0.1.2-rc.1 through 0.1.5-rc.1, and DSH 0.1.1-rc.2 needs @edge-sky/dsh-oauth-adapter@0.1.2-rc.0 — so check your harness version before installing rather than after. The profile patch also mounts an authorization fallback when the host does not provide ctx.authorization, which is what lets the login flows work on builds that predate the native contract.
Compatibility
DSH peer range >=0.2.0-rc.2 with no upper bound; the development dependencies stay pinned to 0.2.0-rc.2 so the minimum supported version is the one actually tested. Sign-in paths differ per provider by necessity: OpenAI Codex takes a browser callback or a device code, GitHub Copilot uses GitHub or GitHub Enterprise device code, Anthropic uses a browser callback with a manual code/redirect fallback, Kimi For Coding and xAI use device code, and OpenRouter uses a browser PKCE callback. Model configuration is stored in dsh-oauth-adapter.modelStore; the OAuth credentials and login state stay owned by DSH, not by this plugin.
Details
- Repo: edge-sky/dsh-oauth-adapter
- Category: Models & Providers
- Stars: 7
- Version: 0.1.3-rc.5 (npm)
Alternatives
FMDD61/dsh-oauth-copilot · deskomor/dsh-sub-providers · lcestou/dsh-oh-my-claude