Agentspend
Skill by jpbonch
Why use this skill?
Use Agentspend to seamlessly pay for and integrate external APIs into your OpenClaw workflows. Manage budgets, find services, and execute API requests safely.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jpbonch/agentspendWhat This Skill Does
Agentspend is a specialized OpenClaw skill designed to bridge the gap between local agent capabilities and the vast ecosystem of paid external APIs. By providing a secure, CLI-based wrapper for financial transactions, it enables the agent to procure services ranging from high-end media generation and web scraping to real-time financial data access. The skill acts as an intermediary, allowing the agent to discover available services, perform price checks, and execute payments transparently, ensuring that every external request is authorized and cost-controlled.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/jpbonch/agentspend
Once installed, you must initialize your billing profile by running:
npx agentspend configure
This command will launch a secure browser window allowing you to register a payment method and set your maximum weekly spending limits. All billing credentials are encrypted and stored locally in ~/.agentspend/credentials.json for secure access during task execution.
Use Cases
The primary utility of Agentspend is to expand the agent's reach beyond its core local features. Common use cases include:
- Multimedia Creation: Generating custom images, AI-driven videos, or high-fidelity music files using paid specialized APIs.
- Market Intelligence: Fetching real-time stock quotes, cryptocurrency data, or premium financial reports.
- Web Intelligence: Performing advanced web scraping, taking high-quality screenshots of dynamic pages, or converting complex file formats that are not supported locally.
- Service Discovery: Programmatically searching for an appropriate API when a user requests a task the agent cannot fulfill out of the box.
Example Prompts
- "Agentspend, search for an API that can convert a PDF into a high-quality Excel spreadsheet, check the price for a 5-page document, and then process it."
- "I need a 30-second video of a sunset over a neon city; find a suitable service, confirm it costs under $2.00, and generate the video for me."
- "Check the current stock price for AAPL and TSLA using the financial data API, and let me know if it fits within my weekly budget."
Tips & Limitations
- Pre-flight Checks: Always use
npx agentspend check <url>before authorizing a payment. This prevents accidental overspending by verifying the exact cost of an API call beforehand. - Budget Management: Regularly run
npx agentspend statusto keep track of your weekly expenditures. - Precision: When using the
--max-costflag, provide values up to 6 decimal places to ensure strict adherence to your budget. - Compatibility: Ensure that your
--method,--header, and--bodyarguments match the API documentation exactly during both thecheckandpayphases, or the endpoint may return an error rather than a quote.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jpbonch-agentspend": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api