edge-sky/dsh-oauth-adapter ↗★ 6

@edge-sky/dsh-oauth-adapter

Web and Desktop OAuth account surface for official DSH authorization flows 适合需要接入OpenAI、GitHub等第三方账户授权的用户。

パッケージ
@edge-sky/dsh-oauth-adapter
互換性
未検証
Harness ピア範囲
>=0.2.0-rc.2 <0.3.0-0
Cordis ピア範囲
>=4.0.4 <5
バージョン
0.1.3-rc.4
ライセンス
MIT
最終更新
2026/10/01

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:edge-sky/dsh-oauth-adapter

ドキュメント

README 全文を読む ↗

dsh-oauth-adapter

npm version npm downloads license

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

This checkout targets DSH 0.2.0-rc.2. Once an adapter release with the DSH 0.2 peer range is published, install that release. Earlier DSH releases require an earlier adapter release.

Install

For DSH 0.2.0-rc.2, after the compatible adapter release is published:

dsh plugin --profile web add @edge-sky/dsh-oauth-adapter

Or for the official desktop, use @edge-sky/dsh-oauth-adapter

For DSH 0.1.2-rc.1 through 0.1.5-rc.1, use an adapter release from the 0.1.3 series. For DSH 0.1.1-rc.2, use @edge-sky/dsh-oauth-adapter@0.1.2-rc.0.

Start DSH:

npx @deepseek-ai/dsh web

image

image

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).

PixPin_2026-09-10_11-08-26

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.

The profile patch mounts an authorization fallback when the host does not provide ctx.authorization.

DSH owns OAuth credentials and login state. This adapter stores model configuration in dsh-oauth-adapter.modelStore; see model migration and recovery.

If this plugins is has helped you, please give a star for me, or create issues if you have any suggestion~