返回顶部
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
安全检测
已通过
671
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agentspend

何时使用此技能

当用户提出以下请求时使用此技能:
  • - 从外部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.

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

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

p2p_official_large
返回顶部