# Send x402 Private Search 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-private-search",
    "name": "x402 Private Search",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/kodos-vibe/x402-private-search",
    "canonicalUrl": "https://clawhub.ai/kodos-vibe/x402-private-search",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/x402-private-search",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-private-search",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/services.md",
      "scripts/setup.sh",
      "scripts/wallet-gen.mjs",
      "scripts/x402-fetch.mjs"
    ],
    "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-private-search"
    },
    "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-private-search",
    "downloadUrl": "https://openagent3.xyz/downloads/x402-private-search",
    "agentUrl": "https://openagent3.xyz/skills/x402-private-search/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x402-private-search/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x402-private-search/agent.md"
  }
}
```
## Documentation

### x402 Client

Make HTTP requests to x402-protected APIs. The x402 protocol uses HTTP 402 responses to request payment — this skill handles signing USDC payments and retrying automatically.

### Prerequisites

Node.js 18+ installed
A Base Sepolia wallet with ETH (gas) and USDC (payments)

### 1. Install dependencies

bash <skill-dir>/scripts/setup.sh

This installs the x402 SDK to ~/.x402-client/. Only needed once.

### 2. Generate a wallet (if you don't have one)

node <skill-dir>/scripts/wallet-gen.mjs --out ~/.x402-client/wallet.key

### 3. Fund the wallet

Get testnet tokens from faucets:

Base Sepolia ETH (gas): https://www.alchemy.com/faucets/base-sepolia
Base Sepolia USDC (payments): https://faucet.circle.com/ → select Base Sepolia + USDC

Send both to the wallet address printed by wallet-gen.

### 4. Store the key

Set the environment variable for future use:

export X402_PRIVATE_KEY=$(cat ~/.x402-client/wallet.key)

Or pass --key-file ~/.x402-client/wallet.key to each request.

### Making Paid Requests

Use x402-fetch.mjs to make any x402-paid HTTP request:

# Search the web ($0.001 USDC per query)
node <skill-dir>/scripts/x402-fetch.mjs \\
  "https://<service-url>/web/search?q=latest+AI+news&count=5" \\
  --key-file ~/.x402-client/wallet.key

The script automatically:

Makes the HTTP request
If 402 received, parses payment requirements
Signs a USDC payment with your wallet
Retries with the payment header
Outputs the response JSON to stdout

All scripts must be run from ~/.x402-client/ (where node_modules lives):

cd ~/.x402-client && node <skill-dir>/scripts/x402-fetch.mjs "<url>" --key-file wallet.key

### Known Services

See references/services.md for a list of known x402 endpoints including a web search service.

### Troubleshooting

"insufficient funds": Wallet needs more USDC or ETH. Use faucets above.
402 with no auto-payment: Ensure setup.sh was run and you're executing from ~/.x402-client/.
Tunnel URL not working: The service URL may have changed. Ask the service operator or check /health.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: kodos-vibe
- Version: 1.0.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-private-search)
- [Send to Agent page](https://openagent3.xyz/skills/x402-private-search/agent)
- [JSON manifest](https://openagent3.xyz/skills/x402-private-search/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/x402-private-search/agent.md)
- [Download page](https://openagent3.xyz/downloads/x402-private-search)