dsh-anthropic-membership
編輯精選維護狀態: 活躍antonio-mastropaolo/dsh-anthropic-membership
無需 API key,使用 Claude Pro/Max 會員登入 DeepSeek Harness。外掛將 Anthropic 圖片限制為 2000px,併為 1M 上下文精簡 /compact 請求。
$ dsh plugin add dsh-anthropic-membership2
星數
0
Fork
JavaScript
語言
MIT
授權條款
2026-09-15
建立於
2026-09-16
最近推送
README
dsh-anthropic-membership
DeepSeek Harness plugin: Sign in with Claude Pro/Max. Uses the same Anthropic membership OAuth grant Claude Code uses (isSubscription: true). No Anthropic API key.
It also unblocks two Anthropic-specific lockups that otherwise freeze a long session:
- Many-image 2000px cap — DSH can store request images with a long edge of 2048px. Anthropic rejects many-image requests above 2000px, and retries keep sending the same history. This plugin downscales request images to a 2000px long edge.
/compactover a 1M window — when the live prompt is already over the model cap, DSH's summarizer replays that same prompt and fails withCompaction could not produce a useful summary. This plugin slims compaction calls (drop images and reasoning, truncate huge tool text) so/compactcan land.
Install
Requires the dsh CLI.
dsh plugin --profile web add github:antonio-mastropaolo/dsh-anthropic-membership
From a local checkout:
git clone https://github.com/antonio-mastropaolo/dsh-anthropic-membership.git
dsh plugin --profile web add file:./dsh-anthropic-membership
Restart dsh web. Open Settings → Models. On the Anthropic card: Sign in with Claude Pro/Max. Then pick an anthropic / claude-* model.
A compact chip on the main composer dock shows Claude · 5h N% · wk N% · N msgs. The Anthropic card shows plan-window % (5-hour and weekly) and DSH message counts for that window. It does not show remaining messages, tokens, or dollars. Usage % is account-wide (every Claude app); message counts are DSH only.
If the UI is down:
node login.mjs
node logout.mjs
node usage.mjs
What it writes
- Settings:
llm-pi-ai.providers.anthropic(noapiKeyEnv) in~/.dsh/settings.yaml, or$DSH_SETTINGSif set. If you launch DSH from Ollama and~/.ollama/launch/dsh/settings.yamlexists, that file is used instead. - Grant:
llm-pi-ai/anthropicin~/.dsh/.credentials.yaml(mode 0600). Never logged.
Control API
Loopback only, 127.0.0.1:8185 (override with DSH_MEMBERSHIP_PORT; the Settings button expects 8185).
| Method | Path | Notes |
|---|---|---|
| GET | /healthz |
{ ok: true } |
| GET | /status |
{ signedIn, expiresAt, imageCap, compactionSlim } — Origin must be the DSH UI if Origin is sent |
| POST | /login /logout |
Requires Origin: http://127.0.0.1:3080 (or localhost) and header x-dsh-membership: 1 |
CORS does not reflect arbitrary Origin. A missing CSRF header is 403. /login is 409 if a login is already in flight.
Tests
npm test
Needs a DSH install on disk so sharp resolves (or set DSH_NODE_MODULES to that node_modules directory).
License
MIT
macOS app window (Helixboard-style)
/Applications/DSH v1.app opens DeepSeek Harness in a chromeless Chrome --app window (same pattern as Helixcode Dashboard v1). It starts dsh web if needed and uses the current launch token. Drag it to the Dock for one click.
The composer dock shows Claude 5h/weekly %, a Codex slot (lights up when an openai-codex grant exists), and a Full access switch (sets permission.defaultPreset and /permission danger-full-access on the live session).
更多「整合與分享」外掛
dsh-notification
作者 omdsh-dev
DeepSeek Harness 桌面通知外掛,任務完成時提醒,可按結果與關鍵詞規則控制。
dsh-open-in-vscode
作者 omdsh-dev
從 DSH Web 介面直接以 VS Code 開啟工作區目錄。
fn-os-apps
作者 tnnevol
飛牛 fnOS 應用 Monorepo
dsh-lark-bot
作者 plutokeating
DeepSeek Harness (dsh) 接入飛書/Lark bot,掃碼即用:流式卡片、專案工作區、並行任務、多角色 Agent、跨會話通知、對話內模型/金鑰管理與安全網守護(dsh 崩潰後飛書仍可自救)。A scan-to-connect bridge bot connecting DeepSeek Harness (dsh) into Feishu/Lark: streaming cards, workspaces, parallel tasks, multi-role agents, cross-session notify, in-chat model/key management, and a safety-net guardian.
