# Agent Commerce Guard

Agent Commerce Guard is an x402-paid policy API and package for autonomous agents that need approval gates before wallet spend, deployments, token launches, destructive commands, social posts, or credential access.

## Agent Entry Points

- Product: https://agent-commerce-guard.vercel.app
- GitHub Pages launch page: https://fxjim.github.io/agent-commerce-guard/
- Public buyer brief: https://gist.github.com/fxjim/869cada8014dc52f520cccbce655f0eb
- Offer manifest: https://agent-commerce-guard.vercel.app/offer.json
- x402 discovery: https://agent-commerce-guard.vercel.app/x402
- Well-known x402 discovery: https://agent-commerce-guard.vercel.app/.well-known/x402
- OpenAPI spec: https://agent-commerce-guard.vercel.app/openapi.json
- Agents manifest: https://agent-commerce-guard.vercel.app/agents.json
- Short purchase guide: https://agent-commerce-guard.vercel.app/buy
- Purchase guide: https://agent-commerce-guard.vercel.app/BUY.md
- Machine-readable purchase guide: https://agent-commerce-guard.vercel.app/purchase.json
- Short Base checkout: https://agent-commerce-guard.vercel.app/pay
- Base checkout alias: https://agent-commerce-guard.vercel.app/checkout
- Short Base USDC payment request: https://agent-commerce-guard.vercel.app/pay.json
- Base USDC payment request: https://agent-commerce-guard.vercel.app/payment-request.json
- Short Base USDC payment QR code: https://agent-commerce-guard.vercel.app/qr
- Base USDC payment QR code: https://agent-commerce-guard.vercel.app/payment-request.svg
- Launch/support issue: https://github.com/fxjim/agent-commerce-guard/issues/1
- Launch discussion: https://github.com/fxjim/agent-commerce-guard/discussions/2
- LLM summary: https://agent-commerce-guard.vercel.app/llms.txt

## Paid Endpoints

### Policy Evaluation

`POST https://agent-commerce-guard.vercel.app/api/x402-evaluate`

- Price: `1 USDC`
- Network: Base mainnet, chain id `8453`
- x402 amount: `1000000` atomic USDC
- Receiver: `0xc356556Bc6025aA3536df188BD72A5F4E0fE214f`

Request shape:

```json
{
  "action": {
    "id": "launch-payment",
    "actor": "codex",
    "action": "Send 1 USDC on Base to unlock a paid package",
    "amountUsd": 1,
    "approved": false
  }
}
```

### Package Download

`GET https://agent-commerce-guard.vercel.app/api/x402-download`

- Price: `1 USDC`
- Returns: `agent-commerce-guard-0.1.0.tgz`

## Free Probe

`POST https://agent-commerce-guard.vercel.app/api/demo-evaluate`

Use the demo to inspect the sanitized decision format before paying. The demo does not echo submitted action text.
Demo responses include `purchase`, `purchaseGuideUrl`, and `nextActions` with exact x402 inspect/pay commands.

## Purchase Flow

Agents that support x402 can inspect requirements with:

```bash
npx awal@2.0.3 x402 details https://agent-commerce-guard.vercel.app/api/x402-evaluate --json
```

Human operators can pay through:

```text
https://agent-commerce-guard.vercel.app/pay
https://agent-commerce-guard.vercel.app/checkout
```

Manual Base payment metadata is available at:

```text
https://agent-commerce-guard.vercel.app/pay.json
https://agent-commerce-guard.vercel.app/qr
https://agent-commerce-guard.vercel.app/payment-request.json
https://agent-commerce-guard.vercel.app/payment-request.svg
```

Purchase and integration support:

```text
https://github.com/fxjim/agent-commerce-guard/issues/1
https://github.com/fxjim/agent-commerce-guard/discussions/2
```
