CLICommands

x402

snug x402 <COMMAND>

x402 agent payments (status, quotes, runtime pricing administration).

Subcommands

CommandWhat it does
statusShow deployment payment status (enabled, networks, settle mode)
quoteQuote the effective price you would pay for one route
catalogShow the public discovery catalog of paid endpoints
balanceShow your prepaid x402 balance
sessionBuy an anonymous wallet session (responds with the x402 challenge unless an x402 client pays it)
topupRequest a balance top-up (responds with the x402 challenge unless an x402 client pays it)
pricingManage the pricing hierarchy (admin)
preflightRun go-live preflight against the server's live configuration (admin)
clear-cacheClear pricing caches on the server instance (admin)

Run snug x402 <command> --help for that command's own options. The global options apply everywhere.

Examples

snug x402 status
snug x402 quote --method GET --path '/kv/{key}'
snug x402 catalog
snug x402 preflight
snug x402 balance
snug x402 session
snug x402 topup --amount 5.00
snug x402 pricing list --rule-type endpoint

On this page