For resellers

Pay many OpenRouter links from the terminal

Every OpenRouter crypto top up is its own Coinbase payment link. If you buy credits for many people, or for many accounts of your own, you can pay all of them from a script with the ROZO Checkout CLI. You pay from the wallet you already use, with the coin you already hold. No account and no API key.

1. Install

Node 20.18 or newer, plus jq for the batch script. Install once so each run skips the download. The same CLI is also a Claude Code plugin and a ClawHub skill.

Shell
npm i -g @rozoai/checkout
rozo-checkout quote https://payments.coinbase.com/payment-links/pl_01YOURLINKID

2. Create the orders in a batch

Put one link per line in links.txt. The loop creates one order per link and writes one result row per link to runs/batch.tsv.

batch.sh
# links.txt: one Coinbase link per line
command -v jq >/dev/null || { echo "install jq first"; exit 1; }
mkdir -p runs
while IFS= read -r link || [ -n "$link" ]; do
  link="${link%$'\r'}"; link="${link%%\?*}"
  [ -n "$link" ] || continue
  id="${link##*/}"
  rozo-checkout pay "$link" --with usdt-solana --yes --json --no-watch \
    </dev/null > "runs/$id.json"
  code=$?
  row=$(jq -r --arg id "$id" --arg code "$code" '[$id, $code,
      (.order.rozoPaymentId // .error.details.body.rozoPaymentId // "-"),
      (if .success then "pending: pay before " + (.order.expiry.effectiveDeadlineIso // "?")
       else (.error.code // .send.error.code // "FAILED") end)] | @tsv' \
    "runs/$id.json" 2>/dev/null) || row="$id	$code	-	NO_OUTPUT"
  printf '%s\n' "$row" >> runs/batch.tsv
done < links.txt

3. Check that each link settled

Track every order by its rozoPaymentId. receipt exits 0 only when Coinbase itself reports the invoice paid.

Shell
rozo-checkout status <rozoPaymentId> --json | jq -r '.state, .escalate'

# Is it paid? exit 0 = settled
rozo-checkout receipt <rozoPaymentId> --json

Coins and chains

CoinChains
USDTSolana, BNB Chain, Ethereum, Polygon, Arbitrum
USDCSolana, BNB Chain, Ethereum, Polygon, Arbitrum, Base, Stellar
BTCLightning
Native coinsETH (Ethereum, Base, Arbitrum), BNB, SOL, POL

Pick one with --with, for example usdt-solana, usdc-base, btc-lightning or sol. A native coin is offered only when the quote lists it. On chain BTC and Tron are not supported. The full list is on the agent page.

Fees

Limits

If you send too little

Questions about a batch?

Email hi@rozo.ai with how many links you pay a week and which coin you hold.

Open the CLI on GitHub Bulk purchases guide