Stormycry-cryp/dsh-AuthInOne 预览 preview

Stormycry-cryp/dsh-AuthInOne

自包含DeepSeek Harness(DSH)插件,用于Provider/Auth登录、模型切换、图片回退、令牌/成本分析及同端口Web重启。有用的话,点个星支持一下。

Project Overview项目介绍

dsh-AuthInOne is a native plugin built exclusively for DeepSeek Harness (DSH). It adds support for third-party LLM provider authorization, custom OpenAI-compatible provider configuration, model switching, optional vision fallback for text-only models, token usage analytics, and cost tracking, all integrated directly into DSH’s native Models and Usage settings panels. To install the plugin, users can run the one-line command pnpm dlx github:Stormycry-cryp/dsh-AuthInOne#v0.2.0-alpha.4 install --profile web in their terminal, which handles all setup automatically. This installation process validates the running DSH host, uses the official DSH plugin CLI to add the plugin, and does not require patching DSH core, manual profile edits, or a separate web instance.

This plugin is designed for DSH users who want to add third-party LLM providers like OpenAI Codex and Kimi Code to their DSH instance, or who need to track token usage and associated costs across different models. After installation, users can navigate to DSH’s Settings > Models or Settings > Usage pages to configure new providers, switch default models for future sessions, and view aggregated usage and cost data. OpenAI Codex uses browser OAuth with PKCE and a loopback callback, while Kimi Code uses a device flow that only requires user sign-in and confirmation. Seven providers including xAI Grok, Anthropic, and GitHub Copilot are marked as experimental compatibility, so users should expect potential instability.

The plugin is released under the open-source MIT license, with all third-party dependencies under permissive open-source licenses. The only runtime dependency is Zod, which is also MIT licensed, and build dependencies are bundled so users do not need to install them separately into their DSH profile. For local development, users need Node.js version 22.19 or higher, and can install dependencies with pnpm install --frozen-lockfile to run type checks, tests, and builds. All authorization credentials remain stored locally on the user’s DSH host, and the plugin never reads credentials from other products like OpenCodex. This project is community-maintained and is not affiliated with DeepSeek or OpenAI.

dsh-AuthInOne 是专为 DeepSeek Harness(DSH)开发的原生插件,核心功能包括多 LLM 提供商的登录认证、自定义 OpenAI 兼容提供商配置、模型切换、文本-only 模型可选视觉回退、令牌用量统计和成本追踪,所有功能集成进 DSH 原生的「模型」和「用量」设置面板。该插件当前处于 Alpha 测试版本,适配官方 DSH 指定提交版本,支持通过官方 DSH 插件 CLI 一键安装,无需修改 DSH 核心或手动编辑配置文件。

该插件适合需要在 DSH 中接入 OpenAI Codex、Kimi Code 等第三方 LLM 提供商,或是需要管理自定义 API 密钥、追踪不同模型调用成本的 DSH 用户。部分提供商(如 xAI Grok、Anthropic 等)标注为实验性兼容,用户可按需选择使用。使用时只需执行一键安装命令,安装完成后打开 DSH 设置面板即可开始配置,整个流程无需额外手动操作。

该插件采用 MIT 许可证开源,运行依赖仅为 Zod,开发依赖 Node.js 版本 ^22.19 或 >=24,使用 pnpm 进行包管理,本地开发可通过锁定的依赖文件完成安装、类型检查和测试。所有认证凭证均存储在 DSH 本地,插件不会读取其他产品的凭证信息,当前有七个提供商标注为实验性兼容,不保证所有集成稳定可用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Stormycry-cryp/dsh-AuthInOne

把 Stormycry-cryp/dsh-AuthInOne 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-AuthInOne

English | 简体中文

dsh-AuthInOne cover

dsh-AuthInOne is a DeepSeek Harness plugin for Provider login, API and custom OpenAI-compatible Provider setup, model switching, optional vision fallback for text-only models, token usage analytics, and cost tracking inside DSH's native Models and Usage settings.

OpenAI Codex uses browser OAuth with state, S256 PKCE, and a loopback callback. Kimi Code opens the Provider's complete authorization link backed by an RFC 8628 device flow; the link carries the short code, so the user normally only signs in and confirms. xAI Grok, Anthropic, GitHub Copilot, Command Code, Cursor, Google Antigravity, and Kiro are explicitly marked Experimental compatibility. Installed-Host validation reached each Provider's authorization boundary and stopped before user consent; mock/fixture tests cover exchange or polling, refresh rotation, denial, timeout, cancellation, logout, route activation, and secret redaction.

Alpha v0.2.0-alpha.4 · exact compatibility target: official DSH 47f9438 · the self-contained bootstrap uses the official DSH plugin CLI and returns Web on its original port · release notes · MIT · community-maintained and not a DeepSeek or OpenAI product.

pnpm dlx github:Stormycry-cryp/dsh-AuthInOne#v0.2.0-alpha.4 install --profile web

The command is owned by this package. It validates the running standard DSH Host, calls the official dsh plugin add path, then replaces that Host on the same URL. It does not require a patched DSH core, a manual profile edit, a second Web instance, or a temporary port. See Install, upgrade, and remove for source-checkout and non-default-port forms.

If AuthInOne is useful to you, a Star on GitHub is a welcome way to support the project.

Open DSH, then go to Settings → Models or Settings → Usage. The browser receives aggregated usage, redacted status, an authorization URL, and where required a user code. OAuth verifier, authorization code, device code, access token, and refresh token stay on the Host; the plugin never imports ~/.codex/auth.json, OpenCodex state, cookies, browser storage, OTPs, or another product's credentials.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-plugin-cc 下一个 Next tokenbank →