AgentSpend
/install agentspend
When To Use This Skill
Use this skill whenever the user asks to:
- find data from external APIs
- call an endpoint
- fetch/search information outside local context
- generate an image, video, voice, transcription, or music with an external API
- scrape/extract data from a URL
- find an API for a task ("is there an API for X?")
If the task needs an external paid API, start with agentspend search.
Playbook (Default Workflow)
npx agentspend search "\x3Ctask>"- Confirm cost and constraints with the user (
--max-cost, budget, allowlist) npx agentspend pay \x3Cendpoint> --method ... --header ... --body ... --max-cost ...
Setup
npx agentspend configure
Opens a URL to add a credit card and set a weekly spending limit. Saves credentials to ~/.agentspend/credentials.json.
If already configured, re-running opens the dashboard to update settings.
Commands
Pay
npx agentspend pay \x3Curl>
Make a paid request. AgentSpend handles the payment automatically.
Options:
--method \x3Cmethod>— HTTP method (default:GET)--body \x3Cbody>— Request body (JSON or text)--header \x3Cheader>— Header inkey:valueformat (repeatable)--max-cost \x3Cusd>— Maximum acceptable charge in USD (up to 6 decimal places)
Returns:
- Response body from the endpoint
- Charge amount and remaining weekly budget
Example:
npx agentspend pay \x3Curl> \
--method POST \
--header "key:value" \
--body '{"key": "value"}' \
--max-cost 0.05
Check
npx agentspend check \x3Curl>
Discover an endpoint's price without paying.
Important:
checkmust use the same request shape you plan topaywith.- Always pass
--methodfor non-GET endpoints. - If the endpoint needs headers/body, include the same
--headerand--bodyoncheck. - If request shape is wrong, endpoint may return
404/400instead of402, and no price can be extracted.
Example:
npx agentspend check \x3Curl> \
--method POST \
--header "content-type:application/json" \
--body '{"key":"value"}'
Returns:
- Price in USD
- Description (if available)
Search
npx agentspend search \x3Ckeywords>
Keyword search over service names and descriptions in the catalog. Returns up to 5 matching services.
Example:
npx agentspend search "video generation"
Status
npx agentspend status
Show account spending overview.
Returns:
- Weekly budget
- Amount spent this week
- Remaining budget
- Recent charges with amounts, domains, and timestamps
Configure
npx agentspend configure
Run onboarding or open the dashboard to update settings (weekly budget, domain allowlist, payment method).
Spending Controls
- Weekly budget — Set during configure. Requests that would exceed the budget are rejected.
- Per-request max cost — Use
--max-costonpayto reject requests above a price threshold. - Domain allowlist — Configurable via the dashboard. Requests to non-allowlisted domains are rejected.
Common Errors
WEEKLY_BUDGET_EXCEEDED— Weekly spending limit reached. Runnpx agentspend configureto increase the budget.DOMAIN_NOT_ALLOWLISTED— The target domain is not in the allowlist. Runnpx agentspend configureto update allowed domains.PRICE_EXCEEDS_MAX— Endpoint price is higher than--max-cost. Increase the value or remove the flag.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentspend - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentspend触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AgentSpend 是什么?
Set up and manage cards and crypto wallets for paying for services. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 672 次。
如何安装 AgentSpend?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentspend」即可一键安装,无需额外配置。
AgentSpend 是免费的吗?
是的,AgentSpend 完全免费(开源免费),可自由下载、安装和使用。
AgentSpend 支持哪些平台?
AgentSpend 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AgentSpend?
由 João Bonchristiano(@jpbonch)开发并维护,当前版本 v0.1.3。