Supercharging DeepSeek Harness: Bringing Claude Pro/Max with One‑Click Google/Gmail OAuth Login and Real‑Time Quota Tracking
说明与用途
dsh‑claude‑oauth 插件通过一键 Google/Gmail OAuth、自动刷新令牌和实时配额监控,简化了 Claude Pro/Max 与 DeepSeek Harness 的集成。
问题
AI developers using DeepSeek Harness (DSH) struggle to authenticate their Claude Pro/Max subscriptions, which rely on browser OAuth rather than API keys, leading to manual token handling, silent expiry, and lack of native UI.
结果
The plugin removes manual token handling, provides a seamless Google/Gmail sign‑in experience, keeps tokens refreshed, and offers live quota monitoring, greatly improving developer productivity in DSH.
工作流
- Install the plugin via
dsh plugin --profile web add github:grloper/dsh-claude-oauth - Open DSH Web and navigate to Settings → Claude Settings
- Click "Sign in with Google / Gmail" to trigger the PKCE loopback flow
- Authorize on Claude’s OAuth page and select Gmail account
- The plugin exchanges the code for tokens, retrieves subscription tier, and writes credentials to
~/.claude/.credentials.json,~/.dsh/.credentials.yaml, and other stores - The plugin performs a lightweight probe to fetch real‑time 5‑hour and 7‑day quota usage and displays progress bars in Settings
证据
The plugin adds a native Settings section with one‑click Google / Gmail sign‑in, auto‑refreshing tokens, live model discovery, and real‑time subscription quota bars.
The loopback server verifies the state, exchanges the authorization code for tokens via https://claude.ai/v1/oauth/token, and queries https://api.anthropic.com/api/oauth/profile to retrieve the user's Gmail address and subscription tier.
- 记录日期: 2026-09-12T20:00:32.900Z