Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Claude Code OAuth bypass for hermes-agent
| Date | Stars |
|---|---|
| 2026-07-31 | 349 |
| 2026-08-03 | 350 |
| 2026-08-06 | 350 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# hermes-claude-auth Claude Code OAuth bypass for hermes-agent, use your Claude Code subscription (Max/Pro) with Hermes. ## What this does Patches hermes-agent at runtime to pass Anthropic's server-side OAuth content validation. It does not modify hermes-agent source files. Installation happens through a Python import hook that monkey-patches `build_anthropic_kwargs` on startup. ## Why this exists On 2026-04-04, Anthropic added server-side validation that rejects OAuth requests from third-party tools. This patch adds the billing header signature and system prompt structure the API expects. ## Prerequisites - hermes-agent installed (`~/.hermes/hermes-agent/`) - Claude Code CLI authenticated (valid credentials at `~/.claude/.credentials.json`) - hermes-agent configured for OAuth (`credential_pool` has a `claude_code` entry in `~/.hermes/auth.json`) - Python 3.11+ ## Install ```bash curl -fsSL https://raw.githubusercontent.com/kristianvast/hermes-claude-auth/main/install-remote.sh | bash ``` Or clone manually: ```bash git clone https://github.com/kristianvast/hermes-claude-auth.git cd hermes-claude-auth ./install.sh ``` What `install.sh` does: - Copies `anthropic_billing_bypass.py` to `~/.hermes/patches/` - Installs the import hook as `sitecustomize.py` in the hermes venv's site-packages - Restarts `hermes-gateway.service` if running ## Uninstall ```bash ./uninstall.sh # remove hook only ./uninstall.sh --purge # remove hook + patch file ``` ## How it works 1. **Billing header**: SHA-256 signed `x-anthropic-billing-header` injected as `system[0]` 2. **System prompt relocation**: Non-identity system entries moved to the first user message as `<system-reminder>` blocks 3. **Beta flags**: Adds `prompt-caching-scope-2026-01-05` and `advisor-tool-2026-03-01` 4. **Stainless SDK spoof**: Lowercase `x-stainless-*` headers + `anthropic-dangerous-direct-browser-access` + `?beta=true` query param matching real Claude Code 2.1.112 5. **Tool name namespacing**: Hermes's `mcp_bash` is rewritten to `mcp__hermes__Bash` outbound; the response normalizer unwraps it back to `bash` so hermes's tool dispatcher resolves the registered name without auto-repair noise 6. **Tool pair repair**: Orphaned `tool_use` / `tool_result` blocks (left by long conversations or partial summaries) are stripped before signing — prevents HTTP 400 (upstream PR #136) 7. **Haiku effort stripping**: `effort` parameter is removed for haiku models that reject it with HTTP 400 (upstream PR #126) 8. **Temperature fix**: Strips non-default `temperature` on Opus 4.6 adaptive thinking, which otherwise rejects with HTTP 400 9. **Account metadata**: Maps `~/.claude.json::oauthAccount.accountUuid` to `metadata.user_id` (Anthropic rejected the older `account_uuid` key with HTTP 400 on 2026-04-29) Installed through a `sitecustomize.py` MetaPathFinder hook, so it runs at interpreter startup with no source modifications. ## What gets modified | File | Action | |------|--------| | `~/.hermes/patches/anthropic_billing_bypass.py` | Created | | `<venv>/lib/pythonX.Y/site-packages/sitecustomize.py` | Created or replaced | | hermes-agent source files | NOT modified | ## Compatibility - Tested with hermes-agent on Python 3.11+ - Linux and macOS - Depends on `build_anthropic_kwargs(is_oauth=...)` in `agent.anthropic_adapter`, so it may need updating if hermes-agent changes that interface ## Troubleshooting ### Install issues - **"hermes-agent not found"**: Make sure Hermes is installed at `~/.hermes/hermes-agent/` - **"No virtualenv found"**: Set `HERMES_VENV` to point to your venv - **Patch not loading**: Check `journalctl --user -u hermes-gateway -n 50` for `[anthropic_billing_bypass]` or `[hermes-claude-auth]` messages ### Auth issues - **`Anthropic 401 authentication failed`** or **`No Anthropic credentials found`**: Hermes reads Claude subscription credentials from `~/.claude/.credentials.json`. If Claude Code is authenticated (e.g. in macOS Keychain) but that file i
Excerpt of 6,995 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:cbb056e27b46a4de, llm:Repository name and description: "Claude Code OAuth bypass for hermes-agent" (Claude is an AI model by Anthropic; hermes-agent likely an AI agent integration).