闲社服务运行正常AI智能体自动化平台
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
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

智能代理支出

何时使用此技能

当用户提出以下请求时使用此技能:
  • - 从外部API查找数据
  • 调用端点
  • 在本地上下文之外获取/搜索信息
  • 使用外部API生成图像、视频、语音、转录或音乐
  • 从URL抓取/提取数据
  • 为任务查找API(是否有用于X的API?)

如果任务需要外部付费API,请先使用 agentspend search。

操作手册(默认工作流程)

  1. 1. npx agentspend search <任务>
  2. 与用户确认费用和限制(--max-cost、预算、白名单)
  3. npx agentspend pay <端点> --method ... --header ... --body ... --max-cost ...

设置

bash
npx agentspend configure

打开一个URL以添加信用卡并设置每周消费限额。将凭据保存到 ~/.agentspend/credentials.json。

如果已配置,重新运行将打开仪表板以更新设置。

命令

Pay(支付)

bash
npx agentspend pay

发起付费请求。AgentSpend自动处理支付。

选项:

  • - --method <方法> — HTTP方法(默认:GET)
  • --body <主体> — 请求主体(JSON或文本)
  • --header <标头> — 格式为 key:value 的标头(可重复)
  • --max-cost <美元> — 最大可接受费用(美元,最多6位小数)

返回:

  • - 端点的响应主体
  • 收费金额和剩余每周预算

示例:

bash
npx agentspend pay \
--method POST \
--header key:value \
--body {key: value} \
--max-cost 0.05

Check(检查)

bash
npx agentspend check

在不支付的情况下发现端点的价格。

重要提示:

  • - check 必须使用与计划 pay 相同的请求结构。
  • 对于非GET端点,始终传递 --method。
  • 如果端点需要标头/主体,请在 check 中包含相同的 --header 和 --body。
  • 如果请求结构错误,端点可能返回 404/400 而不是 402,且无法提取价格。

示例:

bash
npx agentspend check \
--method POST \
--header content-type:application/json \
--body {key:value}

返回:

  • - 价格(美元)
  • 描述(如有)

Search(搜索)

bash
npx agentspend search <关键词>

对目录中的服务名称和描述进行关键词搜索。返回最多5个匹配的服务。

示例:

bash
npx agentspend search 视频生成

Status(状态)

bash
npx agentspend status

显示账户支出概览。

返回:

  • - 每周预算
  • 本周已支出金额
  • 剩余预算
  • 最近的收费记录,包括金额、域名和时间戳

Configure(配置)

bash
npx agentspend configure

运行入门引导或打开仪表板以更新设置(每周预算、域名白名单、支付方式)。

支出控制

  • - 每周预算 — 在配置期间设置。超出预算的请求将被拒绝。
  • 每次请求最大费用 — 在 pay 中使用 --max-cost 拒绝超过价格阈值的请求。
  • 域名白名单 — 可通过仪表板配置。对不在白名单中的域名的请求将被拒绝。

常见错误

  • - WEEKLYBUDGETEXCEEDED — 已达到每周消费限额。运行 npx agentspend configure 以增加预算。
  • DOMAINNOTALLOWLISTED — 目标域名不在白名单中。运行 npx agentspend configure 以更新允许的域名。
  • PRICEEXCEEDSMAX — 端点价格高于 --max-cost。增加该值或移除该标志。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agentspend-1776419935 技能

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

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

通过命令行安装

skillhub install agentspend-1776419935

下载

⬇ 下载 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.
返回顶部