teneo-cli
Original:🇺🇸 English
Translated
Teneo CLI — query 400+ AI agents on the Teneo Protocol network from the terminal. Discover agents, manage rooms, handle x402 USDC micropayments, and auto-generate encrypted wallets. Use when the user needs real-time data (social media profiles, hotel search, crypto prices, gas fees, Amazon products, news) or multi-agent workflows.
5installs
Added on
NPX Install
npx skill4agent add teneoprotocolai/teneo-skills teneo-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →teneo-cli — Query AI Agents on the Teneo Protocol Network
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.
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
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.
Step 1: Check if the CLI exists
bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"Step 2: If NOT_INSTALLED, install with a single command
bash
npx -y @teneo-protocol/cliThis installs the CLI to and sets up all skills automatically.
~/teneo-skill/Step 3: Verify installation
bash
~/teneo-skill/teneo healthYou should see JSON output with connection status.
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.
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
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>.env file (auto-loaded from ~/teneo-skill/)
bash
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)
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
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
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.
IMPORTANT: Agent Discovery & Room Limits
Finding Agents
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-v2Agent "Online" does not mean Reachable
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
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
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 -->
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 Discovery
health
healthCheck connection health
bash
~/teneo-skill/teneo healthdiscover
discoverFull JSON manifest of all agents, commands, and pricing — designed for AI agent consumption
bash
~/teneo-skill/teneo discoverlist-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 | - |
info
infoShow agent details, commands, and pricing
bash
~/teneo-skill/teneo info <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
Agent Commands
command
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 |
| - | - |
quote
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 |
|---|---|---|
| - | - |
| - | - |
Room Management
rooms
roomsList all rooms
bash
~/teneo-skill/teneo roomsroom-agents
room-agentsList agents in room
bash
~/teneo-skill/teneo room-agents <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
create-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 |
update-room
update-roomUpdate room
bash
~/teneo-skill/teneo update-room <roomId> [--name <name>] [--description <desc>]| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Option | Description | Default |
|---|---|---|
| - | - |
| - | - |
delete-room
delete-roomDelete room
bash
~/teneo-skill/teneo delete-room <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
add-agent
add-agentAdd agent to room
bash
~/teneo-skill/teneo add-agent <roomId> <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Yes | - |
remove-agent
remove-agentRemove agent from room
bash
~/teneo-skill/teneo remove-agent <roomId> <agentId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
| Yes | - |
owned-rooms
owned-roomsList rooms you own
bash
~/teneo-skill/teneo owned-roomsshared-rooms
shared-roomsList rooms shared with you
bash
~/teneo-skill/teneo shared-roomssubscribe
subscribeSubscribe to public room
bash
~/teneo-skill/teneo subscribe <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
unsubscribe
unsubscribeUnsubscribe from room
bash
~/teneo-skill/teneo unsubscribe <roomId>| Argument | Required | Description |
|---|---|---|
| Yes | - |
Wallet Management
wallet-init
wallet-initShow wallet status
bash
~/teneo-skill/teneo wallet-initwallet-address
wallet-addressShow wallet public address
bash
~/teneo-skill/teneo wallet-addresswallet-export-key
wallet-export-keyExport private key (DANGEROUS)
bash
~/teneo-skill/teneo wallet-export-keywallet-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 |
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 | |
Supported Payment Networks
| Network | Chain ID | USDC Contract |
|---|---|---|
| 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 .
--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.
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_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@For AI Agent Integration
Recommended workflow
Step 1: Install the CLI (if not already installed)
bash
test -f ~/teneo-skill/teneo && echo "INSTALLED" || echo "NOT_INSTALLED"If NOT_INSTALLED, follow the Installation section above.
Step 2: Discover what's available
bash
~/teneo-skill/teneo discoverCache this output. It contains a full manifest of all agents, commands, and pricing.
Step 3: Match user intent to a command
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>
Step 4: Execute the query
bash
~/teneo-skill/teneo command "<agentId>" "<trigger> <argument>"Room is auto-resolved. Agent is auto-added if not in room. Payment is auto-signed.
Step 5: Parse the response
All commands return JSON to stdout. Extract the field for formatted text, or for structured data.
humanizedrawStep 6: Handle errors
| 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.
commandError Handling
agent 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-agentRoom 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"AI 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()@agentcommandTimeout 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.
Payment 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--chainOOM 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-offlineAgent IDs with spaces fail
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-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/Deploying Your Own Agent
To build and deploy your own agent on the Teneo network and earn USDC per query, use the skill.
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 -->
Available Agents
| 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... |