Bundle
@edge-sky/dsh-oauth-adapter
Web OAuth account surface for official DSH authorization flows
- Source
- edge-sky
- stars
- 4 stars
- License
- MIT
- Updated
- Updated 4 hours ago
Readme
# dsh-oauth-adapter English | [中文](README.zh.md) 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 | dsh-oauth-adapter`>= v0.1.3-rc.0` has been adapted for DSH`v0.1.2-rc.1`; for earlier versions, please use dsh-oauth-adapter `v0.1.2-rc.0`. ## Install For DSH`~v0.1.2-rc.1` ```sh dsh plugin --profile web add @edge-sky/dsh-oauth-adapter ``` or ```sh npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter ``` ---- For DSH`0.1.1-rc.2` ```sh dsh plugin --profile web add @edge-sky/dsh-oauth-adapter@v0.1.2-rc.0 ``` or ```sh npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter@v0.1.2-rc.0 ``` Start DSH: ```sh npx @deepseek-ai/dsh web ``` <img width="2940" height="1766" alt="image" src="https://github.com/user-attachments/assets/cbd98703-ee7a-491b-aa2f-02e42b99f6b9" /> <img width="2270" height="1524" alt="image" src="https://github.com/user-attachments/assets/e0cc6591-73a4-4e87-9ef6-68950126b290" /> For models not explicitly listed as supported by the built-in pi-ai, you can add them manually (availability needs to be verified on your own). <img width="774" height="724" alt="PixPin_2026-09-10_11-08-26" src="https://github.com/user-attachments/assets/e3adc9fc-36e6-414f-ae5b-1748ff5e8f70" /> ## 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~
Install
dsh plugin --profile web add github:edge-sky/dsh-oauth-adapter
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install edge-sky-dsh-oauth-adapter from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.