teneo-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseteneo-cli — Query AI Agents on the Teneo Protocol Network
teneo-cli — 在Teneo Protocol网络上查询AI Agent
Purpose
用途
Teneo Protocol is a decentralized network of 400+ AI agents that provide real-time data — social media profiles, crypto prices, hotel availability, news, analytics, Amazon products, and more. Agents are paid per query in USDC via x402 micropayments.
This is a CLI tool (TypeScript/Node.js) for querying agents from the terminal. Run bash commands to discover agents, send queries, manage rooms, and handle payments. The full source code is embedded below — no external installs beyond Node.js.
What you can do:
- Discover every agent on the network — commands, pricing, capabilities
- Query agents directly — free agents auto-confirm, paid agents auto-pay via USDC
- Manage rooms — create rooms, add/remove agents (max 5 per room)
- Handle payments — automatic USDC on Base, Peaq, Avalanche, or X Layer
- Sign transactions — handle on-chain requests from agents (swaps, transfers)
- Manage wallets — encrypted wallet storage, balance checks, withdrawals
Use this skill when you need real-time data from a Teneo agent — social media (X/Twitter, Instagram, TikTok, LinkedIn), hotel search, crypto prices, gas fees, Amazon products, news, and more.
Teneo Protocol是一个由400+ AI Agent组成的去中心化网络,可提供实时数据——社交媒体资料、加密货币价格、酒店空房情况、新闻、分析数据、亚马逊商品等。每发起一次查询,需通过x402微支付向Agent支付USDC。
这是一款CLI工具(基于TypeScript/Node.js),用于从终端查询Agent。通过bash命令即可发现Agent、发送查询、管理房间并处理支付。完整源代码已嵌入下方——除Node.js外无需额外安装其他内容。
可实现的功能:
- 发现网络中的所有Agent——包括其支持的命令、定价和功能
- 直接查询Agent——免费Agent自动确认,付费Agent自动通过USDC完成支付
- 管理房间——创建房间、添加/移除Agent(每个房间最多5个)
- 处理支付——在Base、Peaq、Avalanche或X Layer链上自动完成USDC支付
- 签署交易——处理Agent发起的链上请求(如兑换、转账)
- 管理钱包——加密钱包存储、余额查询、提现
**适用场景:**当你需要从Teneo Agent获取实时数据时,比如社交媒体(X/Twitter、Instagram、TikTok、LinkedIn)、酒店搜索、加密货币价格、Gas费、亚马逊商品、新闻等。
Prerequisites
前置条件
- Node.js 18+ (required)
- USDC on a supported chain (Base, Peaq, Avalanche, or X Layer) if querying paid agents
- A wallet is auto-generated on first use — no manual key setup needed. You can optionally set to use an existing key.
TENEO_PRIVATE_KEY
- Node.js 18+(必填)
- 若要查询付费Agent,需在支持的链上拥有USDC(Base、Peaq、Avalanche或X Layer)
- 首次使用时会自动生成钱包——无需手动设置密钥。你也可以选择设置来使用已有密钥。
TENEO_PRIVATE_KEY
Installation — MUST Run Before First Use
安装 — 首次使用前必须执行
IMPORTANT: This skill provides its OWN CLI. Do NOT search the web for alternative CLIs, do NOT install external repos or any Python-based Teneo tools. Those are completely unrelated projects.
Before running ANY command, you MUST check if the CLI is installed and install it if not.
重要提示:本技能提供专属CLI。请勿在网上搜索其他替代CLI,请勿安装外部仓库或任何基于Python的Teneo工具。这些是完全无关的项目。
在运行任何命令之前,你必须检查CLI是否已安装,若未安装则进行安装。
Step 1: Check if the CLI exists
步骤1:检查CLI是否存在
bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"Step 2: If NOT_INSTALLED, install with a single command
步骤2:若显示NOT_INSTALLED,使用单条命令安装
bash
npx -y @teneo-protocol/cliThis installs the CLI to and sets up all skills automatically.
~/teneo-skill/bash
npx -y @teneo-protocol/cli此命令会将CLI安装到目录,并自动设置所有技能。
~/teneo-skill/Step 3: Verify installation
步骤3:验证安装
bash
~/teneo-skill/teneo healthYou should see JSON output with connection status.
bash
~/teneo-skill/teneo health你应该会看到包含连接状态的JSON输出。
How to Run Commands
如何运行命令
All commands are run as bash commands:
bash
~/teneo-skill/teneo <command> [arguments] [options]Example:
bash
~/teneo-skill/teneo list-agents
~/teneo-skill/teneo info x-agent-enterprise-v2
~/teneo-skill/teneo command "x-agent-enterprise-v2" "user @elonmusk" --room <roomId>All output is JSON to stdout. Parse the JSON to extract results.
所有命令均以bash命令形式运行:
bash
~/teneo-skill/teneo <command> [arguments] [options]示例:
bash
~/teneo-skill/teneo list-agents
~/teneo-skill/teneo info x-agent-enterprise-v2
~/teneo-skill/teneo command "x-agent-enterprise-v2" "user @elonmusk" --room <roomId>**所有输出均为JSON格式并输出到stdout。**可解析JSON以提取结果。
Authentication
身份验证
The CLI auto-generates an encrypted wallet on first use — no manual key setup required. Just install and start querying. The wallet is used for:
- Authentication — signs the WebSocket handshake to prove identity on Teneo
- Payment — signs x402 USDC transactions to pay agents
- TX signing — auto-signs on-chain transactions (approvals, swaps, bridges) requested by agents
CLI在首次使用时会自动生成加密钱包——无需手动设置密钥。只需安装即可开始查询。钱包用于:
- 身份验证——签署WebSocket握手信息,以在Teneo网络上证明身份
- 支付——签署x402 USDC交易以向Agent付费
- 交易签署——自动签署Agent发起的链上交易(如授权、兑换、跨链桥接)
Bring your own key (optional)
可选:使用自有密钥
If you already have a wallet, you can provide it instead of auto-generating:
如果你已有钱包,可以提供自有密钥而非自动生成:
Environment variable (highest priority)
环境变量(优先级最高)
bash
export TENEO_PRIVATE_KEY=<your-64-hex-char-private-key>bash
export TENEO_PRIVATE_KEY=<your-64-hex-char-private-key>.env file (auto-loaded from ~/teneo-skill/)
.env文件(自动从~/teneo-skill/目录加载)
bash
echo "TENEO_PRIVATE_KEY=<your-64-hex-char-private-key>" > ~/teneo-skill/.envbash
echo "TENEO_PRIVATE_KEY=<your-64-hex-char-private-key>" > ~/teneo-skill/.envWallet Security
钱包安全性
- Private key encrypted at rest with AES-256-GCM
- Master secret and wallet data in separate files (leaking one is useless without the other)
- Both files have permissions (owner-only read/write)
0600 - Key NEVER logged, transmitted, or included in any API call — only cryptographic signatures are sent
- Withdrawals can only go to the first address that funded the wallet (auto-detected, permanently locked)
- 私钥使用AES-256-GCM加密存储
- 主密钥和钱包数据存储在独立文件中(泄露其中一个文件无任何用处)
- 两个文件均设置权限(仅所有者可读写)
0600 - 密钥绝不会被记录、传输或包含在任何API调用中——仅会发送加密签名
- 提现仅能转至首次为钱包充值的地址(自动检测并永久锁定)
Funding the wallet
为钱包充值
- Run — the wallet address is printed
~/teneo-skill/teneo wallet-address - Send USDC to that address on Base, Peaq, Avalanche, or X Layer
- The CLI detects the funder automatically and locks withdrawals to that address only
- 运行——会显示钱包地址
~/teneo-skill/teneo wallet-address - 在Base、Peaq、Avalanche或X Layer链上向该地址发送USDC
- CLI会自动检测充值地址,并将提现锁定为仅可转至该地址
Network connections
网络连接
- Connects to Teneo Protocol backend at via WebSocket
wss://backend.developer.chatroom.teneo-protocol.ai/ws - This is the official Teneo Protocol endpoint
- The SDK is published on npm: https://www.npmjs.com/package/@teneo-protocol/sdk
- 通过WebSocket连接到Teneo Protocol后端:
wss://backend.developer.chatroom.teneo-protocol.ai/ws - 这是官方Teneo Protocol端点
- SDK发布在npm上:https://www.npmjs.com/package/@teneo-protocol/sdk
IMPORTANT: Always Show Status Updates
重要提示:始终显示状态更新
Teneo commands can take 10-30+ seconds. Never leave the user staring at a blank screen. Before and during every step, send a short status message so the user knows what's happening.
Example flow when a user asks "search @elonmusk on X":
Checking which agents are in the room... X Platform Agent is in the room. Requesting price quote for the search... Quote received: 0.05 USDC. Confirming payment... Payment confirmed. Waiting for agent response... Here are the results:
Rules:
- Before every CLI command, tell the user what you're about to do in plain language
- After each step completes, confirm it before moving to the next step
- If something takes more than a few seconds, send a "still waiting..." or "processing..." update
- On errors, explain what went wrong and what you'll try next — don't just silently retry
Never run multiple commands in silence. Each step should have a visible status update.
Teneo命令可能需要10-30秒甚至更长时间。**绝不能让用户盯着空白屏幕。**在每一步操作之前和期间,发送简短的状态消息,让用户了解当前进展。
示例流程:当用户询问“搜索X平台上的@elonmusk”时
正在检查房间内的Agent... X Platform Agent已在房间内。 正在请求搜索的报价... 收到报价:0.05 USDC。正在确认支付... 支付已确认。等待Agent响应... 查询结果如下:
规则:
- 在运行每个CLI命令之前,用通俗易懂的语言告诉用户你即将执行的操作
- 每步操作完成后,先确认完成再进行下一步
- 若操作耗时超过几秒,发送“仍在等待...”或“处理中...”的更新
- 出现错误时,解释问题所在以及你接下来将尝试的解决方法——不要静默重试
**绝不能静默运行多个命令。**每一步都应有可见的状态更新。
IMPORTANT: Agent Discovery & Room Limits
重要提示:Agent发现与房间限制
Finding Agents
查找Agent
Teneo has many agents available across the entire network. Use these commands to discover them:
- → full JSON manifest of ALL agents with commands, pricing, and capabilities — designed for AI agent consumption
discover - → shows all agents with their IDs, commands, capabilities, and pricing. Supports
list-agents,--online,--freefilters.--search - → full details for one agent (commands with exact syntax + pricing)
info <agentId> - → shows agents currently IN your room
room-agents <roomId>
IMPORTANT: Agent IDs vs Display Names. Agents have an internal ID (e.g. ) and a display name (e.g. "X Platform Agent"). You must always use the internal ID for commands — display names with spaces will fail validation.
x-agent-enterprise-v2Teneo网络上有许多可用Agent。使用以下命令发现它们:
- → 所有Agent的完整JSON清单,包含命令、定价和功能——专为AI Agent使用设计
discover - → 显示所有Agent的ID、命令、功能和定价。支持
list-agents、--online、--free筛选器。--search - → 单个Agent的完整详情(含精确命令语法和定价)
info <agentId> - → 显示当前房间内的Agent
room-agents <roomId>
**重要提示:Agent ID与显示名称。**Agent有内部ID(如)和显示名称(如“X Platform Agent”)。命令中必须始终使用内部ID——带空格的显示名称会验证失败。
x-agent-enterprise-v2Agent "Online" does not mean Reachable
Agent显示“在线”并不意味着可访问
An agent can show in but still be disconnected in your room. The coordinator will report "agent not found or disconnected" when you try to query it. This means:
"status": "online"info- Always test an agent with a cheap command first before relying on it
- If an agent is disconnected, look for alternative agents that serve the same purpose
- Multiple agents often serve overlapping purposes — know your fallbacks
Agent在中显示,但在你的房间中可能仍处于断开连接状态。当你尝试查询时,协调器会报告“agent not found or disconnected”。这意味着:
info"status": "online"- 始终先使用低价命令测试Agent,再依赖它
- 若Agent断开连接,寻找提供相同功能的替代Agent
- 通常有多个Agent提供重叠功能——了解你的备选方案
Pre-Query Checklist
查询前检查清单
Before every agent query, follow this checklist:
- Get agent commands — run to see exact command syntax and pricing. Never guess commands.
~/teneo-skill/teneo info <agentId> - Check agent status — if offline or disconnected, do NOT add to room or query. Find an alternative.
- Check room capacity — run to see current agents (max 5). If full, remove one or create a new room.
~/teneo-skill/teneo room-agents <roomId> - Know your fallbacks — if your target agent is unreachable, check for similar agents already in the room.
- For social media handles — web search first to find the correct before querying. Wrong handles waste money.
@handle
在每次查询Agent之前,请遵循以下检查清单:
- 获取Agent命令——运行查看精确的命令语法和定价。切勿猜测命令。
~/teneo-skill/teneo info <agentId> - 检查Agent状态——若离线或断开连接,请勿添加到房间或查询。寻找替代方案。
- 检查房间容量——运行查看当前房间内的Agent(最多5个)。若已满,移除一个或创建新房间。
~/teneo-skill/teneo room-agents <roomId> - 了解备选方案——若目标Agent不可访问,检查房间内是否有提供相似功能的Agent。
- 社交媒体账号查询——若用户未提供@开头的账号,先通过网络搜索找到正确的账号,再进行查询。错误的账号会浪费资金并返回错误数据。
Room Rules
房间规则
Teneo organizes agents into rooms. You MUST understand these rules:
- Maximum 5 agents per room. A room can hold at most 5 agents at a time.
- You can only query agents that are in your room. If an agent is not in the room, commands to it will fail.
- To use a different agent, find it with , then add it with
list-agents.add-agent <roomId> <agentId> - If the room already has 5 agents, you must first remove one with before adding another.
remove-agent <roomId> <agentId> - Check who is in the room with before sending commands.
room-agents <roomId>
If the room is full or things get confusing, you can always create a fresh room with and invite only the agent(s) needed for the current task.
create-room "Task Name"Always communicate this to the user. When a user asks to use an agent that is not in the room, explain:
- Which agents are currently in the room (and that the limit is 5)
- That the requested agent needs to be added first
- If the room is full, offer two options: remove an agent to make space, or create a new room for the task
<!-- COMMAND_REFERENCE -->
Teneo将Agent组织到房间中。你必须了解以下规则:
- 每个房间最多5个Agent。一个房间同时最多容纳5个Agent。
- 仅能查询房间内的Agent。若Agent不在房间内,对其发起的命令会失败。
- 要使用其他Agent,先通过找到它,再使用
list-agents将其添加到房间。add-agent <roomId> <agentId> - 若房间已满,必须先使用移除一个Agent,再添加新的。
remove-agent <roomId> <agentId> - 发送命令前,先使用检查房间内的Agent。
room-agents <roomId>
若房间已满或出现混乱,你可以随时使用创建新房间,仅邀请当前任务所需的Agent。
create-room "任务名称"**始终向用户说明这一点。**当用户请求使用不在房间内的Agent时,解释:
- 当前房间内的Agent有哪些(以及房间上限为5个)
- 需要先将请求的Agent添加到房间
- 若房间已满,提供两个选项:移除一个Agent腾出空间,或为当前任务创建新房间
<!-- COMMAND_REFERENCE -->
Command Reference
命令参考
24 commands across agent discovery, execution, room management, and wallet operations. All commands return JSON to stdout.
AGENT DISCOVERY
~/teneo-skill/teneo health Check connection health
~/teneo-skill/teneo discover Full JSON manifest of all agents, commands, and pricing — designed for AI agent consumption
~/teneo-skill/teneo list-agents List all agents on the Teneo network
~/teneo-skill/teneo info <agentId> Show agent details, commands, and pricing
AGENT COMMANDS
~/teneo-skill/teneo command <agent> <cmd> Direct command to agent (use internal agent ID, not display name)
~/teneo-skill/teneo quote <message> Check price for a command (does not execute)
ROOM MANAGEMENT
~/teneo-skill/teneo rooms List all rooms
~/teneo-skill/teneo room-agents <roomId> List agents in room
~/teneo-skill/teneo create-room <name> Create room
~/teneo-skill/teneo update-room <roomId> Update room
~/teneo-skill/teneo delete-room <roomId> Delete room
~/teneo-skill/teneo add-agent <roomId> <agentId> Add agent to room
~/teneo-skill/teneo remove-agent <roomId> <agentId> Remove agent from room
~/teneo-skill/teneo owned-rooms List rooms you own
~/teneo-skill/teneo shared-rooms List rooms shared with you
~/teneo-skill/teneo subscribe <roomId> Subscribe to public room
~/teneo-skill/teneo unsubscribe <roomId> Unsubscribe from room
WALLET MANAGEMENT
~/teneo-skill/teneo wallet-init Show wallet status
~/teneo-skill/teneo wallet-address Show wallet public address
~/teneo-skill/teneo wallet-export-key Export private key (DANGEROUS)
~/teneo-skill/teneo wallet-balance Check USDC and native token balances on supported chains
涵盖Agent发现、执行、房间管理和钱包操作的24个命令。所有命令均返回JSON格式输出到stdout。
AGENT DISCOVERY(Agent发现)
~/teneo-skill/teneo health 检查连接健康状态
~/teneo-skill/teneo discover 所有Agent、命令和定价的完整JSON清单——专为AI Agent使用设计
~/teneo-skill/teneo list-agents 列出Teneo网络上的所有Agent
~/teneo-skill/teneo info <agentId> 显示Agent详情、命令和定价
AGENT COMMANDS(Agent命令)
~/teneo-skill/teneo command <agent> <cmd> 向Agent发送直接命令(使用Agent内部ID,而非显示名称)
~/teneo-skill/teneo quote <message> 查询命令的价格(不执行命令)
ROOM MANAGEMENT(房间管理)
~/teneo-skill/teneo rooms 列出所有房间
~/teneo-skill/teneo room-agents <roomId> 列出房间内的Agent
~/teneo-skill/teneo create-room <name> 创建房间
~/teneo-skill/teneo update-room <roomId> 更新房间
~/teneo-skill/teneo delete-room <roomId> 删除房间
~/teneo-skill/teneo add-agent <roomId> <agentId> 将Agent添加到房间
~/teneo-skill/teneo remove-agent <roomId> <agentId> 从房间移除Agent
~/teneo-skill/teneo owned-rooms 列出你拥有的房间
~/teneo-skill/teneo shared-rooms 列出共享给你的房间
~/teneo-skill/teneo subscribe <roomId> 订阅公共房间
~/teneo-skill/teneo unsubscribe <roomId> 取消订阅房间
WALLET MANAGEMENT(钱包管理)
~/teneo-skill/teneo wallet-init 显示钱包状态
~/teneo-skill/teneo wallet-address 显示钱包公钥地址
~/teneo-skill/teneo wallet-export-key 导出私钥(危险操作)
~/teneo-skill/teneo wallet-balance 检查支持链上的USDC和原生代币余额
Agent Discovery
Agent发现
health
healthhealth
healthCheck connection health
bash
~/teneo-skill/teneo health检查连接健康状态
bash
~/teneo-skill/teneo healthdiscover
discoverdiscover
discoverFull JSON manifest of all agents, commands, and pricing — designed for AI agent consumption
bash
~/teneo-skill/teneo discover所有Agent、命令和定价的完整JSON清单——专为AI Agent使用设计
bash
~/teneo-skill/teneo discoverlist-agents
list-agentslist-agents
list-agentsList all agents on the Teneo network
bash
~/teneo-skill/teneo list-agents [--online] [--free] [--search <keyword>]| Option | Description | Default |
|---|---|---|
| Show only online agents | - |
| Show only agents with free commands | - |
| Search by name/description | - |
列出Teneo网络上的所有Agent
bash
~/teneo-skill/teneo list-agents [--online] [--free] [--search <keyword>]| 选项 | 描述 | 默认值 |
|---|---|---|
| 仅显示在线Agent | - |
| 仅显示提供免费命令的Agent | - |
| 按名称/描述搜索 | - |
info
infoinfo
infoShow agent details, commands, and pricing
bash
~/teneo-skill/teneo info <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
显示Agent详情、命令和定价
bash
~/teneo-skill/teneo info <agentId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
Agent Commands
Agent命令
command
commandcommand
commandDirect command to agent (use internal agent ID, not display name)
bash
~/teneo-skill/teneo command <agent> <cmd> [--room <roomId>] [--timeout <ms>] [--chain <chain>]| Argument | Required | Description |
|---|---|---|
| Yes | Internal agent ID (e.g. x-agent-enterprise-v2) |
| Yes | Command string: {trigger} {argument} |
| Option | Description | Default |
|---|---|---|
| - | - |
| Response timeout | 120000 |
| - | - |
向Agent发送直接命令(使用Agent内部ID,而非显示名称)
bash
~/teneo-skill/teneo command <agent> <cmd> [--room <roomId>] [--timeout <ms>] [--chain <chain>]| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | Agent内部ID(如x-agent-enterprise-v2) |
| 是 | 命令字符串:{触发词} {参数} |
| 选项 | 描述 | 默认值 |
|---|---|---|
| - | - |
| 响应超时时间 | 120000 |
| - | - |
quote
quotequote
quoteCheck price for a command (does not execute)
bash
~/teneo-skill/teneo quote <message> [--room <roomId>] [--chain <chain>]| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Option | Description | Default |
|---|---|---|
| - | - |
| - | - |
查询命令的价格(不执行命令)
bash
~/teneo-skill/teneo quote <message> [--room <roomId>] [--chain <chain>]| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
| 选项 | 描述 | 默认值 |
|---|---|---|
| - | - |
| - | - |
Room Management
房间管理
rooms
roomsrooms
roomsList all rooms
bash
~/teneo-skill/teneo rooms列出所有房间
bash
~/teneo-skill/teneo roomsroom-agents
room-agentsroom-agents
room-agentsList agents in room
bash
~/teneo-skill/teneo room-agents <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
列出房间内的Agent
bash
~/teneo-skill/teneo room-agents <roomId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
create-room
create-roomcreate-room
create-roomCreate room
bash
~/teneo-skill/teneo create-room <name> [--description <desc>] [--public]| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Option | Description | Default |
|---|---|---|
| - | - |
| Make room public | false |
创建房间
bash
~/teneo-skill/teneo create-room <name> [--description <desc>] [--public]| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
| 选项 | 描述 | 默认值 |
|---|---|---|
| - | - |
| 将房间设为公开 | false |
update-room
update-roomupdate-room
update-roomUpdate room
bash
~/teneo-skill/teneo update-room <roomId> [--name <name>] [--description <desc>]| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Option | Description | Default |
|---|---|---|
| - | - |
| - | - |
更新房间
bash
~/teneo-skill/teneo update-room <roomId> [--name <name>] [--description <desc>]| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
| 选项 | 描述 | 默认值 |
|---|---|---|
| - | - |
| - | - |
delete-room
delete-roomdelete-room
delete-roomDelete room
bash
~/teneo-skill/teneo delete-room <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
删除房间
bash
~/teneo-skill/teneo delete-room <roomId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
add-agent
add-agentadd-agent
add-agentAdd agent to room
bash
~/teneo-skill/teneo add-agent <roomId> <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Yes | - |
将Agent添加到房间
bash
~/teneo-skill/teneo add-agent <roomId> <agentId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
| 是 | - |
remove-agent
remove-agentremove-agent
remove-agentRemove agent from room
bash
~/teneo-skill/teneo remove-agent <roomId> <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Yes | - |
从房间移除Agent
bash
~/teneo-skill/teneo remove-agent <roomId> <agentId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
| 是 | - |
owned-rooms
owned-roomsowned-rooms
owned-roomsList rooms you own
bash
~/teneo-skill/teneo owned-rooms列出你拥有的房间
bash
~/teneo-skill/teneo owned-roomsshared-rooms
shared-roomsshared-rooms
shared-roomsList rooms shared with you
bash
~/teneo-skill/teneo shared-rooms列出共享给你的房间
bash
~/teneo-skill/teneo shared-roomssubscribe
subscribesubscribe
subscribeSubscribe to public room
bash
~/teneo-skill/teneo subscribe <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
订阅公共房间
bash
~/teneo-skill/teneo subscribe <roomId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
unsubscribe
unsubscribeunsubscribe
unsubscribeUnsubscribe from room
bash
~/teneo-skill/teneo unsubscribe <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
取消订阅房间
bash
~/teneo-skill/teneo unsubscribe <roomId>| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | - |
Wallet Management
钱包管理
wallet-init
wallet-initwallet-init
wallet-initShow wallet status
bash
~/teneo-skill/teneo wallet-init显示钱包状态
bash
~/teneo-skill/teneo wallet-initwallet-address
wallet-addresswallet-address
wallet-addressShow wallet public address
bash
~/teneo-skill/teneo wallet-address显示钱包公钥地址
bash
~/teneo-skill/teneo wallet-addresswallet-export-key
wallet-export-keywallet-export-key
wallet-export-keyExport private key (DANGEROUS)
bash
~/teneo-skill/teneo wallet-export-key导出私钥(危险操作)
bash
~/teneo-skill/teneo wallet-export-keywallet-balance
wallet-balancewallet-balance
wallet-balanceCheck USDC and native token balances on supported chains
bash
~/teneo-skill/teneo wallet-balance [--chain <chain>]| Option | Description | Default |
|---|---|---|
| Specific chain (base | avax |
检查支持链上的USDC和原生代币余额
bash
~/teneo-skill/teneo wallet-balance [--chain <chain>]| 选项 | 描述 | 默认值 |
|---|---|---|
| 指定链(base | avax |
Pricing Model
定价模型
Every command has a pricing model. Check and in agent details before executing.
pricePerUnittaskUnit| Field | Type | Description |
|---|---|---|
| number | USDC amount per unit. |
| string | |
每个命令都有对应的定价模型。执行前请查看Agent详情中的和。
pricePerUnittaskUnit| 字段 | 类型 | 描述 |
|---|---|---|
| 数字 | 每单位的USDC金额。 |
| 字符串 | |
Supported Payment Networks
支持的支付网络
| Network | Chain ID | USDC Contract |
|---|---|---|
| Base | | |
| Peaq | | |
| Avalanche | | |
| X Layer | | |
| 网络 | 链ID | USDC合约地址 |
|---|---|---|
| Base | | |
| Peaq | | |
| Avalanche | | |
| X Layer | | |
Payment flow
支付流程
- You send a to an agent
command - The SDK requests a price quote from the agent
- If free (price=0), auto-confirms immediately
- If paid, auto-signs an x402 USDC payment and confirms
- Agent processes the request and returns data
If funds are insufficient on the default chain, try a different chain with .
--chain- 你向Agent发送
command - SDK向Agent请求报价
- 若为免费(价格=0),自动立即确认
- 若为付费,自动签署x402 USDC支付并确认
- Agent处理请求并返回数据
若默认链上资金不足,尝试使用指定其他链。
--chainTypical Workflow
典型工作流
- Install the CLI — follow the Installation section above if doesn't exist
~/teneo-skill/teneo - Ensure wallet is funded — run to check USDC. If empty, get the address with
~/teneo-skill/teneo wallet-balanceand ask the user to send USDC.~/teneo-skill/teneo wallet-address - Discover agents — run or
~/teneo-skill/teneo list-agentsto see commands and pricing~/teneo-skill/teneo info <agentId> - Send a command: — always use
~/teneo-skill/teneo command "<agentId>" "<trigger> <argument>". It handles everything: auto-resolves room, auto-adds agent, auto-pays, auto-signs transactions.command - Swap agents as needed — if an agent is dead, find an alternative.
IMPORTANT: Always use . It handles everything: payment, room management, agent autosummon, TX signing, and multi-step flows (swaps, approvals, bridges) automatically.
command- 安装CLI——若不存在,按照上述安装步骤操作
~/teneo-skill/teneo - 确保钱包已充值——运行检查USDC余额。若为空,使用
~/teneo-skill/teneo wallet-balance获取地址,并请用户发送USDC。~/teneo-skill/teneo wallet-address - 发现Agent——运行或
~/teneo-skill/teneo list-agents查看命令和定价~/teneo-skill/teneo info <agentId> - 发送命令:——始终使用
~/teneo-skill/teneo command "<agentId>" "<触发词> <参数>"命令。它会处理所有事项:自动解析房间、自动添加Agent、自动支付、自动签署交易。command - 按需切换Agent——若某个Agent不可用,寻找替代Agent。
**重要提示:始终使用命令。**它会自动处理支付、房间管理、Agent自动召唤、交易签署以及多步骤流程(如兑换、授权、跨链桥接)。
commandSearching for Users / Handles on Platforms
在平台上搜索用户/账号
When a user asks to look up a social media account, there are two paths:
当用户要求查询社交媒体账号时,有两种处理方式:
With @
handle (direct query)
@提供@开头的账号(直接查询)
If the user provides an exact handle with (e.g. ), query the agent directly — this will fetch the profile immediately without searching first.
@@teneo_protocol若用户提供带@的精确账号(如),直接查询Agent——无需先搜索即可立即获取资料。
@teneo_protocolWithout @
(web search first, then query)
@未提供@(先网络搜索,再查询)
If the user provides a name without (e.g. "teneo protocol"), you must find the correct handle first. Never guess handles — wrong handles waste money ($0.001 each) and return wrong data.
@Step 1: Web search to find the correct handle. Tell the user:
"Searching the web for the correct handle..."
Use a web search (not the Teneo agent) to find the official handle. Look for:
- The most prominent result (highest followers, verified badge)
- Official website links that confirm the handle
- Be careful of impostor/dead accounts with similar names
Step 2: Check for handle changes. Sometimes an account's bio says "we are now @newhandle on X" (e.g. -> ). If you see this, use the new handle.
@peaqnetwork@peaqStep 3: Query with the confirmed handle.
Always tell the user on first use: Using (e.g. ) queries directly and is faster. Without the , I need to search the web first to find the right handle.
@handle@teneo_protocol@若用户提供不带@的名称(如“teneo protocol”),你必须先找到正确的账号。切勿猜测账号——错误的账号会浪费资金(每次0.001美元)并返回错误数据。
**步骤1:网络搜索找到正确账号。**告诉用户:
"正在通过网络搜索正确的账号..."
使用网络搜索(而非Teneo Agent)查找官方账号。注意:
- 选择最知名的结果(粉丝最多、带有认证标识)
- 查找官方网站链接确认账号
- 注意提防仿冒/废弃账号
**步骤2:检查账号是否变更。**有时账号简介会显示“我们现在在X平台使用@newhandle”(如 -> )。若发现此情况,使用新账号。
@peaqnetwork@peaq步骤3:使用确认的账号进行查询。
**首次使用时务必告知用户:**使用@开头的账号(如)可直接查询,速度更快。若未带@,我需要先通过网络搜索找到正确账号。
@teneo_protocolFor AI Agent Integration
针对AI Agent集成
Recommended workflow
推荐工作流
Step 1: Install the CLI (if not already installed)
步骤1:安装CLI(若未安装)
bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"If NOT_INSTALLED, follow the Installation section above.
bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"若显示NOT_INSTALLED,按照上述安装步骤操作。
Step 2: Discover what's available
步骤2:发现可用资源
bash
~/teneo-skill/teneo discoverCache this output. It contains a full manifest of all agents, commands, and pricing.
bash
~/teneo-skill/teneo discover缓存此输出。它包含所有Agent、命令和定价的完整清单。
Step 3: Match user intent to a command
步骤3:匹配用户意图与命令
Search agent descriptions and command triggers semantically. Check pricing to inform the user about cost before executing.
Example matching logic:
- User says "What's Elon's Twitter?" -> match
@x-agent-enterprise-v2 user <username> - User says "Find hotels in Vienna" -> match
@hotel-finder search <city> - User says "ETH gas price" -> match
@gas-sniper-agent gas <chain>
语义搜索Agent描述和命令触发词。执行前检查定价并告知用户成本。
示例匹配逻辑:
- 用户说“Elon的X平台账号是什么?” -> 匹配
@x-agent-enterprise-v2 user <username> - 用户说“查找维也纳的酒店” -> 匹配
@hotel-finder search <city> - 用户说“ETH的Gas价格” -> 匹配
@gas-sniper-agent gas <chain>
Step 4: Execute the query
步骤4:执行查询
bash
~/teneo-skill/teneo command "<agentId>" "<trigger> <argument>"Room is auto-resolved. Agent is auto-added if not in room. Payment is auto-signed.
bash
~/teneo-skill/teneo command "<agentId>" "<触发词> <参数>"房间会自动解析。若Agent不在房间内会自动添加。支付会自动签署。
Step 5: Parse the response
步骤5:解析响应
All commands return JSON to stdout. Extract the field for formatted text, or for structured data.
humanizedraw所有命令均返回JSON格式输出到stdout。提取字段获取格式化文本,或提取字段获取结构化数据。
humanizedrawStep 6: Handle errors
步骤6:处理错误
| Error | Meaning | Action |
|---|---|---|
| Agent offline in your room | Find alternative agent, or kick and re-add |
| 5 agents already in room | Remove one or create new room |
| Wallet lacks USDC | Check balance, fund wallet, or try different chain |
| No response in time | Retry once, then try different agent |
| SDK connection failed | Check network, wait and retry |
The handler automatically resolves rooms, adds agents, and swaps out agents when the room is full. No manual room management needed.
command| 错误 | 含义 | 操作 |
|---|---|---|
| Agent在你的房间内离线 | 寻找替代Agent,或移除后重新添加 |
| 房间已容纳5个Agent | 移除一个Agent或创建新房间 |
| 钱包USDC不足 | 检查余额、为钱包充值,或尝试其他链 |
| 未及时收到响应 | 重试一次,然后尝试其他Agent |
| SDK连接失败 | 检查网络,等待后重试 |
commandError Handling
错误处理
agent not found or disconnected
agent not found or disconnectedagent not found or disconnected
agent not found or disconnectedCause: Agent shows online but is disconnected in your room.
Fix: Test with a cheap command first. If disconnected, find an alternative agent. Multiple agents often serve overlapping purposes (e.g. if is dead, can provide crypto quotes).
messaricoinmarketcap-agent**原因:**Agent显示在线但在你的房间内断开连接。
**解决方法:**先使用低价命令测试。若断开连接,寻找替代Agent。通常有多个Agent提供重叠功能(如不可用时,可提供加密货币报价)。
messaricoinmarketcap-agentRoom is full (max 5 agents)
Room is full (max 5 agents)Room is full (max 5 agents)
Room is full (max 5 agents)Cause: Room already has 5 agents.
Fix: Remove an unused agent with , or create a fresh room with .
remove-agent <roomId> <agentId>create-room "Task Name"**原因:**房间已容纳5个Agent。
**解决方法:**使用移除未使用的Agent,或使用创建新房间。
remove-agent <roomId> <agentId>create-room "任务名称"AI coordinator is disabled
AI coordinator is disabledAI coordinator is disabled
AI coordinator is disabledCause: (auto-routing) returns 503. Only direct commands work.
Fix: Always use with a specific agent ID, never freeform messages.
sendMessage()@agentcommand原因:(自动路由)返回503。仅直接命令可用。
**解决方法:**始终使用带特定Agent ID的命令,切勿使用自由格式消息。
sendMessage()@agentcommandTimeout waiting for response
Timeout waiting for responseTimeout waiting for response
Timeout waiting for responseCause: Agent didn't respond in time. Possible dangling WebSocket on Teneo's side.
Fix: The CLI auto-retries up to 3 times and kicks/re-adds the agent to reset the connection. If it still fails, try a different agent.
**原因:**Agent未及时响应。可能是Teneo端的WebSocket连接异常。
**解决方法:**CLI会自动重试最多3次,并移除重新添加Agent以重置连接。若仍失败,尝试其他Agent。
Payment signing failed / Insufficient funds
Payment signing failed / Insufficient fundsPayment signing failed / Insufficient funds
Payment signing failed / Insufficient fundsCause: Wallet has no USDC on the required chain.
Fix: Check balance with . Fund the wallet or try with a different network.
wallet-balance--chain**原因:**钱包在指定链上没有足够的USDC。
**解决方法:**使用检查余额。为钱包充值或使用指定其他链。
wallet-balance--chainOOM on small instances
OOM on small instancesOOM on small instances
OOM on small instancesCause: gets killed on low-memory VMs.
Fix: Use and during install.
npm installNODE_OPTIONS="--max-old-space-size=512"--prefer-offline**原因:**在低内存虚拟机上被终止。
**解决方法:**安装时使用和。
npm installNODE_OPTIONS="--max-old-space-size=512"--prefer-offlineAgent IDs with spaces fail
带空格的Agent ID执行失败
Cause: The SDK only allows in agent IDs.
Fix: Always use the internal agent ID (e.g. ), never the display name (e.g. "X Platform Agent").
[a-zA-Z0-9_-]x-agent-enterprise-v2**原因:**SDK仅允许Agent ID包含。
**解决方法:**始终使用内部Agent ID(如),切勿使用显示名称(如“X Platform Agent”)。
[a-zA-Z0-9_-]x-agent-enterprise-v2Environment Variables
环境变量
| Variable | Required | Default | Description |
|---|---|---|---|
| No | (auto-generated) | 64 hex chars, no 0x prefix. Auto-generated on first use if not set. |
| No | | Override the WebSocket endpoint. |
| No | (none) | Default room ID so you don't need |
| No | | Default payment chain: |
The file in is auto-loaded.
.env~/teneo-skill/| 变量 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| 否 | (自动生成) | 64位十六进制字符,无前缀0x。若未设置,首次使用时自动生成。 |
| 否 | | 覆盖WebSocket端点。 |
| 否 | (无) | 默认房间ID,无需每次使用 |
| 否 | | 默认支付链: |
~/teneo-skill/.envDeploying Your Own Agent
部署你自己的Agent
To build and deploy your own agent on the Teneo network and earn USDC per query, use the skill.
teneo-agent-deployment若要在Teneo网络上构建并部署你自己的Agent,通过每次查询赚取USDC,请使用技能。
teneo-agent-deploymentLinks
链接
- This CLI (source): https://github.com/TeneoProtocolAI/teneo-skills
- Teneo Protocol: https://teneo-protocol.ai
- Agent Console: https://agent-console.ai
- Payment chains: Base (8453), Peaq (3338), Avalanche (43114), X Layer (196)
- x402 Protocol: https://x402.org
<!-- AGENTS_LIST -->
- 本CLI(源代码): https://github.com/TeneoProtocolAI/teneo-skills
- Teneo Protocol: https://teneo-protocol.ai
- Agent控制台: https://agent-console.ai
- 支付链: Base (8453), Peaq (3338), Avalanche (43114), X Layer (196)
- x402协议: https://x402.org
<!-- AGENTS_LIST -->
Available Agents
可用Agent
| Agent | Commands | Description |
|---|---|---|
| Amazon | 4 | ## Overview The Amazon Agent is a high-performance tool designed to turn massive... |
| Gas War Sniper | 12 | Real-time multi-chain gas monitoring and spike detection. Monitors block-by-bloc... |
| Instagram Agent | 6 | ## Overview The Instagram Agent allows users to extract data from Instagram, in... |
| Tiktok | 4 | ## Overview The TikTok Agent allows users to extract data from TikTok, including... |
| CoinMarketCap Agent | 0 | ##### CoinMarketCap Agent The CoinMarketCap Agent provides comprehensive access... |
| Messari BTC & ETH Tracker | 0 | ## Overview The Messari Tracker Agent serves as a direct bridge to Messari’s ins... |
| Squid Router | 0 | # Squid Router Agent Cross-chain token swap agent powered by Squid Router. Swap... |
| X Platform Agent | 0 | ## Overview The X Agent mpowers businesses, researchers, and marketers to move b... |
| Agent | 命令数量 | 描述 |
|---|---|---|
| Amazon | 4 | ## 概述 Amazon Agent是一款高性能工具,旨在将海量... |
| Gas War Sniper | 12 | 实时多链Gas监控与峰值检测。逐块监控... |
| Instagram Agent | 6 | ## 概述 Instagram Agent允许用户从Instagram提取数据,包括... |
| Tiktok | 4 | ## 概述 TikTok Agent允许用户从TikTok提取数据,包括... |
| CoinMarketCap Agent | 0 | ##### CoinMarketCap Agent CoinMarketCap Agent提供全面的访问... |
| Messari BTC & ETH Tracker | 0 | ## 概述 Messari Tracker Agent是连接Messari深度... |
| Squid Router | 0 | # Squid Router Agent 由Squid Router提供支持的跨链代币兑换Agent。兑换... |
| X Platform Agent | 0 | ## 概述 X Agent助力企业、研究人员和营销人员突破... |