agentcash

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AgentCash — Wallet and Paid API Access

AgentCash — 钱包与付费API访问

Call any x402-protected API with automatic wallet authentication and payment. No API keys or subscriptions required.
通过自动钱包认证和支付功能,调用任意受x402保护的API。无需API密钥或订阅服务。

Wallet

钱包功能

TaskCommand
Check total balance
npx agentcash@latest balance
Funding addresses and deposit links
npx agentcash@latest accounts
Redeem invite code
npx agentcash@latest redeem <code>
Open guided funding flow
npx agentcash@latest fund
Use
balance
when you only need to know whether paid calls are affordable. Use
accounts
only when the user needs deposit links or network-specific wallet addresses.
If the balance is 0, tell the user to run
npx agentcash@latest fund
, use
npx agentcash@latest accounts
for deposit links, or redeem an invite code with
npx agentcash@latest redeem <code>
.
任务命令
查看总余额
npx agentcash@latest balance
获取充值地址与存款链接
npx agentcash@latest accounts
兑换邀请码
npx agentcash@latest redeem <code>
打开引导式充值流程
npx agentcash@latest fund
当仅需确认是否有足够余额进行付费调用时,使用
balance
命令。仅当用户需要存款链接或特定网络的钱包地址时,使用
accounts
命令。
如果余额为0,请告知用户运行
npx agentcash@latest fund
,或使用
npx agentcash@latest accounts
获取存款链接,也可通过
npx agentcash@latest redeem <code>
兑换邀请码。

Service Workflow

服务工作流

  1. Run
    npx agentcash@latest discover <origin>
    to inspect the origin.
  2. Run
    npx agentcash@latest check <endpoint-url>
    before calling a new endpoint.
  3. Run
    npx agentcash@latest fetch <url>
    for both paid and SIWX routes.
  4. Treat
    npx agentcash@latest fetch-auth <url>
    as a deprecated alias kept only for compatibility.
  1. 运行
    npx agentcash@latest discover <origin>
    来检查源地址。
  2. 在调用新端点前,运行
    npx agentcash@latest check <endpoint-url>
  3. 对于付费和SIWX路由,运行
    npx agentcash@latest fetch <url>
  4. npx agentcash@latest fetch-auth <url>
    是已弃用的别名,仅为兼容保留。

Important Rules

重要规则

  • Discover before guessing endpoint paths.
  • Read the
    instructions
    field from discovery output.
  • Check
    balance
    before expensive operations.
  • Use the same
    --payment-network
    across related requests when a workflow spans multiple calls.
  • 不要猜测端点路径,先执行discover操作。
  • 阅读discover输出结果中的
    instructions
    字段。
  • 在执行高成本操作前,先检查余额。
  • 当工作流包含多个调用时,相关请求需使用相同的
    --payment-network
    参数。