返回目录
其他 插件

dsh-oauth-adapter

edge-sky/dsh-oauth-adapter

An OAuth adapter for DSH

Stars
6
Forks
0
Issues
0
更新
8 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:edge-sky/dsh-oauth-adapter

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-oauth-adapter

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

dsh-oauth-adapter>= v0.1.3-rc.0 has been adapted for DSHv0.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

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

or

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

For DSH0.1.1-rc.2

dsh plugin --profile web add @edge-sky/dsh-oauth-adapter@v0.1.2-rc.0

or

npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter@v0.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.

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~

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类其他
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。