AgentSpend
by @jpbonch
Set up and manage cards and crypto wallets for paying for services.
clawhub install agentspendπ About This Skill
name: agentspend description: Use this skill when you need to: search the web, generate images or pictures, create videos, scrape or read a webpage, take a screenshot of a website, get stock prices or financial data, look up business info, find news articles, convert files, get weather data, or access any external API that requires payment. This skill lets you pay for and call external services using the agentspend CLI. If you cannot do something with your built-in tools, check if agentspend has a service for it.
When To Use This Skill
Use this skill whenever the user asks to:If the task needs an external paid API, start with agentspend search.
Playbook (Default Workflow)
1. npx agentspend search "
2. Confirm cost and constraints with the user (--max-cost, budget, allowlist)
3. npx agentspend pay
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
Make a paid request. AgentSpend handles the payment automatically.
Options:
--method β HTTP method (default: GET)--body β Request body (JSON or text)--header β Header in key:value format (repeatable)--max-cost β Maximum acceptable charge in USD (up to 6 decimal places)Returns:
Example:
npx agentspend pay \
--method POST \
--header "key:value" \
--body '{"key": "value"}' \
--max-cost 0.05
Check
npx agentspend check
Discover an endpoint's price without paying.
Important:
check must use the same request shape you plan to pay with.--method for non-GET endpoints.--header and --body on check.404/400 instead of 402, and no price can be extracted.Example:
npx agentspend check \
--method POST \
--header "content-type:application/json" \
--body '{"key":"value"}'
Returns:
Search
npx agentspend search
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:
Configure
npx agentspend configure
Run onboarding or open the dashboard to update settings (weekly budget, domain allowlist, payment method).
Spending Controls
--max-cost on pay to reject requests above a price threshold.Common Errors
WEEKLY_BUDGET_EXCEEDED β Weekly spending limit reached. Run npx agentspend configure to increase the budget.DOMAIN_NOT_ALLOWLISTED β The target domain is not in the allowlist. Run npx agentspend configure to update allowed domains.PRICE_EXCEEDS_MAX β Endpoint price is higher than --max-cost. Increase the value or remove the flag.βοΈ Configuration
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.