mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Anthropic's token endpoint is behind Cloudflare which blocks Python's default urllib user-agent (Python-urllib/3.x). Without a proper user-agent, the token exchange returns 403 (Cloudflare error 1010). Adds 'claude-cli/2.1.2 (external, cli)' user-agent to all three OAuth HTTP requests: - Initial token exchange (authorization_code grant) - Hermes token refresh (refresh_token grant) - Claude Code credential refresh (refresh_token grant) Verified: full OAuth PKCE flow now works end-to-end. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| anthropic_adapter.py | ||
| auxiliary_client.py | ||
| context_compressor.py | ||
| display.py | ||
| insights.py | ||
| model_metadata.py | ||
| prompt_builder.py | ||
| prompt_caching.py | ||
| redact.py | ||
| skill_commands.py | ||
| smart_model_routing.py | ||
| trajectory.py | ||
| usage_pricing.py | ||