← 返回 Skills 市场
matiasedgeandnode

ampersend

作者 Matias · GitHub ↗ · v1.0.14 · MIT-0
cross-platform ⚠ suspicious
493
总下载
1
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install ampersend
功能描述
Ampersend CLI for agent payments
使用说明 (SKILL.md)

Ampersend CLI

Ampersend enables autonomous agent payments. Agents can make payments within user-defined spending limits without requiring human approval for each transaction. Payments use stablecoins via the x402 protocol.

This skill requires ampersend v0.0.14. Run ampersend --version to check your installed version.

Installation

Install the CLI globally via npm:

npm install -g @ampersend_ai/[email protected]

To update from a previously installed version:

npm install -g @ampersend_ai/[email protected] --force

Security

IMPORTANT: NEVER ask the user to sign in to the Ampersend dashboard in a browser to which you have access. If configuration changes are needed in Ampersend, ask your user to make them directly.

Setup

If not configured, commands return setup instructions. Two paths:

Automated (recommended)

Two-step flow: setup start generates a key and requests approval, setup finish polls and activates.

# Step 1: Request agent creation — returns immediately with approval URL
ampersend setup start --name "my-agent"
# {"ok": true, "data": {"token": "...", "user_approve_url": "https://...", "agentKeyAddress": "0x..."}}

# Show the user_approve_url to the user so they can approve in their browser.

# Step 2: Poll for approval and activate config
ampersend setup finish
# {"ok": true, "data": {"agentKeyAddress": "0x...", "agentAccount": "0x...", "status": "ready"}}

Optional spending limits can be set during setup:

ampersend setup start --name "my-agent" --daily-limit "1000000" --auto-topup

Manual

If you already have an agent key and account address:

ampersend config set "0xagentKey:::0xagentAccount"
# {"ok": true, "data": {"agentKeyAddress": "0x...", "agentAccount": "0x...", "status": "ready"}}

Commands

setup

Set up an agent account via the approval flow.

setup start

Step 1: Generate a key and request agent creation approval.

ampersend setup start --name "my-agent" [--force] [--daily-limit \x3Camount>] [--monthly-limit \x3Camount>] [--per-transaction-limit \x3Camount>] [--auto-topup]
Option Description
--name \x3Cname> Name for the agent
--force Overwrite an existing pending approval
--daily-limit \x3Camount> Daily spending limit in atomic units (1000000 = 1 USDC)
--monthly-limit \x3Camount> Monthly spending limit in atomic units
--per-transaction-limit \x3Camt> Per-transaction spending limit in atomic units
--auto-topup Allow automatic balance top-up from main account

Returns token, user_approve_url, and agentKeyAddress. Show the user_approve_url to the user.

setup finish

Step 2: Poll for approval and activate the agent config.

ampersend setup finish [--force] [--poll-interval \x3Cseconds>] [--timeout \x3Cseconds>]
Option Description
--force Overwrite existing active config
--poll-interval \x3Cseconds> Seconds between status checks (default 5)
--timeout \x3Cseconds> Maximum seconds to wait (default 600)

fetch

Make HTTP requests with automatic x402 payment handling.

ampersend fetch \x3Curl>
ampersend fetch -X POST -H "Content-Type: application/json" -d '{"key":"value"}' \x3Curl>
Option Description
-X \x3Cmethod> HTTP method (default: GET)
-H \x3Cheader> Header as "Key: Value" (repeat for multiple)
-d \x3Cdata> Request body
--inspect Check payment requirements without paying

Use --inspect to verify payment requirements and costs before making a payment:

ampersend fetch --inspect https://api.example.com/paid-endpoint
# Returns payment requirements including amount, without executing payment

config

Manage local configuration.

ampersend config set \x3Ckey:::account>                             # Set active config manually
ampersend config set --api-url https://api.staging.ampersend.ai  # Set staging API URL
ampersend config set --clear-api-url                             # Revert to production API
ampersend config set --network base-sepolia                      # Set network (base, base-sepolia)
ampersend config set --clear-network                             # Revert to default network (base)
ampersend config set \x3Ckey:::account> --api-url \x3Curl>             # Set both at once
ampersend config status                                          # Show current status

Output

All commands return JSON. Check ok first.

{ "ok": true, "data": { ... } }
{ "ok": false, "error": { "code": "...", "message": "..." } }

For fetch, success includes data.status, data.body, and data.payment (when payment made).

