{"id":50299119,"url":"https://github.com/blockrunai/clawrouter-hermes","last_synced_at":"2026-05-28T11:02:25.152Z","repository":{"id":358552041,"uuid":"1238063840","full_name":"BlockRunAI/ClawRouter-Hermes","owner":"BlockRunAI","description":"ClawRouter for Hermes — 55+ LLMs, x402 USDC micropayments on Base \u0026 Solana. Python plugin wrapping the ClawRouter proxy for NousResearch/hermes-agent.","archived":false,"fork":false,"pushed_at":"2026-05-15T19:52:37.000Z","size":57,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T00:17:46.808Z","etag":null,"topics":["blockrun","clawrouter","hermes","hermes-agent","llm-router","micropayments","python","x402"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/hermes-plugin-clawrouter/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlockRunAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T19:24:18.000Z","updated_at":"2026-05-15T20:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/BlockRunAI/ClawRouter-Hermes","commit_stats":null,"previous_names":["blockrunai/clawrouter-hermes"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BlockRunAI/ClawRouter-Hermes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockRunAI%2FClawRouter-Hermes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockRunAI%2FClawRouter-Hermes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockRunAI%2FClawRouter-Hermes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockRunAI%2FClawRouter-Hermes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlockRunAI","download_url":"https://codeload.github.com/BlockRunAI/ClawRouter-Hermes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockRunAI%2FClawRouter-Hermes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33605379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockrun","clawrouter","hermes","hermes-agent","llm-router","micropayments","python","x402"],"created_at":"2026-05-28T11:02:23.986Z","updated_at":"2026-05-28T11:02:25.124Z","avatar_url":"https://github.com/BlockRunAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hermes-plugin-clawrouter\n\nClawRouter for [Hermes](https://github.com/NousResearch/hermes-agent) — 55+ LLMs, x402 USDC micropayments, smart routing.\n\nWraps the existing [ClawRouter](https://github.com/BlockRunAI/ClawRouter) TypeScript proxy as a Hermes plugin. Wallet (BIP-39, Base + Solana), routing (15-dimension scorer), and x402 payment all stay in the canonical TS implementation — this is a thin Python adapter.\n\n## Install\n\n```bash\npip install hermes-plugin-clawrouter\nhermes plugins enable clawrouter\nhermes-clawrouter setup\nhermes-clawrouter doctor\n```\n\n`setup` writes the model-provider plugin to `~/.hermes/plugins/model-providers/clawrouter/`, seeds `CLAWROUTER_API_KEY=clawrouter-local` in `~/.hermes/.env`, and registers ClawRouter in `~/.hermes/config.yaml` so Hermes' `/model` picker can show the provider and curated BlockRun chat models.\n\n`CLAWROUTER_API_KEY` is intentionally a non-secret placeholder. ClawRouter payments use the local wallet/proxy, but Hermes hides API-key-style providers from `/model` unless the configured key env var exists.\n\n`hermes-clawrouter` is provided because some Hermes releases do not add plugin-defined top-level CLI commands before the plugin is enabled. Once the plugin is loaded, `hermes clawrouter \u003csetup|wallet|doctor|route|stats\u003e` may also be available.\n\n## Usage\n\nIn a Hermes chat:\n\n- Set model to `blockrun/auto` to use ClawRouter's smart routing.\n- `/clawrouter wallet` — address + USDC balance\n- `/clawrouter stats` — proxy usage stats\n- `/clawrouter status` — proxy health\n- `/clawrouter route \u003ceco|auto|premium\u003e` — switch routing profile\n\nTools (callable from chat):\n\n- `clawrouter_image_generate` — 55+ models incl. DALL-E 3, Flux, Nano Banana\n- `clawrouter_video_generate` — Seedance, Grok Imagine\n- `clawrouter_web_search` — Exa-powered\n\n## Wallet\n\nThe plugin **reads** the canonical wallet at `~/.openclaw/blockrun/mnemonic` (24-word BIP-39 phrase, mode 0o600). To create one:\n\n```bash\nnpx @blockrun/clawrouter setup\n```\n\nThen fund USDC on Base or Solana — $5 covers thousands of requests, non-custodial. The plugin never writes to the wallet.\n\n### Headless / CI\n\nSet `BLOCKRUN_WALLET_KEY=\u003c0x raw EVM hex\u003e` to bypass the mnemonic file (EVM-only — Solana derivation unavailable).\n\n## Environment variables\n\n| Variable | Effect |\n|---|---|\n| `CLAWROUTER_PROXY_URL` | Point at an externally-managed proxy (e.g. `https://my-host/v1`). Skips local spawn entirely. |\n| `HERMES_CLAWROUTER_AUTOSPAWN=0` | Disable lazy spawn; require `npx @blockrun/clawrouter` to be running already. |\n| `BLOCKRUN_WALLET_KEY` | Raw EVM hex private key — overrides the mnemonic file. |\n| `CLAWROUTER_ROUTING_PROFILE` | `eco` / `auto` / `premium`. Forwarded to the proxy on spawn. |\n\n## How it works\n\n1. `hermes` starts → the entry-point plugin is loaded → `register(ctx)` wires tools, slash commands, CLI, and the skill.\n2. `hermes-clawrouter setup` materializes `~/.hermes/plugins/model-providers/clawrouter/{plugin.yaml,__init__.py}` from bundled package data and writes Hermes config/env hints needed by current Hermes provider and gateway model-picker paths.\n3. Hermes' `providers/__init__.py` discovers the materialized directory and registers the `ClawRouterProfile`, pointing `base_url` at `http://127.0.0.1:\u003cport\u003e/v1`.\n4. First tool call or chat turn → the supervisor probes `:8402`, spawns `npx -y @blockrun/clawrouter --port \u003cport\u003e` if needed, waits ≤30s for `/v1/models`, then forwards the request.\n5. A heartbeat thread restarts the subprocess on death (max 3 restarts/min).\n\n## Distribution\n\nThe Python package ships **both** logical plugins:\n\n- **Standalone** plugin (this PyPI entry point): tools, slash commands, CLI, skill.\n- **Model-provider** plugin (materialized into `~/.hermes/plugins/model-providers/clawrouter/` by `hermes clawrouter setup`): `ProviderProfile` registration.\n\nThis split is required because Hermes' PluginManager (`hermes_cli/plugins.py`) skips `register(ctx)` for `kind: model-provider`, and entry-point plugins always load as `kind: standalone`.\n\n## Development\n\n```bash\npip install -e \".[dev]\"\npytest\n```\n\n## License\n\nMIT. © BlockRun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockrunai%2Fclawrouter-hermes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockrunai%2Fclawrouter-hermes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockrunai%2Fclawrouter-hermes/lists"}