Enable AI agents to make micropayments via x402 protocol. Use when purchasing browser sessions on Browserbase, scraping with Firecrawl, or any x402-compatible API. Handles wallet creation, funding, and automatic payment flows.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install openkrill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install openkrill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/openkrill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: openkrill description: Enable AI agents to make micropayments via x402 protocol. Use when purchasing browser sessions on Browserbase, scraping with Firecrawl, or any x402-compatible API. Handles wallet creation, funding, and automatic payment flows. license: MIT compatibility: Requires network access and thirdweb API key (THIRDWEB_SECRET_KEY environment variable) metadata: author: emilankerwiik version: "1.2" openclaw: requires: env: - THIRDWEB_SECRET_KEY primaryEnv: THIRDWEB_SECRET_KEY ---
This skill enables AI agents to autonomously make micropayments using the x402 protocol. It handles wallet management, balance checking, and automatic payment flows when APIs return HTTP 402 Payment Required responses.
> TIP: When a user or agent asks what services are available for purchase, always start by querying the Bazaar discovery endpoint. It provides a live, up-to-date catalog of 12,000+ x402-compatible services.
# Query the Bazaar to see what's available (no auth required)
curl -s "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources?type=http&limit=50"
Before using this skill, ensure:
| Type | Description | Example | |------|-------------|---------| | True x402 | Fully keyless - no API keys needed, just pay and use | Browserbase | | Hybrid x402 | Requires API key/token + payment header | Firecrawl |
| Service | Standard API | x402 Endpoint | Type | Status | |---------|-------------|---------------|------|--------| | Browserbase | api.browserbase.com | x402.browserbase.com | True x402 | ✅ Works | | Firecrawl | api.firecrawl.dev/v1/search | api.firecrawl.dev/v1/x402/search | Non-standard | ❌ Broken |
Discovery tips:
x402. subdomain (e.g., x402.browserbase.com)/x402/ in the path (e.g., /v1/x402/search)curl https://x402.browserbase.com/)Use the thirdweb API directly (recommended):
curl -s -X POST https://api.thirdweb.com/v1/wallets/server \
-H "Content-Type: application/json" \
-H "x-secret-key: $THIRDWEB_SECRET_KEY" \
-d '{"identifier": "x402-agent-wallet"}'
The response will include the wallet address. Store this for subsequent operations.
Call the thirdweb x402 fetch API directly:
# Browserbase - Create browser session
curl -s -X POST "https://api.thirdweb.com/v1/payments/x402/fetch?url=https://x402.browserbase.com/browser/session/create&method=POST" \
-H "Content-Type: application/json" \
-H "x-secret-key: $THIRDWEB_SECRET_KEY" \
-d '{"browserSettings": {"viewport": {"width": 1920, "height": 1080}}}'
Success: The API returns the session data directly.
Insufficient Funds: If the wallet needs funding, the API returns:
{
"result": {
"message": "This endpoint requires 0.002 USDC on chain id 8453...",
"link": "https://thirdweb.com/pay?chain=8453&receiver=0x...&token=0x..."
}
}
When you receive a payment link, open it in the user's browser:
This opens thirdweb's payment page where users can fund the wallet.
URL: https://api.thirdweb.com/v1/payments/x402/fetch
Method: POST
Query Parameters: | Parameter | Required | Description | |-----------|----------|-------------| | url | Yes | Target API URL to call | | method | Yes | HTTP method (GET, POST, etc.) | | from | No | Wallet address for payment (uses default project wallet if omitted) | | maxValue | No | Maximum payment amount in wei | | asset | No | Payment token address (defaults to USDC) | | chainId | No | Chain ID for payment (e.g., "eip155:8453" for Base) |
Headers:
x-secret-key: Your thirdweb project secret key (required)Content-Type: application/jsonx402 Endpoint: https://x402.browserbase.com Pricing: $0.12/hour (paid in USDC on Base)
| Endpoint | Method | Description | |----------|--------|-------------| | /browser/session/create | POST | Create a browser session | | /browser/session/:id/status | GET | Check session status | | /browser/session/:id/extend | POST | Add more time | | /browser/session/:id | DELETE | Terminate session |
curl -s -X POST "https://api.thirdweb.com/v1/payments/x402/fetch?url=https://x402.browserbase.com/browser/session/create&method=POST" \
-H "Content-Type: application/json" \
-H "x-secret-key: $THIRDWEB_SECRET_KEY" \
-d '{"browserSettings": {"viewport": {"width": 1920, "height": 1080}}}'
x402 Endpoint: https://api.firecrawl.dev/v1/x402/search Pricing: $0.01/request Status: ⚠️ Incomplete implementation - cannot be used with thirdweb
> WARNING: Firecrawl's x402 implementation is non-standard and currently unusable for automated agents: > > 1. Returns 401 Unauthorized instead of 402 Payment Required > 2. Doesn't include payment details (payTo address, asset, amount) in response > 3. Documentation says to use X-Payment: {{paymentHeader}} but doesn't explain how to generate it > > Comparison with proper x402 (Browserbase): > - Browserbase: Returns 402 with x402Version, accepts, payTo, asset → thirdweb can auto-pay > - Firecrawl: Returns 401 with just {"error":"Unauthorized"} → no payment info provided
| Endpoint | Method | Status | |----------|--------|--------| | /v1/x402/search | POST | ❌ Non-functional for agents |
Recommended alternatives:
Reference: Firecrawl x402 docs
Base URL: https://api.mail.tm Pricing: Free (no x402 payment required)
Mail.tm allows agents to create email addresses for signups and receive verification emails.
| Endpoint | Method | Auth | Description | |----------|--------|------|-------------| | /domains | GET | No | Get available email domains | | /accounts | POST | No | Create an email account | | /token | POST | No | Get authentication token | | /messages | GET | Yes | List all messages | | /messages/:id | GET | Yes | Get full message content | | /me | GET | Yes | Get account info |
# 1. Get available domain
DOMAIN=$(curl -s https://api.mail.tm/domains | jq -r '.["hydra:member"][0].domain')
...安装 openkrill 后,可以对 AI 说这些话来触发它
Help me get started with openkrill
Explains what openkrill does, walks through the setup, and runs a quick demo based on your current project
Use openkrill to aI agents to make micropayments via x402 protocol
Invokes openkrill with the right parameters and returns the result directly in the conversation
What can I do with openkrill in my finance & investment workflow?
Lists the top use cases for openkrill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/openkrill/ 目录(个人级,所有项目可用),或 .claude/skills/openkrill/(项目级)。重启 AI 客户端后,用 /openkrill 主动调用,或让 AI 根据上下文自动发现并使用。
openkrill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
openkrill 可免费安装使用。请查阅仓库了解许可证信息。
Enable AI agents to make micropayments via x402 protocol. Use when purchasing browser sessions on Browserbase, scraping with Firecrawl, or any x402-compatible API. Handles wallet creation, funding, and automatic payment flows.
openkrill 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using openkrill
Identifies repetitive steps in your workflow and sets up openkrill to handle them automatically