DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Claude Auth — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

@djdowbnac/dsh-claude-auth

Claude Auth

用于 DeepSeek Harness (dsh) 的 LLM 提供商插件:通过您的 Claude Code 订阅(claude.ai OAuth 凭据)流式传输 Claude(Sonnet/Haiku/Opus),无需 Anthropic API 密钥。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:ddowbnac/dsh-claude-auth-proxy#44bfc7d2999f152331c467ae57630841be8ff250
README兼容性版本

兼容性与来源证明

Claude Auth 以 @djdowbnac/dsh-claude-auth 发布,当前版本为 0.1.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/14

版本

0.1.3stable
2026/9/14
0.1.2stable
2026/9/12
0.1.1stable
2026/9/12

相关插件

正在加载相关插件…

最新版
0.1.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/14
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

@djdowbnac/dsh-claude-auth

dsh model provider that streams Claude through your Claude Code subscription. No Anthropic API key.

Registers a claude-subscription provider on ctx.llm. On the first request the plugin queries GET /v1/models with your OAuth token and serves every model your account can use, with its real context window and output cap. The catalog updates itself when Anthropic ships or retires models, so there is no static model list to maintain.

Requests go to api.anthropic.com/v1/messages with the Claude Code first-party headers. Credentials come from ~/.claude/.credentials.json, the same file the claude CLI writes.

Anthropic reserves subscription tokens for official clients. This is a community workaround, same class as opencode-claude-auth. It draws from your plan limits, not API billing, and may stop working when Anthropic changes its OAuth surface.

How refresh works

The plugin keeps an access token in memory for 30 seconds and only calls the token endpoint when the token is within 60 seconds of expiry, or once per hour as a background pre-refresh. A cross-process lock serializes concurrent instances: the loser waits up to 15 seconds and adopts the winner's token instead of refreshing again. Anthropic rotates refresh tokens on single use, so double refreshes were what broke tokens before.

Install

Prerequisites: dsh on the 0.1.5-rc line, bun, and a one-time claude login.

dsh plugin --profile <name> add @djdowbnac/dsh-claude-auth

That is the whole install. The command registers the package in the profile's dsh.profile.bundles, and dsh mounts the plugin's cordis.patch.yml as an automatic bundle layer on every boot. No manual patch entry, no profile edits.

For a local checkout, add . from inside the checkout directory. Restart dsh and pick a claude-subscription model.

Settings

Namespace claude-auth:

KeyDefaultMeaning
credentialsPath'' (→ ~/.claude/.credentials.json)Override the credentials file path.
disabledModels[]Model ids to stop serving.
streamIdleTimeoutMs600000Abort the stream when SSE goes quiet this long.
requestTimeoutMs900000Per-request budget.

Changes apply on the next request. A missing or invalid credentials file shows as a diagnostic on the provider entry, and requests fail with a typed error.

Web settings

The Models page in the dsh web UI shows a green credential dot next to the provider when your Claude subscription credentials are valid. The plugin mirrors the current access token into the dsh credential store under the CLAUDE_SUBSCRIPTION_API_KEY reference, which is the same reference the page checks. When the token expires or the credentials file disappears, the dot goes away and the provider row shows a diagnostic.

The provider editor card is read-only by design in the dsh web UI. The page renders curated field layouts only for the two first-party provider namespaces (llm-deepseek, llm-pi-ai); every other namespace falls back to the "edit settings.yaml directly" hint. To change streamIdleTimeoutMs or disabledModels, edit the claude-auth section in ~/.dsh/settings.yaml.

Reasoning effort is not a provider setting. Pick it in the model selection popup: the effort selector appears for every model that supports adaptive thinking (all current Opus, Sonnet, Fable, and Haiku 4.5+ models). The chosen effort is sent as output_config.effort on the wire request.

Develop

bun test        # 72 tests, all offline
bun run build
bun run smoke   # one live request, costs a few tokens
FileWhat it does
src/index.tsPlugin entry: config schema, provider registration, settings, disposal.
src/adapter.tsLlmAdapter: headers, fetch, SSE consumption, error mapping, model discovery.
src/serialize.tsHarness Message[] to Anthropic wire request.
src/translate.tsAnthropic SSE to harness StreamChunks.
src/sse.tsSSE framing parser.
src/auth.tsCredential read, refresh, write-back, backoff, cross-process lock.
src/model-config.tsBeta headers, effort support, catalog fallback.

Unit tests inject fetchImpl, so they run offline. The smoke script is the only live path.

Limitations

  • Text only. Image and file content blocks return UNSUPPORTED_CONTENT.
  • One credentials file per provider route. Multi-account is not wired.
  • If the models endpoint is unreachable, the plugin falls back to a static catalog of the current Claude 5 lineup.

References

  • deepseek-ai/deepseek-harness: dsh-llm adapter contract, dsh-settings, dsh-timeout.
  • griffinmartin/opencode-claude-auth: upstream reference for the OAuth surface and refresh strategy.
  • Claude model docs: current lineup and model ids.

License

MIT