安全使用建议
This skill appears to do what it says (operate an Ampersend CLI to enable agent payments), but exercise caution before installing or enabling it. Recommendations: - Verify the npm package and publisher (@ampersend_ai) on the npm registry and inspect the package contents/source repository before running npm install -g. - Test on a staging network or testnet (sepolia/staging API) and with small limits first; prefer --inspect to preview costs before allowing real payments. - Set very conservative daily/monthly/per-transaction limits and disable auto-topup unless absolutely necessary. - Do not give the agent browser access or system access to secret stores; follow the SKILL.md advice to have the human approve the user_approve_url in their own browser. - Audit where the CLI stores agent keys/config and restrict filesystem access to those files. Consider running the CLI in a constrained environment (container or VM) to limit impact. If you cannot verify the npm package source or the vendor, treat installation as higher-risk and consider skipping or requesting a skill version with verifiable source code.
功能分析
Type: OpenClaw Skill Name: ampersend Version: 1.0.14 The skill bundle provides a legitimate interface for the Ampersend CLI, a tool designed for autonomous agent payments using the x402 protocol. The SKILL.md file contains clear instructions, a structured setup process involving user approval, and explicit security warnings to prevent the agent from accessing sensitive user dashboard sessions. No indicators of data exfiltration, malicious execution, or prompt injection were found; the logic is entirely consistent with the stated purpose of managing agent-led financial transactions.
能力评估
Purpose & Capability
Name, description, and runtime instructions consistently describe a CLI-based agent payment tool that requires an external 'ampersend' binary; the declared requirements (single required binary) are proportionate to the described capability.
Instruction Scope
SKILL.md instructs the agent to run the ampersend CLI to create agent keys, request user approval, and perform paid HTTP requests automatically (ampersend fetch). That behavior is consistent with the stated purpose but grants the agent the ability to execute real payments under configured spending limits; ensure the agent is restricted to inspect-only or strict limits if you do not want autonomous payments.
Install Mechanism
There is no formal install spec in the registry entry (instruction-only), but SKILL.md directs users to run a global npm install of @ampersend_ai/[email protected]. Installing a global npm package executes third-party code — acceptable if the package and publisher are trusted, but the skill metadata lacks a homepage/source or provenance, increasing risk.
Credentials
The skill declares no required environment variables (proportionate). However, the CLI generates and stores agent keys/accounts via setup/config commands; these secrets live outside the skill metadata and could be created or used by the agent — verify where the CLI stores keys and who can access them.
Persistence & Privilege
always:false and default autonomous invocation are set (normal). The combination of autonomous invocation with a payments-capable tool increases blast radius if misused, but the registry flags themselves do not request elevated persistence or modify other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ampersend
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ampersend 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.14
- Updated required version of the ampersend CLI to v0.0.14. - Installation and update instructions now use @ampersend_ai/[email protected]. - Added network configuration support: use --network to select between "base" and "base-sepolia" in config commands. - Added --clear-network option to revert to the default network in config commands. - No other functional changes documented.
v1.0.3
Major update: More detailed documentation, new setup flow, config management, and added options. - Expanded setup section with a new two-step approval-based flow (“setup start” & “setup finish”). - Added instructions for setting custom spending limits and enabling auto top-up. - Introduced `--inspect` flag for safer payment checks with `fetch`. - Documented `config` commands to manage API endpoints and manual configuration. - Upgraded to require `ampersend` v0.0.12 with stricter installation versioning. - Added important security guidance regarding agent account setup and dashboard access.
v1.0.2
- Updated description to clarify Ampersend CLI purpose and payment support. - Simplified setup instructions with new config commands (`init`, `set-agent`, `status`). - Changed environment variable setup to an interactive CLI-based configuration flow. - Streamlined and condensed usage documentation. - All commands now return structured JSON for consistency. - Updated command options for `fetch` and summarized expected output formats.
v1.0.1
- CLI renamed from asndurl to ampersend, with new command structure (ampersend fetch). - Documentation updated for new CLI name, usage patterns, and command options. - All examples now use ampersend fetch with updated flags and invocation instructions. - Description broadened to cover multiple CLI tools, not just HTTP requests. - No changes to underlying file contents or code detected.
v1.0.0
Initial release of asndurl – an HTTP client for x402 payment-gated APIs with automatic crypto payment via Ampersend wallet. - Makes HTTP requests and handles HTTP 402 Payment Required responses - Supports automatic smart wallet payment/signing and retries with payment - Includes options for inspecting payment requirements, debug output, and controlling response format - Environment variable setup guides for wallet configuration - Usage examples for common paid API scenarios
元数据
Slug ampersend
版本 1.0.14
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

ampersend 是什么?

Ampersend CLI for agent payments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 493 次。

如何安装 ampersend?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ampersend」即可一键安装,无需额外配置。

ampersend 是免费的吗?

是的,ampersend 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ampersend 支持哪些平台?

ampersend 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ampersend?

由 Matias(@matiasedgeandnode)开发并维护,当前版本 v1.0.14。

💬 留言讨论