# Pay a route

This client lets an agent take part in x402. It uses the agent's own key. It does not contain a key, and it does not pay a share.

1. Call `choose_route` with one sentence.
2. If the decision is `compute` or `skip`, stop. Do not pay.
3. If the decision is `pay`, pay the returned URL with your own USDC on Base.
4. Unknown input returns 404 and is not charged.

Optional header `x-agent-ref`: 1 to 32 letters, numbers, `_` or `-`. A settled call stores that id. No share is paid. There is no payout wallet.

Run, from a machine that has `@x402/fetch`, `@x402/evm`, and `viem`:

```
X402_PAYER_KEY=your_key X402_REF=your_id node pay-client.mjs "Check this IBAN before sending money"
```

Download: https://agentshield.live/pay-client.mjs

The key stays on your machine. Do not send it to agentshield.live.
