rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:AITabby/dockyard-dsh
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A native account-pool and provider plugin for DeepSeek Harness (dsh).
Developer preview · 插件版本 0.1.21 · macOS 与 Windows 均已验证 · Provider 逻辑全部留在各 provider 模块里
Dockyard DSH 把多个官方 OAuth 授权和官方客户端会话接入 DeepSeek Harness,提供一个共享的账号池、模型目录、额度视图和 provider-native 请求链路。它是 DSH 的原生 bundle/plugin:不需要另起代理网关,也不把 provider 逻辑写进 DSH 核心。
| Provider | 账号来源 | 请求链路 |
|---|---|---|
| Codex | 官方浏览器 OAuth(loopback PKCE),CLI 作为兼容 fallback | 原生 Responses |
| Antigravity | Google 官方浏览器 OAuth,沿用官方客户端身份(免费档位可用);每个账号独立 refresh token | 原生 Gemini SSE |
| Grok | xAI 官方浏览器 OAuth,CLI fallback | 原生流式;额度取官方 credits |
| Claude | 官方浏览器 OAuth,支持带 state 的手动回调地址 |
原生请求适配 |
| Cursor | 官方登录轮询(loginDeepControl + /auth/poll) |
原生请求适配 |
| Command Code | 本地认证文件,或在面板里粘贴 API Key | 官方网关,原生流式 + tool calling |
| AgentRouter | 面板粘贴 sk- Key;服务按客户端白名单放行,插件会声明受认可的 User-Agent |
官方 OpenAI 兼容端点,实时模型目录 |
| Hermes | 本地会话文件,或在面板里粘贴 API Key | 原生流式 |
| OpenRouter Free | 从 DSH 凭据或环境变量发现 API Key | 官方端点,:free 目录动态拉取 |
官方客户端、CLI 或 OAuth 源缺失时,Dockyard 明确返回 unavailable / degraded;不会用硬编码的账号、模型、版本、套餐或额度伪造可用结果。
OpenCode 已重新接入:它的免费档位只认官方客户端身份,因此请求会带上官方 CLI 的标识头(
user-agent: opencode/.../x-opencode-client: cli),与早期版本做法一致。Kilo 仍然移出插件。
| macOS | Windows | |
|---|---|---|
| 浏览器 OAuth(Codex / Antigravity / Grok / Claude / Cursor) | ✅ | ✅ 同一套 loopback 链路 |
| 凭据存储 | macOS Keychain + Swift helper | 宿主 DSH 的 Credentials 服务 |
| CLI fallback | ✅ | ✅ 解析 .cmd shim 并经 %ComSpec% 启动,停止时 taskkill 清理进程树 |
| 本机会话扫描 | ✅ | ❌ 按不可用降级,请改用浏览器 OAuth |
Windows 上如果宿主 DSH 没有 Credentials 服务,插件会明确报错,不会静默丢登录态。
设置 → 插件 → 发现 → 管理索引源…,添加:
https://raw.githubusercontent.com/AITabby/dockyard-dsh/main/market/index.json
在列表里找到 Dockyard DSH 点安装即可。
已有 DSH CLI 和 pnpm 时:
dsh plugin --profile web add github:AITabby/dockyard-dsh
dsh web
默认地址 http://127.0.0.1:3080。仓库已提交构建产物(dist/index.mjs、lib/client.js),安装时不执行 prepare,装完重启 DSH Web 即可。
要固定版本就 pin 到已验证的 commit:
dsh plugin --profile web add github:AITabby/dockyard-dsh#<commit-sha>
pnpm 10+ 的拦截:传递依赖
@google/genai与protobufjs带构建脚本,默认被拦,首次安装可能以ERR_PNPM_IGNORED_BUILDS结束且不会进入 profile 的 bundle 列表。处理方式二选一:
- GUI 安装时按提示点 Allow these scripts and retry;
- 命令行安装时先在 profile 的
pnpm-workspace.yaml写入,再重跑命令:allowBuilds: '@google/genai': true protobufjs: true
git clone https://github.com/AITabby/dockyard-dsh.git
cd dockyard-dsh
npm install
npm run build # 改了 source 或产物过期时才需要
dsh plugin --profile web add .
dsh web
隔离测试、不影响默认 DSH home:
DSH_HOME=/tmp/dockyard-dsh-home dsh plugin --profile web add .
DSH_HOME=/tmp/dockyard-dsh-home dsh web
不想自己装 Node.js / pnpm / DSH 时,Releases 页面提供自带完整运行时的 macOS DMG 和 Windows EXE。注意这些是较早版本的打包产物,可能落后于仓库里的插件版本;需要最新功能请用上面三种方式之一。
/dockyard status
/dockyard scan [provider]
/dockyard add [provider] [candidateId]
/dockyard login <provider>
/dockyard refresh [provider]
/dockyard models <provider>
/dockyard policy <provider> <manual|sticky_session|round_robin|failover|allowance_fullest> [accountId]
/dockyard use <provider> <accountId>
/dockyard remove <provider> <accountId>
/dockyard login <provider> 直接打开官方浏览器授权页。/dockyard scan <provider>,再 /dockyard add <provider>。扫描和新增是两个独立操作,已有账号不会被"新增"静默重复导入。它是目前最需要解释的一个:
agy 二进制里读取并缓存在本地,仓库内不保存任何凭据。DOCKYARD_ANTIGRAVITY_CLIENT_ID / DOCKYARD_ANTIGRAVITY_CLIENT_SECRET,自有 client 优先生效。agy,所以不会触发 macOS 那个"找不到钥匙串"的系统弹窗。unknown/null。SECURITY.md,不要提交 token、OAuth 文件、Keychain 值或含敏感信息的日志。npm install
npm test
npm run build # 重建 host bundle 与 client bundle
npm pack --dry-run
发布包的关键内容:
packages/dsh-plugin/dist/index.mjs # Node/host bundle
packages/dsh-plugin/lib/client.js # 浏览器 client bundle
packages/dsh-plugin/cordis.patch.yml # DSH bundle 层
改动 provider source 后必须重新 npm run build 并一起提交产物。
packages/core/ 模块生命周期、契约、事件、DSH route
packages/account-pool/ 账号发现、选择策略、健康与冷却、credential reference
packages/runtime/ 共享的 Dockyard runtime
packages/dsh-bridge/ DSH 注入桥与 LLM adapter
packages/dsh-plugin/ DSH bundle、命令、面板 UI
packages/vault/ macOS Keychain 后端
modules/provider-*/ 各 provider 自己的 OAuth、目录、额度和 native transport
tests/ 安全、生命周期、provider 与 runtime 测试
核心原则:provider 特定逻辑留在 provider module,账号选择留在 runtime,host 只消费稳定契约。 不要在 host 里加 provider 特判,也不要把动态 provider 数据写成常量。
Dockyard DSH connects official OAuth authorizations and official client sessions to one shared account pool, model catalog, quota view, and provider-native request path inside DeepSeek Harness. It is a native DSH bundle/plugin: no side-car gateway, and no provider logic pushed into the DSH core.
| Provider | Account source | Transport |
|---|---|---|
| Codex | Official browser OAuth (loopback PKCE); CLI as compatibility fallback | Native Responses |
| Antigravity | Google browser OAuth using the official client identity (so the free tier works); one refresh token per account | Native Gemini SSE |
| Grok | xAI browser OAuth, CLI fallback | Native streaming; quota from official credits |
| Claude | Official browser OAuth, plus state-bound manual callback entry | Native request adapter |
| Cursor | Official login polling (loginDeepControl + /auth/poll) |
Native request adapter |
| Command Code | Local auth file, or paste an API key in the panel | Official gateway, streaming with tool calling |
| AgentRouter | Paste an sk- key; the service allows only known clients, so the plugin sends an accepted User-Agent |
Official OpenAI-compatible endpoint, live model catalog |
| Hermes | Local session file, or paste an API key in the panel | Native streaming |
| OpenRouter Free | Discovers an API key from DSH credentials or the environment | Official endpoint, live :free catalog |
When an official client, CLI, or OAuth source is missing, Dockyard reports an explicit unavailable / degraded state. It never invents accounts, models, versions, plans, or quota values.
OpenCode is registered again: its free tier is granted to the official client identity only, so requests carry the official CLI's identity headers (
user-agent: opencode/...,x-opencode-client: cli), same as early builds did. Kilo stays removed.
| macOS | Windows | |
|---|---|---|
| Browser OAuth (Codex / Antigravity / Grok / Claude / Cursor) | ✅ | ✅ same loopback flow |
| Credential storage | macOS Keychain + Swift helper | Host DSH Credentials service |
| CLI fallback | ✅ | ✅ resolves .cmd shims through %ComSpec%, stops the tree with taskkill |
| Local session scanning | ✅ | ❌ degrades to unavailable; use browser OAuth |
On Windows, a host without the Credentials service produces a clear error rather than silently dropping the login.
Settings → Plugins → Discover → Manage index sources…, add:
https://raw.githubusercontent.com/AITabby/dockyard-dsh/main/market/index.json
Then find Dockyard DSH and install.
With the DSH CLI and pnpm already installed:
dsh plugin --profile web add github:AITabby/dockyard-dsh
dsh web
The default URL is http://127.0.0.1:3080. The runnable bundles are committed, so nothing is built at install time; restart DSH Web afterwards.
Pin a verified commit for a reproducible install:
dsh plugin --profile web add github:AITabby/dockyard-dsh#<commit-sha>
pnpm 10+ blocks build scripts. The transitive dependencies
@google/genaiandprotobufjsship them, so a first install can end withERR_PNPM_IGNORED_BUILDSwithout registering the bundle. Either click Allow these scripts and retry in the GUI, or add them to the profile'spnpm-workspace.yamlfirst:allowBuilds: '@google/genai': true protobufjs: true
git clone https://github.com/AITabby/dockyard-dsh.git
cd dockyard-dsh
npm install
npm run build # only after source or bundle changes
dsh plugin --profile web add .
dsh web
Isolated install that leaves your default DSH home alone:
DSH_HOME=/tmp/dockyard-dsh-home dsh plugin --profile web add .
DSH_HOME=/tmp/dockyard-dsh-home dsh web
Releases carries a self-contained macOS DMG and a Windows EXE. Those are older packaging builds and may lag the plugin version in this repository; use one of the three options above for the current code.
/dockyard status
/dockyard scan [provider]
/dockyard add [provider] [candidateId]
/dockyard login <provider>
/dockyard refresh [provider]
/dockyard models <provider>
/dockyard policy <provider> <manual|sticky_session|round_robin|failover|allowance_fullest> [accountId]
/dockyard use <provider> <accountId>
/dockyard remove <provider> <accountId>
/dockyard login <provider> opens the official browser authorization page./dockyard scan <provider> then /dockyard add <provider>. Scanning and adding are separate, so an existing account is never silently re-imported.agy binary installed on the machine and cached locally. The repository stores no credentials.DOCKYARD_ANTIGRAVITY_CLIENT_ID / DOCKYARD_ANTIGRAVITY_CLIENT_SECRET override it with your own client.agy, which is why the macOS "keychain not found" dialog no longer appears.unknown/null.SECURITY.md before filing issues. Never commit tokens, OAuth files, Keychain values, or sensitive logs.npm install
npm test
npm run build # rebuild the host and client bundles
npm pack --dry-run
Distributable entry points:
packages/dsh-plugin/dist/index.mjs # Node/host bundle
packages/dsh-plugin/lib/client.js # browser client bundle
packages/dsh-plugin/cordis.patch.yml # DSH bundle layer
After changing provider source, run npm run build and commit the refreshed artifacts with the change.
packages/core/ lifecycle, contracts, events, DSH routes
packages/account-pool/ account discovery, selection policies, health and cooldown, references
packages/runtime/ the shared Dockyard runtime
packages/dsh-bridge/ DSH injection bridge and LLM adapter
packages/dsh-plugin/ DSH bundle, commands, and the panel UI
packages/vault/ macOS Keychain backend
modules/provider-*/ provider OAuth, catalog, quota, and native transport
tests/ security, lifecycle, provider, and runtime tests
The rule is simple: provider-specific logic stays in provider modules, account selection stays in the runtime, and hosts consume stable contracts. Do not add provider-specific branches to a host or hard-code dynamic provider data.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。