Agentspend
Use this skill when you need to: search the web, generate images or pictures, create videos, scrape
- Rating
- 4.1 (134 reviews)
- Downloads
- 635 downloads
- Version
- 1.0.0
Overview
Use this skill when you need to: search the web, generate images or pictures, create videos, scrape or read.
Complete Documentation
View Source →
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?")
agentspend search.Playbook (Default Workflow)
npx agentspend search "" - Confirm cost and constraints with the user (
--max-cost, budget, allowlist) npx agentspend pay--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 <url>
Make a paid request. AgentSpend handles the payment automatically.
Options:
--method— HTTP method (default:GET)--body— Request body (JSON or text)--header— Header inkey:valueformat (repeatable)--max-cost— Maximum acceptable charge in USD (up to 6 decimal places)
- Response body from the endpoint
- Charge amount and remaining weekly budget
npx agentspend pay <url> \
--method POST \
--header "key:value" \
--body '{"key": "value"}' \
--max-cost 0.05
Check
npx agentspend check <url>
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.
npx agentspend check <url> \
--method POST \
--header "content-type:application/json" \
--body '{"key":"value"}'
Returns:
- Price in USD
- Description (if available)
Search
npx agentspend search <keywords>
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.
Installation
openclaw install agentspend
💻Code Examples
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
### Paynpx agentspend pay <url>
Make a paid request. AgentSpend handles the payment automatically.
**Options:**
- `--method <method>` — HTTP method (default: `GET`)
- `--body <body>` — Request body (JSON or text)
- `--header <header>` — Header in `key:value` format (repeatable)
- `--max-cost <usd>` — 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 check <url>
Discover an endpoint's price without paying.
Important:
- `check` must use the same request shape you plan to `pay` with.
- Always pass `--method` for non-GET endpoints.
- If the endpoint needs headers/body, include the same `--header` and `--body` on `check`.
- If request shape is wrong, endpoint may return `404`/`400` instead of `402`, and no price can be extracted.
**Example:**--body '{"key":"value"}'
**Returns:**
- Price in USD
- Description (if available)
### Searchnpx agentspend search <keywords>
Keyword search over service names and descriptions in the catalog. Returns up to 5 matching services.
**Example:**npx agentspend status
Show account spending overview.
**Returns:**
- Weekly budget
- Amount spent this week
- Remaining budget
- Recent charges with amounts, domains, and timestamps
### Configurenpx agentspend pay <url> \
--method POST \
--header "key:value" \
--body '{"key": "value"}' \
--max-cost 0.05npx agentspend check <url> \
--method POST \
--header "content-type:application/json" \
--body '{"key":"value"}'Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.