Use OpenClaw with a model paid in USDC
Add fable-5.2-high to OpenClaw as a custom OpenAI-compatible provider and pay for it with USDC on Base. The models.providers block, a free check with a test key, and what was verified.
What you need
OpenClaw and Node 18 or later. Credit is bought with 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. Add the provider
Save this as fable-drop.json5 and apply it. It adds one provider next to the ones you already have and makes its model the default; drop the agents block to keep your current default.
{
agents: { defaults: { model: { primary: "fable-drop/fable-5.2-high" } } },
models: {
mode: "merge",
providers: {
"fable-drop": {
baseUrl: "https://fable-drop-nine.vercel.app/v1",
apiKey: "${FABLE_DROP_API_KEY}",
api: "openai-completions",
models: [{ id: "fable-5.2-high", name: "fable-5.2-high", compat: { supportsUsageInStreaming: true } }],
},
},
},
}
openclaw config patch --file fable-drop.json5
Or install it as a plugin
The same provider as an OpenClaw plugin, with no config file to edit. It is not on ClawHub or npm, so OpenClaw asks you to confirm the source with --force and its one capability (a model provider) with --accept-capabilities. It registers the provider and reads the key from FABLE_DROP_API_KEY; it does not change your default model. It also adds one skill, pay-for-llm-api-with-usdc, that tells the agent how to buy credit and check the balance with the client below; openclaw skills list showed it as ready after the install. Checked on OpenClaw 2026.11.12 in a clean profile: installed from this archive, the refresh listed the model (OpenClaw does not know it before that) and the test key printed the fixed reply.
curl -fsSLO https://fable-drop-nine.vercel.app/openclaw-plugin-fable-drop.tgz openclaw plugins install ./openclaw-plugin-fable-drop.tgz --force --accept-capabilities export FABLE_DROP_API_KEY=fable-test openclaw models list --refresh --provider fable-drop
2. 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 OpenClaw reaches this endpoint with your config.
export FABLE_DROP_API_KEY=fable-test openclaw infer model run --model fable-drop/fable-5.2-high --prompt "say hi"
3. 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
4. Use the real key
Set the key the client printed and run OpenClaw as usual.
export FABLE_DROP_API_KEY=<your key> openclaw infer model run --model fable-drop/fable-5.2-high --prompt "say hi"
How this was checked
OpenClaw 2026.11.12 with exactly this config and the fable-test key: config patch applied and infer model run printed the fixed test reply. The compat line makes OpenClaw ask for token usage in the stream; without it OpenClaw warns that usage is missing and estimates it. Tool calls were checked against a local copy of this gateway with a simulated model: openclaw agent --local was sent a request, the model called the exec tool, OpenClaw ran it and returned the output, and the model replied. Real model answers and a paid key were not run inside OpenClaw, so start with the 0.1 USDC purchase.
Check what is left
Credit is spent per token.
npx -y https://fable-drop-nine.vercel.app/fable-drop-0.2.1.tgz balanceThe same for Claude Code