Supercharging DeepSeek Harness: Bringing Claude Pro/Max with One‑Click Google/Gmail OAuth Login and Real‑Time Quota Tracking
Описание и применение
Плагин dsh‑claude‑oauth упрощает интеграцию подписок Claude Pro/Max в DeepSeek Harness, предлагая однокликную авторизацию через Google/Gmail, автоматическое обновление токенов и отображение реального использования квот.
Задача
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