apcamargo/dsh-claude-subscription: Use Claude Subscription Account in DSH

Introduction

DSH’s positioning is “everything is a plugin”: model access, authentication, commands, and the SDK layer are all pluggable modules. External models are usually brought in via API Key + dsh-llm dependencies. However, if you already have a Claude subscription (pay-as-you-subscribe rather than pay-per-token), managing an extra set of API keys and billing quotas adds a layer of maintenance cost. dsh-claude-subscription is a plugin designed to address this point: it integrates Claude subscription accounts into DeepSeek Harness, using OAuth authorization links for login instead of entering tokens.

This plugin is maintained by apcamargo. The README explicitly states it is an unofficial project: there is no affiliation, endorsement, or support relationship with Anthropic or DeepSeek Harness, and no warranties are provided. The star count displays as 0 on the community directory page, version is 0.1.0, and the license is MIT (all sourced from the directory page and the repository’s package.json). Below is an introduction to its capabilities and usage, not an expanded marketing piece.

What Problems Does It Solve

In a nutshell: use Claude models within DSH under a Claude subscription identity, with credentials managed by the plugin rather than manually configured API keys.

Comparison with existing approaches:

  • The official API integration method is “fill in Key + pay per token,” where the Key is usually stored in local configuration or a secrets manager.
  • This plugin changes it to “authorized login + subscription quota,” eliminating the need to maintain API keys and pay-as-you-go bills. The trade-off is an extra OAuth credential that needs refreshing, and granting the current DSH process permission to access that subscription.

Core Features

Verified capabilities, all from the README:

  1. Initiate OAuth authorization via /claude-login. The browser opens the authorization link; after approval, the plugin accesses your subscription.
  2. Supports multiple accounts: executing /claude-login multiple times adds accounts. Each account is a separate group in the model selector, labeled by the associated email.
  3. Account and quota queries: /claude-account shows the currently logged-in account and token expiration time; /claude-usage shows quota usage and reset times (README mentions 5 hours and two weekly windows).
  4. Logout: /claude-logout (specify account or --all) deletes stored credentials.
  5. Usage indicator: When a model under a subscription account is selected, a Claude marker appears on the left side of the message input box. The fill color decreases as the main quota is consumed; clicking opens the details panel.
  6. Settings page integration: A new “Claude subscription” section is added to the Models page, listing logged-in accounts, the model directory, and allowing model lists to be edited per account.

Note the text in the README “Whichever account is signed in at claude.ai in your browser is the one that gets added”: the account authorized is the one currently logged into claude.ai in your browser, not the account specified by command-line arguments.

Installation and Activation

The installation command provided in the README:

dsh plugin --profile web add https://github.com/apcamargo/dsh-claude-subscription.git

This command uses the profile configuration. --profile web is the exact format in the repository documentation, so do not try to piece together dsh plugin add github:owner/repo or similar forms based on the plugin name.

After installation, log in in any session:

/claude-login

It prints an authorization link and attempts to open it in the browser; simply approve it in the browser. If installed without --profile web or if it is not active in the web profile, client-related interfaces (usage indicator, Models page section) will not take effect—this part is not expanded in the README. If you encounter this, reinstall using the command above or confirm the profile.

Typical Usage

  1. First login: Execute /claude-login and approve authorization in the browser.
  2. Check status: /claude-account shows account and token expiration; /claude-usage shows quota and reset times.
  3. Multiple accounts: Switch to the account you want to log in (log in to claude.ai in the browser first, or open the authorization link in an incognito window), then execute /claude-login again. The model selector will add another group of accounts labeled by email.
  4. Logout: /claude-logout <account> deletes a single one, /claude-logout --all deletes all.

Development-related commands (only useful when source code changes):

npm install
npm test
npm run verify
npm run build:client
npm run images

npm test rebuilds lib/client.js and runs unit tests; npm run verify mounts the plugin via a real cordis runtime; after changing client-app.js or client-models.js, use npm run build:client to regenerate; use npm run images to re-render the images in the README.

Applicable Scenarios and Notes

Suitable for: people who have a Claude subscription and want to use it directly via subscription quotas in DSH without maintaining API keys and pay-as-you-go bills; and those who need to manage multiple subscription accounts in a single interface.

Not suitable / Requires caution:

  • The plugin runs with the permissions of the current DSH process. After authorization, it can access claude.ai using your subscription identity. Before installing, read the source code and confirm patch content like cordis.patch.yml to decide whether to authorize.
  • It is a third-party unofficial implementation. The README explicitly states there are no warranties, support, or liability. Whether Anthropic’s subscription terms allow this automated usage is something you need to confirm yourself; this plugin does not make a judgment.
  • At version 0.1.0, the interface is small, the star count is low, and there is no upstream support channel if problems arise. It is uncertain whether Issues will receive a response.

Conclusion

The value of this plugin is very focused: it integrates Claude subscription accounts into DSH via OAuth, while additionally providing multi-account management, quota queries, and UI-level usage indicators, reducing transactional work like key management. If you already have a subscription and are aware of the risks of third-party integration, you can install it using the command above and try with one account.

Directory page: https://www.skillhub.cn/plugins/apcamargo/dsh-claude-subscription
Repository: https://github.com/apcamargo/dsh-claude-subscription

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye