← Fable Drop

Run Aider on credit bought with USDC

Run Aider on fable-5.2-high with credit bought in USDC on Base. The two environment variables, the model flag, a free check with a test key, and what was verified.

What you need

Aider, 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 Aider reaches this endpoint. The openai/ prefix tells Aider to use the OpenAI-compatible route; the warnings flag hides the notice that Aider has no metadata for this model.

export OPENAI_API_BASE=https://fable-drop-nine.vercel.app/v1
export OPENAI_API_KEY=fable-test
aider --model openai/fable-5.2-high --no-show-model-warnings --message "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

Set the key the client printed and start Aider in your repository.

export OPENAI_API_KEY=<your key>
aider --model openai/fable-5.2-high --no-show-model-warnings

How this was checked

Aider 0.86.2 with these settings and the fable-test key: it connected, used the whole edit format and printed the fixed test reply. A file edit was checked against a local copy of this gateway with a simulated model: Aider sent the file, applied the edit that came back, and the key was charged for the request. Real model answers and a paid key were not run, so start with the 0.1 USDC purchase.

Check what is left

Credit is spent per token. Aider's own cost figure is not based on this gateway's prices; this command is the exact balance.

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