Signing in
- Ask for a challenge with your address and network. You get a message that expires in five minutes and works once.
- Sign it with your wallet. Ordinary wallets and contract wallets both work.
- Send the signed message back. You get a token that lasts an hour.
- Send the token as
Authorization: Bearer <token>on every other call.
Reads that need no sign-in
The catalogue, a search over it, the plan schema and the template shelf answer anybody. Search ranks operations by measured quality: success rate first, then realised slippage, then gas.Quote, then run
A quote is a private preview of the exact calls the agent will make, decoded, with the result of a simulation and every floor the price guard will enforce. It runs on your own account.- Quote an operation, a plan or a template with your values. You get a quote id and a hash of the preview.
- Run the quote by naming the hash you accepted. A run needs an
Idempotency-Key. The same key and request give the same run and never start or pay twice. - Watch the run: its state, its payment and a timeline you can read from a cursor. You can stop a run at any time.
What the gateway will start
The gateway starts only a short list of operations, and nothing else. Today the list is pulling your own tokens into your account, swapping, and lending (supply, borrow, repay and withdraw), plus the five template agents. Anything outside the list is refused, and the refusal names each item. The way out is never blocked. Stopping a run, cancelling an order, repaying a loan, collecting fees, claiming and sending to your own wallet always go through, whatever the list says. A plan on the gateway can arm one thing only: a resting order. It cannot arm a schedule, a chain or a trigger.Paying
A paid route answers402 Payment Required. The answer carries the price and what it accepts, in USDC on Base. You pay, then send the request again with the payment and a payment identifier. The identifier is an idempotency key, so the work is never done twice. A refused request is not charged.
A paid route with no price set yet answers as if the route does not exist. It is never served free.
You can also buy credits with an x402 payment, at 100 credits to the USDC. Credits are not refundable. They can pay a route’s fee, and a run’s cost is held while the run is open and settled when it ends.