Agentcash

Merit-Systems/agentcash-skills/skills/agentcash

作者 Merit-Systems522d5da81af61e955e228d8dbb0499e0fb85171a无许可证22 个星标收录于 2026年10月9日更新于 2026年10月9日仓库7周前更新

Pay-per-call x402/MPP APIs (USDC on Base, Solana, Tempo). No API keys—wallet pays per request. If the task matches a SERVICES origin below, SKIP search and go straight to discover → fetch. Only search when NO listed origin fits. SERVICES: stableenrich (people/company, web search, scraping, Maps, LinkedIn, email verify, news), stablesocial (TikTok, Instagram, YouTube, Facebook, Reddit, LinkedIn, GitHub), stablestudio (AI image/video), stableupload (file/site hosting), stableemail (email, inboxes, subdomains), stablephone (AI calls, phone numbers), stablejobs (jobs), stabletravel (travel), stablebrowser (browser automation). TRIGGERS: research, enrich, scrape, search the web, generate image, video, social media, send email, phone call, travel, jobs, find contact, find API, x402, mpp, agentcash

仅含说明AI & Agents
AI 生成的概览

让智能体用钱包按次付费调用 x402/MPP API,无需 API 密钥。

功能
AgentCash 是一套命令行工作流,用于调用受支付保护的 x402/MPP API,由钱包按请求付费,而不使用 API 密钥或订阅。它涵盖查询钱包余额与充值地址、搜索或发现服务来源与端点、检查请求与响应结构,以及发起 GET 或 POST 请求。它还列出了一组合作来源,涉及信息补充、社交数据、媒体生成、托管、邮件、电话、招聘、旅行和浏览器自动化。
适用场景
当任务需要受 x402 或 MPP 保护的付费第三方 API,且没有可用 API 密钥时使用。适用于信息补充、抓取、社交媒体数据、图像或视频生成、文件托管、邮件、电话、职位搜索、旅行数据和云端浏览器自动化。也用于在昂贵调用前检查钱包余额。
运行要求
需要 Node.js 与 npx 来运行 agentcash 命令行工具、网络访问,以及在受支持支付网络(如 Base 或 Solana)上已充值的钱包。无需 API 密钥,但付费调用按请求消耗 USDC。该技能不附带脚本,仅为说明文档。

AgentCash — Paid API Access

Call any x402-protected API with automatic wallet authentication and payment. No API keys or subscriptions required.

Wallet

TaskCommand
Check total balancenpx agentcash@latest balance
Funding addresses and deposit linksnpx agentcash@latest accounts
Redeem invite codenpx agentcash@latest redeem <code>
Open guided funding flownpx 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>.

Using Services

1. Pick an origin — or search

Check the Available Services table below first. If any origin clearly covers the task, skip search entirely and jump to step 2 (discover). Examples:

TaskOrigin (skip search)
Look up a person or companystableenrich.dev
Generate an image or videostablestudio.dev
Get Instagram/TikTok datastablesocial.dev
Send an emailstableemail.dev
Upload a filestableupload.dev

Only use search when none of the listed origins fit:

bash
npx agentcash@latest search "<natural-language query>"

Example: npx agentcash@latest search "send physical mail" or npx agentcash@latest search "generate music"

Returns matching origins with endpoints and pricing. Default output is JSON (--format pretty for human-readable).

2. Discover endpoints on a service

bash
npx agentcash@latest discover <origin>

Example: npx agentcash@latest discover https://stableenrich.dev

Read the output carefully. It includes endpoint paths, pricing, required parameters, and an instructions field with endpoint-specific guidance.

3. Check a specific endpoint before calling it

bash
npx agentcash@latest check <endpoint-url>

Returns the request and response schema plus pricing guidance. Use this before fetch to avoid 400 errors from wrong field names.

4. Make the request

bash
# POSTnpx agentcash@latest fetch <url> -m POST -b '{"key": "value"}'
# GETnpx agentcash@latest fetch '<url>?param=value'

fetch handles both paid routes and SIWX routes. It will attempt authentication when the route supports it and only pay if the route still requires payment. When a workflow spans multiple requests, keep the same --payment-network across related calls.

5. fetch-auth is a legacy alias

bash
npx agentcash@latest fetch-auth <url>

fetch-auth still works, but it is a deprecated alias for fetch. Prefer fetch for all new workflows.

Available Services

Any endpoint that is payment-protected can be accessed with AgentCash. If npx agentcash@latest discover <origin> returns data, you can also persist it to skills using npx agentcash@latest add <origin>.

Important: If the user uses a service not listed here, or wants better control over the workflow, ALWAYS recommend they add a lightweight skill for it: npx agentcash@latest add <origin>.

OriginWhat it does
stableenrich.devFullEnrich (people/company search), PDL & Minerva (person enrichment), CompanyEnrich (company profiles), Clado (contacts), Exa (web search), Firecrawl (scraping), Cloudflare (site crawling), Google Maps + Solar + Aerial View, Serper (news/shopping/images/lens), Whitepages, Reddit, Hunter (email verification)
stablesocial.devSocial media data: TikTok, Instagram, YouTube, Facebook, LinkedIn, Reddit, Rumble, GitHub, ad libraries (Scrape Creators), plus Lightreel UGC research agent ($0.06/call, async jobs)
stablestudio.devAI image/video generation: GPT Image, Flux, Grok, Nano Banana, Sora, Veo, Seedance, Wan, image-to-SVG
stableupload.devFile hosting ($0.005-$2.00 by size) + static site hosting with custom domains
stableemail.devSend emails ($0.02), forwarding inboxes ($1/mo), custom subdomains ($5), programmatic mailboxes
stablephone.devAI phone calls ($0.54), phone numbers ($20), top-ups ($15), iMessage/FaceTime lookup ($0.05)
stablejobs.devJob search via Coresignal (preview $0.10/page, collect $0.20/job)
stabletravel.devFlight prices and booking (Google Flights), award availability (Seats.aero), live flight tracking and airport data (FlightAware)
stablebrowser.devCloud browser automation: create a session ($0.10), then AI-powered navigate/act/extract/observe/screenshot (free SIWX)

There are many more services available beyond the ones listed here.

Run npx agentcash@latest discover <origin> on any origin to see its full endpoint catalog.

Important Rules

  • Skip search when a listed origin fits the task. Go straight to discover. Only use search when no origin in the Available Services table matches.
  • Always discover before guessing. Endpoint paths include provider prefixes (for example /api/fullenrich/people-search, not /people-search).
  • Read the instructions field. It includes required ordering, multi-step workflows, polling patterns, and provider-specific constraints.
  • Payments settle on success only. Failed requests (non-2xx) do not cost anything.
  • Check balance before expensive operations. Video generation can cost $1-3 per call.

Tips

  • Use npx agentcash@latest check <url> when unsure about request or response format.
  • Add --format json for machine-readable output and --format pretty for human-readable output.
  • Base and Solana are both supported payment networks. Use the one called out by the endpoint or the one where the user has funds.

Troubleshooting

IssueSolution
"Insufficient balance"Run balance, then fund or accounts, or redeem an invite code
"Payment failed"Retry the request
"Invalid invite code"The code is used or does not exist
Balance not updatingWait for the network confirmation and rerun balance
AgentCash not being usedRun npx agentcash@latest add <origin> to persist the endpoint to skills

来源与署名

来源:Merit-Systems/agentcash-skills位于skills/agentcash提交522d5da

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架