← 返回
开发者工具 中文

Agentcash Wallet

Manage your agentcash wallet and call any x402-protected API with automatic payment. No API keys, no subscriptions — just a funded wallet (USDC on Base). USE...
管理您的 agentcash 钱包,并自动付费调用任何 x402 保护的 API。无需 API 密钥或订阅,仅需一个充值的钱包(Base 链上的 USDC)。
fmhall
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 933
下载
💾 5
安装
1
版本
#latest

概述

agentcash Wallet & Paid APIs

Call any x402-protected API with automatic payment. Payment is the authentication — no API keys or subscriptions needed.

Setup

If the agentcash CLI is not yet installed, see rules/getting-started.md for installation and wallet setup.

Wallet Management

Your wallet is auto-created on first use and stored at ~/.agentcash/wallet.json.

Check Balance

npx agentcash wallet info

Returns wallet address, USDC balance, and deposit link. Always check before expensive operations.

Redeem Invite Code

npx agentcash wallet redeem YOUR_CODE

One-time use per code. Credits added instantly. Run npx agentcash wallet info after to verify.

Deposit USDC

  1. Get your wallet address via npx agentcash wallet info
  2. Send USDC on Base network (eip155:8453) to that address
  3. Or use the deposit UI: https://x402scan.com/mcp/deposit/

Important: Only Base network USDC. Other networks or tokens will be lost.

Calling Paid APIs

1. Discover endpoints

npx agentcash discover https://stableenrich.dev

Returns all endpoints, pricing, and usage instructions. Read the instructions field — it has critical endpoint-specific guidance.

2. Check schema (optional)

npx agentcash check https://stableenrich.dev/api/apollo/people-search

Returns full request/response JSON schemas and pricing for a specific endpoint.

3. Make a paid request

npx agentcash fetch https://stableenrich.dev/api/apollo/people-search -m POST -b '{"person_titles": ["CEO"], "person_locations": ["San Francisco"]}'

Payment is automatic: sends request, gets 402 challenge, signs USDC payment, retries with credential, returns result. Payments settle only on success (2xx) — failed requests cost nothing.

Available Services

OriginServiceWhat it does
---------
https://stableenrich.devStableEnrichResearch APIs: Apollo (people/org), Exa (web search), Firecrawl (scraping), Grok (X/Twitter), Google Maps, Clado (LinkedIn), Serper (news/shopping), WhitePages, Reddit, Hunter (email verification), Influencer enrichment
https://stableupload.devStableUploadPay-per-upload file hosting. 10MB/$0.02, 100MB/$0.20, 1GB/$2.00. 6-month TTL
https://stablestudio.devStableStudioAI image/video generation: GPT Image, Flux, Grok, Nano Banana, Sora, Veo, Seedance, Wan
https://stablesocial.devStableSocialSocial media data: TikTok, Instagram, X/Twitter, Facebook, Reddit, LinkedIn. $0.06/call, async two-step
https://stableemail.devStableEmailSend emails ($0.02), forwarding inboxes ($1/mo), custom subdomains ($5)
https://stablephone.devStablePhoneAI phone calls ($0.54), phone numbers ($20), top-ups ($15)
https://stablejobs.devStableJobsJob search via Coresignal

Run npx agentcash discover on any origin to see its full endpoint catalog.

Quick Reference

TaskCommand
---------------
Check balancenpx agentcash wallet info
Redeem codenpx agentcash wallet redeem
Discover endpointsnpx agentcash discover
Check pricing/schemanpx agentcash check
Paid POST requestnpx agentcash fetch -m POST -b '{...}'
Paid GET requestnpx agentcash fetch

Tips

  • Always discover first — the instructions field has critical endpoint-specific patterns and required parameters.
  • Payments settle only on success (2xx) — failed requests cost nothing.
  • Use npx agentcash check when unsure about request/response format.
  • Add --format json for machine-readable output, --format pretty for human-readable.
  • Add -v for verbose output to see payment details.
  • Network: Base (eip155:8453), Currency: USDC.

Troubleshooting

IssueSolution
-----------------
"Command not found"Run npm install -g agentcash
"Insufficient balance"Check balance, deposit USDC or redeem invite code
"Payment failed"Transient error — retry the request
"Invalid invite code"Code already used or doesn't exist
Balance not updatingWait for Base network confirmation (~2 sec)

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 11:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 426 📥 118,047
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,846
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,740