← Fable Drop

Run Hermes Agent on credit bought with USDC

Run Hermes Agent on fable-5.2-high with credit bought in USDC on Base. The four config commands, a free check with a test key, and what was verified.

What you need

Hermes Agent (pip install hermes-agent), Node 18 or later for the payment client, and a little USDC on the Base network. No account, no card and no gas. $2 of fable-5.2-high credit costs 0.1 USDC, charged at $8 per million input tokens and $40 per million output tokens.

1. Check it at no cost

The key fable-test needs no payment. It returns one fixed reply instead of a model answer, which shows that Hermes reaches this endpoint. These commands write the model section of ~/.hermes/config.yaml.

hermes config set model.provider custom
hermes config set model.base_url https://fable-drop-nine.vercel.app/v1
hermes config set model.api_key fable-test
hermes config set model.default fable-5.2-high
hermes chat -Q -q "say hi"

2. Buy credit

The client makes a wallet key in ~/.fable-drop (it never leaves your machine) and prints its address. Send USDC on Base to that address, then buy. The paid response holds the api_key at once while the daily instant allowance lasts ($20 of credit a day across all buyers); once it is used up the response is a claim to poll, and the operator approves that payment by hand.

npx -y https://fable-drop-nine.vercel.app/fable-drop-0.2.1.tgz wallet
npx -y https://fable-drop-nine.vercel.app/fable-drop-0.2.1.tgz buy 0.1
npx -y https://fable-drop-nine.vercel.app/fable-drop-0.2.1.tgz env

3. Use the real key

Save the key the client printed and start Hermes.

hermes config set model.api_key <your key>
hermes

Optional: let Hermes buy credit itself

This installs a skill that tells Hermes how to buy credit with the same client and check the balance. The skill asks you to confirm before any purchase.

hermes skills install well-known:https://fable-drop-nine.vercel.app/.well-known/skills/pay-for-llm-api-with-usdc --yes

How this was checked

Hermes Agent 0.19.0 with these commands and the fable-test key: it connected and printed the fixed test reply. A tool call was checked against a local copy of this gateway with a simulated model: the model asked for Hermes's terminal tool, Hermes ran the command, the output went back and the final answer arrived, and the key was charged for the two requests. Real model answers and a paid key were not run, so start with the 0.1 USDC purchase. The skill install command was run against this site: Hermes scanned the skill, installed it and listed it as enabled; a purchase through the skill was not run. The messaging gateway and other Hermes features were not tested.

Check what is left

Credit is spent per token.

npx -y https://fable-drop-nine.vercel.app/fable-drop-0.2.1.tgz balance
The same for OpenClaw