← 返回 Skills 市场
matiasedgeandnode

asndurl

作者 Matias · GitHub ↗ · v1.0.14 · MIT-0
cross-platform ✓ 安全检测通过
384
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install asndurl
功能描述
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 is coherent for enabling CLI-driven agent payments, but it grants the agent the ability to create keys and make payments. Before installing: 1) Verify the npm package @ampersend_ai/[email protected] is from a trusted publisher and inspect its code/release on the registry. 2) Run ampersend --version after install and confirm behavior in an isolated/test environment first. 3) Use the --inspect option and strict per-transaction/daily limits; prefer manual approval for real funds. 4) Do not give the agent access to any browser or account where you would approve payments for it; follow the SKILL.md warning. 5) Confirm where agent keys/tokens are stored and ensure they are isolated from your primary wallets/accounts. If you are uncertain about the npm package or key storage, treat this as higher risk and avoid enabling autonomous payments until you can audit the CLI.
功能分析
Type: OpenClaw Skill Name: asndurl Version: 1.0.14 The skill provides a legitimate interface for the Ampersend CLI, enabling autonomous agent payments via the x402 protocol. It includes clear security warnings to prevent session hijacking and follows a standard user-approval flow for configuration. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found in SKILL.md or the associated metadata.
能力评估
Purpose & Capability
The name/description (Ampersend CLI for agent payments) aligns with the declared requirement (the ampersend binary) and the SKILL.md commands (setup, fetch, config). No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
The instructions are narrowly focused on installing and using the ampersend CLI (setup, fetch, config). They do instruct the agent to create keys and request approvals and to show the user_approve_url to the user. The doc cautions against signing into an Ampersend dashboard in a browser the agent can access, but the skill does enable autonomous payments — the SKILL.md does not specify where generated keys/tokens are stored or how long tokens are valid, which is relevant to risk.
Install Mechanism
No install spec is bundled with the skill (instruction-only), which is low risk. The SKILL.md recommends installing a scoped npm package (@ampersend_ai/[email protected]) globally. That is a typical distribution channel but you should verify the npm package publisher, version, and integrity before running a global install.
Credentials
The skill declares no required environment variables or external credentials, which matches the instructions (setup generates agent keys). However, because the setup flow generates keys/tokens and can enable autonomous spending, confirm where those keys are stored and that they are isolated from other accounts.
Persistence & Privilege
always:false (no forced permanent inclusion). The skill is invocable by the agent (normal), which combined with payment capabilities increases risk: an autonomous agent could initiate payments within configured limits without manual approval. The SKILL.md includes an inspect flag and approval flow, but rely on user controls and limits.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install asndurl
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /asndurl 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.14
- Updated required CLI version to ampersend v0.0.14. - Updated npm installation and upgrade commands for version 0.0.14. - Added config commands for selecting network (e.g., --network base-sepolia) and clearing the network setting. - Documentation improvements to reflect new configuration options. - No code or file changes detected; this release is documentation-focused.
v1.0.3
- Renamed skill from "asndurl" to "ampersend" and updated description to reflect new focus on the Ampersend CLI. - Replaced prior usage of `npx ... asndurl` with the new standalone `ampersend` CLI binary. - Documentation now describes agent setup flows (both automated approval and manual config), emphasizing agent-based autonomous payments. - Added detailed instructions for CLI install, setup, configuration management, and security best practices. - Usage of HTTP payment-gated requests moved from `asndurl` to `ampersend fetch` command, with updated options and examples. - All command outputs use a consistent JSON envelope; error handling and output format section updated accordingly.
v1.0.0
asndurl 1.0.0 — Initial Release - Introduces a CLI for making HTTP requests to x402 payment-gated APIs with automatic crypto payments via Ampersend smart wallet. - Detects HTTP 402 Payment Required responses, parses payment requirements, signs payments, and retries the request automatically. - Supports wallet configuration via AMPERSEND_AGENT_KEY or related environment variables. - Includes options for one-off inspection mode, debug logging, raw/JSON output, and response headers. - Provides usage guidance, error handling, and sample commands for common paid API use-cases.
元数据
Slug asndurl
版本 1.0.14
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

asndurl 是什么?

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

如何安装 asndurl?

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

asndurl 是免费的吗?

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

asndurl 支持哪些平台?

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

谁开发了 asndurl?

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

💬 留言讨论