返回顶部
a

agentspend

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.3
安全检测
已通过
621
下载量
0
收藏
概述
安装方式
版本历史

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) 1. `npx agentspend search "<task>"` 2. Confirm cost and constraints with the user (`--max-cost`, budget, allowlist) 3. `npx agentspend pay <endpoint> --method ... --header ... --body ... --max-cost ...` ## Setup ```bash 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 ```bash npx 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:** ```bash npx agentspend pay <url> \ --method POST \ --header "key:value" \ --body '{"key": "value"}' \ --max-cost 0.05 ``` ### Check ```bash 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:** ```bash npx agentspend check <url> \ --method POST \ --header "content-type:application/json" \ --body '{"key":"value"}' ``` **Returns:** - Price in USD - Description (if available) ### Search ```bash npx agentspend search <keywords> ``` Keyword search over service names and descriptions in the catalog. Returns up to 5 matching services. **Example:** ```bash npx agentspend search "video generation" ``` ### Status ```bash npx agentspend status ``` Show account spending overview. **Returns:** - Weekly budget - Amount spent this week - Remaining budget - Recent charges with amounts, domains, and timestamps ### Configure ```bash 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-cost` on `pay` to 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. 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agentspend-1776419935 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agentspend-1776419935 技能

通过命令行安装

skillhub install agentspend-1776419935

下载 Zip 包

⬇ 下载 agentspend v0.1.3

文件大小: 15.03 KB | 发布时间: 2026-4-17 18:24

v0.1.3 最新 2026-4-17 18:24
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部