TrueNix/dsh-anthropic-oauth

TrueNix★ 1JavaScript最后同步: 2026-08-18

在 GitHub 打开

Bridge Claude Code OAuth (Pro/Max/Team) into DeepSeek Harness — reuses ~/.claude/.credentials.json, auto-refreshes, no hardcoding

README 摘要

dsh-anthropic-oauth Bridge your existing Claude Code OAuth session (Pro / Max / Team) into DeepSeek Harness (DSH) — with zero hardcoding. - Reads /.claude/.credentials.json claudeAiOauth live (same file Claude Code writes) - Auto-refreshes accessToken via https://platform.claude.com/v1/oauth/token when <5 min remains - Syncs ANTHROPIC OAUTH TOKEN (+ CLAUDE CODE OAUTH TOKEN alias) into /.dsh/.credentials.yaml — the credential seam dsh-llm-pi-ai already resolves - Ensures llm-pi-ai.providers.anthropic ( api: anthropic-messages ) exists in /.dsh/settings.yaml - Pulls the model catalog live from GET /v1/models (id, display name, context window, max output, thinking/effort capabilities) — no hardcoded model list; new Claude releases appear automatically - Sends the current Claude Code request identity (up-to-date OAuth beta set + claude-cli impersonation headers) with no real user identifier — cch is a zeroed placeholder - Billed to your subscription , not a console API key ( Bearer + oauth-2025-04-20 ) - Live quota panel : shows your subscription's 5-hour and 7-day usage with a reset countdown, read from the anthropic-ratelimit-unified- headers on a cheap max tokens:1 probe (these head…

在 GitHub 查看完整 README →
工具/开发anthropicclaudeclaude-codedeepseek-harnessdshdsh-pluginoauthpkce

分类