Rushie

Paying as an agent (x402)

Whether an agent with a wallet can pay per call, what it can buy, and how the payment is settled before the work.

Off unless /.well-known/x402 says "enabled": true. When it is off, which is the default, there is no pay-per-call: an agent uses an account and its credits, as in MCP for agents.

When the operator turns it on, an agent with a wallet can buy a licence without an account and without a human in the loop. Rushie implements the x402 pattern over MCP: a priced call answers with what it costs and how to pay, the caller retries with a signed payment, and the server settles it before doing the work.

What can be bought

Exactly what /.well-known/x402 lists, which is the shop tools whose price is known before they run: today license_asset, at the listing’s price. While licences are free during launch there is nothing to pay and the list is empty. Commissions and motion orders are not sold over x402: they can miss, and a payment already settled on chain cannot be refunded the way credits are.

The exchange

  1. Call the tool with no payment. The reply is the payment requirements: amount, asset, network and the address to pay.
  2. Sign a payment for one of the offered requirements.
  3. Call again with the payment in _meta["x402/payment"]. It is verified with the facilitator and held, so the same signed payment cannot buy two calls.
  4. The payment is settled. Only once settlement succeeds does the tool run; the licence comes back with the receipt in the response _meta.

Settlement happens before the work. A settlement that fails means nothing was run and nothing handed over; a facilitator that does not answer is reported as unknown, so check the wallet before paying again.