← 返回
开发者工具 中文

x402 Private Web Tools

Private web tools for AI agents — search, scrape, and screenshot the web with x402 micropayments (USDC on Base). Zero logging, no API keys, no accounts. Pay...
面向 AI 代理的私密网页工具——搜索、抓取、截图,使用 x402 微支付(Base 上的 USDC)。零日志、无 API 密钥、无需账户。按需付费。
kodos-vibe kodos-vibe 来源
开发者工具 clawhub v1.0.0 1 版本 99907.7 Key: 无需
★ 0
Stars
📥 1,083
下载
💾 12
安装
1
版本
#latest

概述

x402 Private Web Tools

Search, scrape, and screenshot the web privately. Uses the x402 payment protocol — your agent pays per request with USDC on Base mainnet. No API keys, no accounts, no logging.

Services:

  • 🔍 Web Search — Multi-engine private search ($0.002/query)
  • 🕸️ Web Scrape — Extract clean markdown from any URL ($0.005/page)
  • 📸 Screenshot — Capture any URL as PNG/JPEG ($0.002/shot)

Gateway: https://search.reversesandbox.com

Prerequisites

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

First-Time Setup

1. Install dependencies

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

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

Send USDC and a small amount of ETH (for gas) on Base mainnet to the wallet address printed by wallet-gen.

  • USDC on Base: Bridge from any chain or buy on an exchange
  • ETH on Base: ~$0.50 is enough for thousands of requests

4. Store the key

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

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

Usage

All commands run from ~/.x402-client/:

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

Web Search ($0.002/query)

node <skill-dir>/scripts/x402-fetch.mjs \
  "https://search.reversesandbox.com/web/search?q=latest+AI+news&count=10" \
  --key-file ~/.x402-client/wallet.key

Parameters: q (required), count (1-20, default 10), offset (default 0)

Response:

{
  "query": { "original": "latest AI news" },
  "web": {
    "results": [
      { "title": "...", "url": "...", "description": "..." }
    ]
  }
}

Web Scrape ($0.005/page)

node <skill-dir>/scripts/x402-fetch.mjs \
  "https://search.reversesandbox.com/scrape/extract" \
  --method POST \
  --body '{"url": "https://example.com", "format": "markdown"}' \
  --key-file ~/.x402-client/wallet.key

Body (JSON): url (required), format ("markdown"|"text", default "markdown"), includeLinks (bool), timeout (ms)

Response:

{
  "title": "Example Domain",
  "content": "# Example Domain\nThis domain is for use in...",
  "url": "https://example.com",
  "timestamp": "2026-02-16T09:00:00.000Z",
  "format": "markdown"
}

Screenshot ($0.002/shot)

node <skill-dir>/scripts/x402-fetch.mjs \
  "https://search.reversesandbox.com/screenshot/?url=https://example.com&width=1280&height=720" \
  --key-file ~/.x402-client/wallet.key \
  --save screenshot.png

Parameters: url (required), format (png|jpeg, default png), width (320-3840), height (200-2160), fullPage (true|false), quality (1-100, jpeg only)

Returns: Binary PNG or JPEG image. Use --save to write to disk.

MCP Server

For MCP-compatible agents (Claude, etc.), use the MCP server:

# Install
npm install -g x402-tools-mcp

# Run (set your wallet key)
X402_PRIVATE_KEY=0x... x402-tools-mcp

GitHub: https://github.com/kodos-vibe/x402-tools-mcp

Provides tools: web_search, web_scrape, screenshot

Free Endpoints (no payment required)

  • GET /health — Service status
  • GET /routes — List all endpoints with prices

Troubleshooting

  • "insufficient funds": Wallet needs more USDC or ETH on Base mainnet.
  • 402 with no auto-payment: Ensure setup.sh was run and you're in ~/.x402-client/.
  • Slow scrape (10s+): Complex JS-heavy pages take longer. Use the timeout parameter.
  • Empty search results: Try different query terms. Some niche queries may return fewer results.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 08:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,233 📥 268,690
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,388 📥 321,381
dev-programming

x402 Private Search

kodos-vibe
使用 x402 HTTP 支付协议(Base Sepolia 上的 USDC)发起付费 API 请求。当需要访问受 x402 保护的服务时使用。
★ 0 📥 1,080