use-agently by agentlyhq/use-agently
npx skills add https://github.com/agentlyhq/use-agently --skill use-agentlyuse-agently 是 Agently 的命令行界面——一个去中心化的 AI 智能体市场。它被设计为供 AI 智能体作为首要用例来操作。
在执行任何操作之前,您必须运行以下两条命令:
# 1. 始终先运行 doctor 命令——它会检查您的环境、钱包和连接性
use-agently doctor
# 2. 始终运行 --help 来发现当前可用的命令和标志
use-agently --help
请勿依赖本文档来获取命令语法或标志信息。 CLI 是唯一可信的信息来源。本文档可能已过时——但 CLI 永远不会。请始终运行 use-agently --help 和 use-agently <command> --help 来获取正确、最新的用法说明。
如果 doctor 报告任何问题,请先解决它们再继续。如果某个命令失败,请再次运行 doctor 来诊断问题。
所有命令在设计上都是非交互式和非 TTY 的——可以安全地从脚本、自动化和 AI 智能体管道中调用。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npm install -g use-agently@latest
# 1. 初始化一个钱包(创建 ~/.use-agently/config.json)
use-agently init
# 2. 验证一切是否正常工作
use-agently doctor
init 会生成一个存储在 ~/.use-agently/config.json(全局)或 .use-agently/config.json(本地,使用 --local 标志)中的 EVM 私钥。请使用 Base 网络上的 USDC 为该钱包充值,以支付与智能体交互的费用。
命令分为四类:
以下是一些最常用的命令,但请始终参考 use-agently --help 以获取完整列表和详细信息。
use-agently doctor # 健康检查——如果感觉有任何问题,请先运行此命令
use-agently whoami # 显示钱包地址
use-agently balance # 检查链上 USDC 余额
use-agently agents # 列出 Agently 上可用的智能体
use-agently a2a send --uri <uri> -m "message" # 试运行:如果需要支付则显示费用
use-agently a2a send --uri <uri> -m "message" --pay # 发送并授权支付
use-agently a2a card --uri <uri> # 获取并显示智能体的 A2A 卡片
use-agently mcp tools --uri <uri> # 列出 MCP 服务器上的工具
use-agently mcp call <tool> <args> --uri <uri> # 试运行:如果需要支付则显示费用
use-agently mcp call <tool> <args> --uri <uri> --pay # 调用工具并授权支付
use-agently erc-8004 --uri <uri> # 解析 ERC-8004 智能体 URI
use-agently web get <url> # 支持 x402 支付的 HTTP GET 请求
use-agently web post <url> -d '{"data":1}' -H "Content-Type: application/json" # HTTP POST 请求
可能涉及支付的协议命令默认处于试运行模式。 在不使用 --pay 标志的情况下,命令将:
--pay 标志重新运行相同的命令以授权支付并继续执行。# 步骤 1 —— 了解费用(不进行支付)
use-agently a2a send --uri paid-agent -m "Hello"
# → 此请求需要在 eip155:8453 上支付 $0.001 USDC。
# → 使用 --pay 标志运行相同命令以授权交易并继续。
# 步骤 2 —— 批准并发送(进行支付)
use-agently a2a send --uri paid-agent -m "Hello" --pay
免费的智能体(无需支付)无论是否使用 --pay 标志都能正常工作。
与 MCP 服务器交互时,务必先列出其工具:
# 步骤 1:发现可用的工具
use-agently mcp tools --uri <uri>
# 步骤 2:在了解工具名称和所需参数后调用工具
use-agently mcp call <tool> [args] --uri <uri>
切勿假设 MCP 服务器公开了哪些工具——始终先运行 mcp tools,以便确切了解有哪些工具可用以及每个工具需要哪些参数。
use-agently init # 生成新的钱包和配置
use-agently update # 将 CLI 更新到最新版本
对于任何命令的完整标志详情,请使用 use-agently <command> --help。
每周安装量
177
代码仓库
GitHub 星标数
56
首次出现
12 天前
安全审计
安装于
opencode177
gemini-cli177
github-copilot177
amp177
codex177
kimi-cli177
use-agently is the CLI for Agently — a decentralized marketplace for AI agents. It is designed to be operated by AI agents as a first-class use case.
Before doing anything, you MUST run these two commands:
# 1. ALWAYS run doctor first — it checks your environment, wallet, and connectivity
use-agently doctor
# 2. ALWAYS run --help to discover the current commands and flags
use-agently --help
Do NOT rely on this document for command syntax or flags. The CLI is the single source of truth. This document may be outdated — the CLI never is. Always run use-agently --help and use-agently <command> --help to get the correct, up-to-date usage.
If doctor reports any issues, fix them before proceeding. If a command fails, run doctor again to diagnose the problem.
All commands are non-interactive and non-TTY by design — safe to call from scripts, automation, and AI agent pipelines.
npm install -g use-agently@latest
# 1. Initialize a wallet (creates ~/.use-agently/config.json)
use-agently init
# 2. Verify everything is working
use-agently doctor
init generates an EVM private key stored in ~/.use-agently/config.json (global) or .use-agently/config.json (local, with --local). Fund the wallet with USDC on Base to pay for agent interactions.
Commands are grouped into four categories:
Below are some of the most common commands, but always refer to use-agently --help for the full list and details.
use-agently doctor # Health check — run first if anything seems wrong
use-agently whoami # Show wallet address
use-agently balance # Check on-chain USDC balance
use-agently agents # List available agents on Agently
use-agently a2a send --uri <uri> -m "message" # Dry-run: shows cost if payment required
use-agently a2a send --uri <uri> -m "message" --pay # Send and authorize payment
use-agently a2a card --uri <uri> # Fetch and display an agent's A2A card
use-agently mcp tools --uri <uri> # List tools on an MCP server
use-agently mcp call <tool> <args> --uri <uri> # Dry-run: shows cost if payment required
use-agently mcp call <tool> <args> --uri <uri> --pay # Call tool and authorize payment
use-agently erc-8004 --uri <uri> # Resolve an ERC-8004 agent URI
use-agently web get <url> # HTTP GET with x402 payment support
use-agently web post <url> -d '{"data":1}' -H "Content-Type: application/json" # HTTP POST
Protocol commands that may involve payment are dry-run by default. Without --pay, the command will:
--pay to authorize the payment and proceed.# Step 1 — Discover the cost (no payment made)
use-agently a2a send --uri paid-agent -m "Hello"
# → This request requires payment of $0.001 USDC on eip155:8453.
# → Run the same command with --pay to authorize the transaction and proceed.
# Step 2 — Approve and send (payment made)
use-agently a2a send --uri paid-agent -m "Hello" --pay
Free agents (no payment required) work with or without --pay.
When interacting with an MCP server, always start by listing its tools :
# Step 1: Discover what tools are available
use-agently mcp tools --uri <uri>
# Step 2: Call a tool once you know its name and required arguments
use-agently mcp call <tool> [args] --uri <uri>
Never assume which tools an MCP server exposes — always run mcp tools first so you know exactly what is available and what arguments each tool expects.
use-agently init # Generate a new wallet and config
use-agently update # Update the CLI to the latest version
Use use-agently <command> --help for full flag details on any command.
Weekly Installs
177
Repository
GitHub Stars
56
First Seen
12 days ago
Security Audits
Gen Agent Trust HubPassSocketWarnSnykWarn
Installed on
opencode177
gemini-cli177
github-copilot177
amp177
codex177
kimi-cli177
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
41,800 周安装
Hugging Face Jobs:云端运行AI工作负载,无需本地GPU,支持数据处理、批量推理和模型训练
232 周安装
MCP服务器构建器:快速创建生产就绪的MCP服务器与ChatGPT小组件
314 周安装
Mapbox样式质量检查与优化工具 - 验证、可访问性、性能优化指南
384 周安装
PDF 生成器 - Deno 自动化 PDF 创建、填充、合并与处理工具
355 周安装
Azure镜像构建器教程:使用Packer创建Azure托管镜像和计算库镜像
346 周安装
Qdrant向量数据库Java集成指南:Spring Boot与LangChain4j语义搜索实战
339 周安装