> ## Documentation Index
> Fetch the complete documentation index at: https://arcpay-somnia.vercel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Locally

> Local setup, live smoke tests, and service checks.

## Build

```bash theme={null}
npm run build
npm run build:frontend
npm test
```

## x402

```bash theme={null}
npm run check:x402
npm run x402
```

## Worker

```bash theme={null}
npm run check:worker
npm run worker:once
npm run worker
```

## Live Smoke Tests

```bash theme={null}
npm run smoke:auth
npm run smoke:live
npm run smoke:x402
```

`smoke:live` requires a funded Somnia Testnet `PRIVATE_KEY`.

`smoke:x402` verifies HTTP 402 quote, on-chain escrow payment, provider fulfillment, resource unlock, and settlement.
