← Fable Drop

Run Goose on credit bought with USDC

Run the Goose agent on fable-5.2-high with credit bought in USDC on Base. The four environment variables, a free check with a test key, and what was verified.

What you need

The Goose command-line 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 Goose reaches this endpoint. OPENAI_HOST is the site address without /v1; Goose adds the path itself.

export GOOSE_PROVIDER=openai
export GOOSE_MODEL=fable-5.2-high
export OPENAI_HOST=https://fable-drop-nine.vercel.app
export OPENAI_API_KEY=fable-test
goose run --no-session -t "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 Goose with its developer tools.

export OPENAI_API_KEY=<your key>
goose session --with-builtin developer

How this was checked

Goose 1.61.1 with these settings 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 Goose's shell tool, Goose ran the command, the output went back and the final answer arrived, and the key was charged for the three requests. 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.

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