Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
agentspend 0.1.3 - Updated documentation to improve clarity and focus. - Streamlined the "When to Use" and command sections for a simpler, more focused guide. - Omitted some detailed workflow and error descriptions for brevity. - No functional or file changes.
What This Skill Does
agentspend is a CLI tool that lets agents call external paid APIs by handling payment automatically. It includes a searchable catalog of services, per-request cost controls, and a weekly spending budget. Configure once with a credit card, then call any supported endpoint from the command line.
Instead of managing separate API keys and billing accounts for each external service, agentspend provides a single payment layer with built-in budget controls across all calls.
When to use it
- Fetching real-time stock prices during a financial analysis task
- Generating an image when no local model is available
- Scraping a webpage that requires a paid extraction service
- Getting current weather data for a location-aware workflow
- Converting a file format via an external conversion API
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: find a service to generate a video from a text prompt and create one
- 1Run `npx agentspend search "video generation"` to find matching services
- 2Review returned services, prices, and descriptions
- 3Run `npx agentspend check <endpoint> --method POST --body '{"prompt":"..."}' ` to confirm price
- 4Confirm cost and max-cost limit with user
- 5Run `npx agentspend pay <endpoint> --method POST --body '{"prompt":"..."}' --max-cost 0.10`
Video generated and returned from the endpoint; charge amount and remaining weekly budget displayed
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.