/proxy/claude/<account>/v1/... (outside /api; Traefik serves it without Authelia) names the worker by its proxy token, checks it may bill the account, swaps in the lab login's access token and streams the reply. A worker's claudeMode is proxy (new pairings) or own (its machine's login); claudeAccounts are the hub accounts a proxied worker may bill. Each probe pushes the config when the worker's fingerprint differs. Replies' rate-limit headers feed the account's live usage %. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 lines
116 B
Python
3 lines
116 B
Python
"""claudeproxy: the Anthropic API proxy in front of the lab's Claude logins,
|
|
for the workers — see service.py."""
|