# Pépouze

> Don't trust, verify. Security checks an AI agent calls before it interacts with a smart contract or a website. Pay per call in USDC on Base (x402). No account, no API key, no sign-up.

This page is written for agents. Follow the steps in order.

## Step 1. Choose the service by the question you have

| Your question | Call | Body (JSON) | Price |
|---|---|---|---|
| Should I interact with this deployed contract? | `POST https://pepouze.app/api/x402/quick-score` | `{"contract_address": "0x…", "network": "ethereum"}` | $0.05 USDC |
| Should I connect a wallet, sign or pay on this website? | `POST https://pepouze.app/api/x402/site-check` | `{"url": "https://app.example.com"}` | $0.05 USDC |
| Is this contract's code sound? (full audit for its author) | `POST https://pepouze.app/api/x402/audit/smart-contract` | `{"contract_address": "0x…", "network": "ethereum", "website_url": "https://…" (optional), "email": "…" (optional)}` or `{"source_code": "…"}` | $99.00 USDC |
| Is this website secure? (full audit for its owner) | `POST https://pepouze.app/api/x402/audit/website` | `{"website_url": "https://…", "email": "…" (optional)}` | $39.00 USDC |

- `network` is one of: ethereum, bsc, polygon, arbitrum, optimism, base, avalanche. Default: ethereum.
- The two checks answer within 5 seconds (contract: 53 checks). The two audits answer with an order whose `status_url` you poll until the report (JSON, schema pepouze.findings/1, plus a PDF) is ready.

## Step 2. Pay with x402

1. Send the request without payment. The server answers `402 Payment Required` with the payment requirements (amount, USDC asset, network eip155:8453 = Base, recipient, validity) in the `PAYMENT-REQUIRED` header.
2. Sign the EIP-3009 authorisation those requirements describe with your wallet. This is an off-chain signature: no transaction, no gas, no ETH needed.
3. Send the same request again with the signed payment in the `PAYMENT-SIGNATURE` header. Any x402 client does steps 1 to 3 for you (for example `@x402/fetch`).
4. A malformed request is refused with a 4xx before any payment is settled: you are not charged for it.

The services are listed in the x402 Bazaar (PayAI facilitator) under the name "Pepouze".

## Step 3. Read the answer

Contract check: schema `pepouze.interaction/1`. Website check: schema `pepouze.site-interaction/1`.

- `verdict` = `do_not_interact` (score under 40, or a blocking rule fired): stop. Do not approve, sign, swap or pay.
- `verdict` = `caution`: do not proceed automatically. Read `rules_triggered` (each has `evidence` and how to `verify` it) and `next_steps`; keep amounts small or ask your human.
- `verdict` = `no_blocking_issue` (score from 70): nothing blocking was found. This is not a guarantee that the target is safe.
- `coverage` = `partial`: a source could not be read; `coverage_notes` says which. Treat the verdict as weaker.
- `assessed` says exactly what was judged (code hash, block, final URL, engine version), so you can tell whether the answer still applies.

A real answer: https://pepouze.app/examples/quick-score-do-not-interact.json (produced outside production, so its `signature` is null; answers bought from the API are signed).

## Step 4. Check the signature

Answers are signed. https://pepouze.app/.well-known/pepouze-attestation.json gives the signer address and the method: remove the `signature` field, serialise the rest as JSON with keys sorted at every depth and no whitespace, and recover the EIP-191 (personal_sign) signer of that text from `signature.value`. It must equal `signer`.

## If you are a coding assistant (Claude Code, Cursor, Copilot…)

Your question is "is the code I am writing sound?", not "should I interact?". Use the Pépouze MCP server: it runs on the developer's machine and never sends their code anywhere.

- Claude Code: `claude mcp add pepouze -- npx -y --package=https://pepouze.app/ide/pepouze-mcp.tgz pepouze-mcp`
- Other MCP clients: command `npx`, arguments `-y --package=https://pepouze.app/ide/pepouze-mcp.tgz pepouze-mcp`
- Without MCP: `npx -y --package=https://pepouze.app/ide/pepouze-mcp.tgz pepouze-mcp scan` at the project root (add `--sarif` for a SARIF file; exit code 1 on a critical or high finding).

Tools: `scan_project`, `scan_file` (after an edit), `explain_finding` (a check id such as PZ-H-12), `licence_status`. Free tier: unlimited, the Pépouze checks with a fix hint. Pro ($15 a month, bought by the developer in crypto at https://pepouze.app/ide, 14-day trial): the newest checks, the attack scenario, the corrected code, Slither.

To have the source audited on our server instead (the full report, $99): `POST https://pepouze.app/api/x402/audit/smart-contract` with `{"source_code": "…"}` (up to 500 KB), then read the findings at `status_url`.

## Links

- [Agent page for humans](https://pepouze.app/agents)
- [Signer and method in production](https://pepouze.app/.well-known/pepouze-attestation.json)
- [Sample full audit report](https://pepouze.app/sample-report)
- Contact: hello@pepouze.app
