# Send X402 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x402-2",
    "name": "X402",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/0xRAG/x402-2",
    "canonicalUrl": "https://clawhub.ai/0xRAG/x402-2",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/x402-2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x402-2"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x402-2",
    "downloadUrl": "https://openagent3.xyz/downloads/x402-2",
    "agentUrl": "https://openagent3.xyz/skills/x402-2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x402-2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x402-2/agent.md"
  }
}
```
## Documentation

### x402 Payment Protocol

Use the npx awal@latest x402 commands to discover, inspect, and call paid API endpoints using the X402 payment protocol. Payments are made in USDC on Base.

### Workflow

The typical x402 workflow is:

Find a service - Search the bazaar or get details for a known endpoint
Check requirements - Inspect price, method, and input schema
Make the request - Call the endpoint with automatic USDC payment

### Search the Bazaar

Find paid services by keyword using BM25 relevance search:

npx awal@latest x402 bazaar search <query> [-k <n>] [--force-refresh] [--json]

OptionDescription-k, --top <n>Number of results (default: 5)--force-refreshRe-fetch resource index from CDP API--jsonOutput as JSON

Results are cached locally at ~/.config/awal/bazaar/ and auto-refresh after 12 hours.

### List Bazaar Resources

Browse all available resources:

awal x402 bazaar list [--network <network>] [--full] [--json]

OptionDescription--network <name>Filter by network (base, base-sepolia)--fullShow complete details including schemas--jsonOutput as JSON

### Discover Payment Requirements

Inspect an endpoint's x402 payment requirements without paying:

awal x402 details <url> [--json]

Auto-detects the correct HTTP method (GET, POST, PUT, DELETE, PATCH) by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.

### Make a Paid Request

Call an x402 endpoint with automatic USDC payment:

awal x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]

OptionDescription-X, --method <method>HTTP method (default: GET)-d, --data <json>Request body as JSON string-q, --query <params>Query parameters as JSON string-h, --headers <json>Custom HTTP headers as JSON string--max-amount <amount>Max payment in USDC atomic units (1000000 = $1.00)--correlation-id <id>Group related operations--jsonOutput as JSON

### Examples

# Search for weather-related paid APIs
awal x402 bazaar search "weather"

# Search with more results
awal x402 bazaar search "sentiment analysis" -k 10

# Check what an endpoint costs
awal x402 details https://example.com/api/weather

# Make a GET request (auto-pays)
awal x402 pay https://example.com/api/weather

# Make a POST request with body
awal x402 pay https://example.com/api/sentiment -X POST -d '{"text": "I love this product"}'

# Limit max payment to $0.10
awal x402 pay https://example.com/api/data --max-amount 100000

# Browse all bazaar resources with full details
awal x402 bazaar list --full

### USDC Amounts

X402 uses USDC atomic units (6 decimals):

Atomic UnitsUSD1000000$1.00100000$0.1050000$0.0510000$0.01

### Prerequisites

Search/Details: No authentication needed
Pay: Must be authenticated (awal auth login <email>) with sufficient USDC balance (awal balance)

### Error Handling

"Not authenticated" - Run awal auth login <email> first
"No X402 payment requirements found" - URL may not be an x402 endpoint
"CDP API returned 429" - Rate limited; cached data will be used if available
"Insufficient balance" - Fund wallet with USDC (awal balance to check)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: 0xRAG
- Version: 0.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/x402-2)
- [Send to Agent page](https://openagent3.xyz/skills/x402-2/agent)
- [JSON manifest](https://openagent3.xyz/skills/x402-2/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/x402-2/agent.md)
- [Download page](https://openagent3.xyz/downloads/x402-2)