Repository navigation
Conversation
Hermes reads only a root plugin.json and mcp.json (Agent Plugins v1) and skips .claude-plugin, .cursor-plugin and .mcp.json, so the existing skills/ tree and connector need their own pair of manifests. mcp.json repeats the .mcp.json server as streamable-http: Hermes rejects type http and the placement key. plugin.json marks the server untrusted and prices buy-products at 1 order against a 0.5-order per-chat spend limit, so Hermes asks before every order, also under /yolo, and declines in cron. No version field, like .cursor-plugin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds harnesses/hermes.md and routing rows. Hermes is detected before OpenClaw, since Hermes hosts keep ~/.openclaw/ after an import. Connected profiles use the connector; others check out as a guest with the pinned CLI through terminal, only while whoami shows an unregistered identity. The CLI drops isError and exits 0 on failure, so the guide reads the result fields instead. Product, confirm and pay reuse grok-bot.md. Hermes-only rules: one buy-products call per confirm, never answer or steer the approval prompt, never execute_code, buy only in local sessions and DMs, never in cron or one-shot runs. AgentCash and awal settle x402 without asking, so Hermes leaves their host lists. The cli.md guest example the route reads now sends package_value as a string (the live schema marks package_id deprecated) and --return_payment_link false, which returns the crypto address; the flag defaults to true. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mcp.md gets the Hermes sign-in: OAuth through hermes mcp add, then trust set back to untrusted (mcp add resets it), recovery from a failed add, SSH paste-back with iss or a port-forward, and the Desktop link. Desktop refuses that link while the plugin is enabled, so the Desktop text runs the two commands first. It also drops stale lines the connected route reads: the key-in-path URL returns HTTP 410 (OpenClaw included), and signed-in accounts get 12 tools, not 7. safeguards.md gets a Hermes section: each approval covers one order, disabling the plugin drops the limit, execute_code skips approvals.deny so the buying profile turns code_execution off, and deny globs block signed-in CLI buys, x402 payers and Hermes reconfiguring itself through terminal. It also drops the literal SSH directory from the Claude Code sandbox example so Hermes's install scan reads safe instead of caution. auto_pay is not in the buy-products schema and is removed where the Hermes route reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
README adds a Hermes section next to Cursor / Grok Bot with the three install and sign-in commands and the disclosures the Hermes catalog asks for (real money, the prompt and how to remove it, the shared profile, the guest CLI download). It installs bitrefill/agents until the catalog lists bitrefill. The OpenClaw line moves off the key-in-path URL, which returns HTTP 410. CLAUDE.md adds the two manifests to the tree, the Hermes validate and doctor checks, and the catalog entry step after each release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A clean Hermes v0.23.3 run with only the plugin installed the CLI globally without asking, spent a tool_search before routing, and created the guest invoice with no host prompt. Route straight to npx, make the confirm the explicit gate for guest buy-products, allow guest invoices in one-shot runs only with the confirm in that message, and disclose the startup 401 and the token kept in session history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Installing bitrefill/agents straight from GitHub is blocked by the Hermes install-time scan (community source, caution verdict), so the README names only the catalog entry. Drop a sentence the port left under the Claude Code settings block, which already denies ~/.ssh. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hermes ≥0.23 defers MCP tools behind tool_search, so a signed-in connector is often absent from the tool list. Treat a deferred bitrefill server as connected, allow one tool_search, drop the misleading 'outside the working folder' wording (npx uses the npm cache) and keep the cli.md example host-neutral. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chat app's approval prompt reaches whoever is in the chat, and the skill cannot tell the owner's DM from anyone else's. Chats quote from the account and check out as a guest. Drops the one-shot rule the model cannot detect. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hermes returns its spend-limit refusal on every declined order, so the skill says plainly that nothing was bought. Chat-app DMs only search and quote from the account, matched against an allowlist of chat platforms. Autonomous buying lifts the prompt only in local sessions. A crypto invoice with no address gets a payment-link checkout only after a new yes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Wallets are no longer excluded on Hermes. After the user's yes the skill opens the invoice for a coin the wallet holds and pays it once from that wallet; the wallet's own approvals and caps decide whether it asks again. AgentCash and awal keep Hermes as a host, and the approvals.deny block no longer blocks x402 payers. README and safeguards disclose that a wallet that pays without asking pays on whoever confirms in a chat app. Co-Authored-By: Claude Opus 5.5 <[email protected]>
SKILL.md sends Hermes hosts to hermes.md before the first Bitrefill call, and only a yes to the quote confirms an order: a mock run bought without quoting when hermes.md was skipped. The crypto reply gives the expiry in minutes, and hermes.md's payment rules take precedence over grok-bot.md's no-address line. A wallet pays only where checkout is allowed, sends to the invoice address or pays x402 when the invoice offers it, and is checked until the user approves or rejects. Hermes is detected before OpenClaw in every routing table. README and safeguards say the server is marked untrusted and the gateway should allow only the owner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A live guest run polled get-invoice-by-id for four minutes before posting the address. The crypto reply now goes out first and ends the turn; the invoice is checked once the user says they paid or the wallet's payment went through. whoami runs as its own call before a guest order, since chaining it with && checks only the exit code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hermes words every refused order as a spent limit, so the skill never repeats that. The prepayment and update-order prompts get their own line. An uncertain outcome that list-invoices can't show is reported as possibly unpaid. A Lightning invoice counts as the address, an invoice that expires while a wallet request is open is not paid by hand, and hermes.md takes precedence over the wallet pages. A signed-in CLI, other chat platforms, cron runs and x402 REST checkout get the product link or a plain refusal; the universal token-file and in-chat opt-in rules don't apply on Hermes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Slack gives every DM a thread, so a Slack DM may carry ", thread:". The connect offer appears only in a local session, where signing in can lead to an account purchase. A wallet without send says in the confirm that the user may pay by hand, and never pays a payment link or a second order. The wallet approval check is the wallet's own status tool. On Hermes the in-chat autonomous opt-in works only in a local session, with Hermes still asking unless the owner set trust: full. mcp.md warns that Desktop can't save other MCP servers while both bitrefill entries exist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Connector and CLI orders carry no x402 payment link, so a wallet that pays x402 but can't send (AgentCash) now runs the whole order on x402 checkout through its own HTTP tool: connect once, search, details and invoice with the session token, then one invoice/pay after the user's yes, capped at the quoted price, and status until delivered. A refused or failed payment stops the order; a 409 means it's paid; an expired quote needs a new yes. The session token is kept like the invoice access token, and the wallet's order list is read only in a local session. Wallets that can send keep paying connector and CLI invoices by send. The README, routing pages and safeguards say the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- check.yml: new `hermes` job runs Hermes's plugin-validate action, action and Hermes source pinned to the v0.23.4 commit. - release.yml: bare URL in the release notes, so the Hermes security scan no longer flags a Markdown link with an interpolated URL. - docs/hermes-catalog.md: the plugin-catalog/bitrefill.yaml entry (requires_hermes >=0.22.3 for costs and spend_limit, known_issues for the sign-in step, disclosure line) and the catalog PR description. - README: disclose the server-side instructions, model-provider exposure and what submit_feedback sends. - hermes.md: submit_feedback only when the user asks. - CLAUDE.md: link the catalog doc and list it among the version pins. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KSBQVHJmiLyi5H61WZ1NTe
- Version 4.1.0 in every manifest, the skill, README, CLAUDE.md, docs/openai-review.md and the catalog entry; release notes describe Hermes support. - Under /yolo or approvals.mode: off, Hermes still asks before every buy-products call because of the spend limit, but its trust gate no longer asks before submit-prepayment-step, update-order or submit_feedback. hermes.md, the README and the catalog PR text now say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KSBQVHJmiLyi5H61WZ1NTe
… by hand A wallet can pay and still return an error (Alby MCP's pay_invoice fails its own output schema after paying). Posting the address then could make the user pay an on-chain invoice twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KSBQVHJmiLyi5H61WZ1NTe
purrgrammer
marked this pull request as ready for review
November 26, 2026 12:03
…e quote While the connector is signed out, a local Hermes chat now asks once, before the quote and apart from the confirm, whether to connect a Bitrefill account or continue as guest, also when the user already named a payment method. The README shows the Hermes order flow as a Mermaid diagram, with who pays on each route. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Hermes Agent (Nous Research) as a supported host.
plugin.jsongets acom.nousresearch.hermesblock: thebitrefillserver istrust: untrusted, andbuy-productscosts 1 order against aspend_limitof 0.5, so Hermes asks before every order. The host guide isskills/bitrefill/references/harnesses/hermes.md;SKILL.mdsends Hermes hosts there before the first Bitrefill call, anddecision-engine.mdandcapability-matrix.mddetect Hermes before OpenClaw.cli.md,mcp.mdandsafeguards.mdget Hermes sections.flowchart TD A["Install the plugin"] --> B["Ask Hermes to buy"] B --> C{"Bitrefill account connected?"} C -- yes --> M["Bitrefill connector:<br/>Hermes asks before each order"] C -- no --> Q{"Connect your account<br/>or continue as guest?"} Q -- "connect (sign in on the Hermes machine)" --> M Q -- guest --> W{"Agent's wallet"} W -- "none, or one that sends" --> G["Guest order:<br/>Bitrefill CLI via npx"] W -- "pays only x402 (AgentCash)" --> X["x402 checkout,<br/>paid by that wallet"] M --> P{"Who pays, after your yes"} G --> P P -- "your Bitrefill balance (connected account)" --> D["Code delivered in the chat"] P -- "the agent's wallet sends the exact amount" --> D P -- "you pay the link or address yourself" --> D X --> Dnpx -y @bitrefill/[email protected], with no global install. It places an order only after the user confirms product, amount, total, method and email. A crypto invoice is posted right away with amount, network, address and expiry in minutes, and checked only once the user says they paid.invoice/pay, capped at the quoted price, then checks status until the code is delivered. A refused payment stops the order with no retry. Hermes doesn't ask before a wallet tool unless the owner prices it, so the confirm and the wallet's caps are the gates.The README covers the Hermes install and its trade-offs:
mcp addresets that;Catalog submission and CI:
docs/hermes-catalog.mdholds theplugin-catalog/bitrefill.yamlentry and the catalog PR text. The entry hasrequires_hermes: ">=0.22.3", the first release that readscostsandspend_limit. It also has aDisclosure —line in the house style and aknown_issuesline for the sign-in step. The PR text covers both checkout paths and every rule 13 disclosure.auth: oauth(hermes-agent#115429), andhermes mcp logincan't find it (hermes-agent#87253, in scope forhermes-agent#152002). So themcp add+config setstep stays until a Hermes release fixes both.check.ymlhas a newhermesjob. It runs Hermes's ownplugin-validateaction, with the action and the Hermes source pinned to the v0.23.4 commit.release.ymlnow writes the review-doc link as a bare URL, so the scan no longer flags a Markdown link with an interpolated URL. What's left is 3ssh_dir_accesscautions from the deny rules insafeguards.md.www.bitrefill.com/agents/SKILL.mdwhen the skill isn't loaded, that tool results reach the model provider, and whatsubmit_feedbacksends.hermes.mdsends feedback only when the user asks.ClickUp: BR-22555
Test plan
Done on Hermes v0.23.3 (local bench, no funded wallet, no paid order):
cf009de, live bench (clean home, signed out, test wallet named by the user): the agent asked the question on its own with no option recommended, then quoted separately after "guest"; nothing was ordered or sent.hermes plugins validate --install-depson7168c77:ok, trust untrusted, 1 costed tool, limit 0.5 orders.7168c77installs exactly that SHA, enabled.hermes.md, makes onetool_searchand uses onlynpx.buy-products(usdc_base, no link), then posts the address with "expires in 60 minutes".memories/or the working folder.buy-productsnever spends) in an interactive session:/yolostill prompts.9f978b2with the connector live: same result.fetchanswers/x402/*from canned data and only records payments), on9f978b2:invoice/paycame after the yes,maxAmount0.07, then status; the code was delivered.buy-products.approvals.denyblock, checked withhermes approvals test: 8 signed-in or self-reconfiguring commands are refused; guest search, guest crypto buy andwhoamiare allowed.7168c77,268af5e,1020718and2777d1a; the x402 route is9f978b2.skill-auditscan: no new high or critical findings againstmain.api.bitrefill.comwith a nativemcp_servers.bitrefillentry (auth: oauth,trust: untrusted) andhermes mcp login bitrefill. Hermes signed in with its hosted client-metadata document and listed 13 tools. The live server's annotations put the 4 write tools behind the trust gate and let the 9 read-only tools run.hermesjob on73cfae1: validation passed with trust untrusted, 1 costed tool, limit 0.5 orders and 3 cautions. It exits 1 on a brokenplugin.json, checked locally.docs/hermes-catalog.mdpasses the hermes-agentscripts/validate_plugin_catalog.pyfrommain, with a placeholder sha.Live tests (signed-in account, real sats, Hermes Desktop and CLI):
buy-productsraised Hermes's prompt. Allow once created a Lightning invoice. After "paid" there was oneget-invoice-by-idcall, and the code was delivered./yoloagainst the live server: the order still prompted. The denial logged as "denied 'buy-products' on spend-limited server", so the trust gate was off and the spend limit asked.hermes chat -q … --oneshotquoted and stopped. Resuming it with-q "yes" --oneshotmade the agent callbuy-products, which Hermes refused in 0.00s with no one to ask. The reply was "The order wasn't approved, so nothing was bought and no Lightning payment was made." Nothing was bought or paid. Side effect: Alby MCP marks no toolsreadOnlyHint, sotrust: untrustedalso prompts for (and headless refuses) itsget_balance.trust: untrusted,pay_invoiceandfetch_l402priced abovespend_limit: 0.5):buy-productsprompt → Allow once, thenpay_invoiceprompt → Allow once. The wallet paid 1,499 + 4 sats. Alby'spay_invoicethen failed its own output schema ('amount', 'fee', 'fees' were unexpected, a bug in@getalby/mcp), so Hermes reported an error. The agent checkedget-invoice-by-idonce, found it paid and delivered the code.09511b1now makes that check the rule.pay_invoice→ Deny ("user denied 'pay_invoice' on untrusted server 'alby'"). The agent checked the invoice once, found it unpaid and stopped, with no retry and no wallet switch. It said "not approved", not "spend limit", and posted the Lightning invoice for manual payment. One deviation: it gave the expiry as a clock time computed withdateinterminal, instead of the invoice's minutes.hermes mcp test bitrefillfails with "The server rejected the sign-in. Run: hermes mcp login bitrefill". The tokens were restored afterwards, and the connector reconnected with 13 tools.npx -y @bitrefill/[email protected] buy-products … --billing_address '{…}' --payment_method fiat_card --jsonwhilewhoamireportsunregistered. It returnedinvoice_id,payment_linkandexpiration_minutes: 60. The invoice was left unpaid./yoloon Hermes v0.22.3 for the catalog floor:hermes plugins validate --install-depspasses with trust untrusted, 1 costed tool and limit 0.5 orders. I ran Hermes's_trust_gate_checkwith this policy and approval bypass on (/yolo/approvals.mode: off), with the prompt stubbed to decline:buy-productsandupdate-orderprompt, andsearch-productsruns.buy-productsstill prompts because of the spend limit, butupdate-orderruns without a prompt.hermes.md, the README and the catalog text now say the trust prompt forsubmit-prepayment-step,update-orderandsubmit_feedbackmay be skipped under/yolo.docs/hermes-catalog.mdincluded (cdefbc5). Tests, the packager (--tag v4.1.0) andclaude plugin validatepass.Not tested live, by decision:
9f978b2).beb5645): it can't be triggered on demand. Covered by code review.terminalhas nonpx. Covered by code review; with nonpx, the guide routes to the product link.Still to do:
docs/hermes-catalog.md's entry and open the catalog PR with its text.Notes from live testing:
@getalby/mcpbreaks its own output schema onpay_invoice('amount', 'fee', 'fees' were unexpected) and marks no toolreadOnlyHint, so undertrust: untrustedHermes prompts even forget_balance. Fixes are open upstream as getAlby/mcp#38(strip undeclared fields) and#39(tool annotations).lightning-invoice-paymentsskill withskill_manage(it failed validation). That is Hermes's skill learning, not this plugin.