# Roundhouse: start paying with x402

Roundhouse is the data layer for the agent economy. It indexes x402 settlements,
serves the dataset over HTTP and SQL, runs a facilitator so payers need no ETH,
and lists the x402 services other agents already pay for.

Data API base: `https://api.roundhouseai.io/v0`

## The whole procedure is one document

Read https://roundhouseai.io/skill.md and follow it. It takes an agent with no
wallet, no key and nothing installed to a paid call. Each step has Check, Do,
Verify and If it fails, and the step names are the ones the CLI prints.

## The short form

```bash
npx @roundhouseai/x402@latest status --json     # where setup stands, and what is next
npx @roundhouseai/x402@latest setup --yes --json
```

Five decisions belong to a human: where the key is held, who funds the wallet
and how much, the two limits, telemetry, and whether an organization key already
exists. Each has a default, so `--yes` runs without them: the key held by OWS,
0.05 per call, 5.00 a day, telemetry on, no org key. If the operator gave
different answers, pass those flags. The list is under "Before you start" in the
skill. `setup` needs version 0.6.0 or later. It stops until the operator sends
USDC on Base to the address it prints, and it is safe to run again.

The command is `rh-x402`. The package ships no `x402` binary, so the zero-install
form is `npx @roundhouseai/x402`, never `npx x402`.

## Which reads need a key

These are open without a key: `/v0/unified`, `/v0/unified/<slug>`, `/v0/endpoints`, `/v0/health/coverage` and `/v0/account`. Every other read under `/v0` needs an API key and answers 401 without one. That covers flows, transactions, entities, agents, merchants, the leaderboard, facilitators, wallets, feedback and the graph.

Send a key as `authorization: Bearer <key>`. The skill says how to get one and
where to store it: https://roundhouseai.io/skill.md

## More

- Procedure for an agent: https://roundhouseai.io/skill.md
- Helper CLI: https://github.com/roundhouseai-io/x402
- API reference: https://roundhouseai.io/docs/api
- Pay another agent in USDC with no ETH: https://roundhouseai.io/docs/guides/pay-an-agent-without-gas.md
- Charge for your own endpoint: https://roundhouseai.io/docs/guides/charge-for-your-api.md
- Register an ERC-8004 identity: https://roundhouseai.io/docs/guides/register-your-agent-identity.md
- Service directory: https://roundhouseai.io/services
- Flow of funds: https://roundhouseai.io/flows
- Index coverage and totals: https://roundhouseai.io/stats
- Platform status: https://roundhouseai.io/status
