Prerequisites
Before you begin, ensure you have:- Installed Node.js v20.18.2 or later.
-
Installed Circle CLI:
- Completed the Agent Wallets quickstart (authenticates and funds your wallet).
Most x402 services require a Gateway balance. See Deposit for
nanopayments to set one
up.
Steps
1
Find a service
Browse available services at
agents.circle.com/services, or search
by keyword from the CLI:To inspect the payment requirements for a specific URL before paying:
2
Pay for the service
Run The CLI prints the service’s response body.
circle services pay with the service URL and your wallet details. Use
--max-amount to set a spending cap and avoid unexpected charges. Use
--estimate to preview payment requirements without paying:-X for HTTP method and -d for a request
body.