AIUSD Pro
Chat with AIUSD using natural language. This skill delegates to a backend
AI agent — you do NOT need to understand AIUSD internals or construct
specific commands.
CLI entry point
All commands in this skill use npx -y aiusd-pro as the CLI prefix. This works without any global installation — npx resolves the package from npm automatically.
If aiusd-pro is already in PATH (via npm install -g aiusd-pro), you may use aiusd-pro directly instead.
When to use
Use when the user wants anything related to AIUSD or trading
through natural conversation. Examples:
- - "What are my balances?"
- "Buy 100 USDC worth of SOL"
- "Stake 500 AIUSD"
- "Long ETH 5x on HyperLiquid"
- "Show trending tokens"
Authentication
If npx -y aiusd-pro send fails with auth error, run login:
- 1.
npx -y aiusd-pro login --browser → prints JSON with url and INLINECODE7 - Send the
url to the user (NEVER fabricate it) - INLINECODE9 → waits for sign-in
Usage
Send a message (background mode)
Backend agent operations take 10-300 seconds (tool calls, reasoning, trading,
transaction confirmation). Always use background mode to avoid exec
timeout cutting off output:
CODEBLOCK0
Returns a sessionId. Then poll for completion and retrieve output:
CODEBLOCK1
Complete pattern:
- 1. Start: INLINECODE11
→ returns
sessionId: abc123
- 2. Wait & poll: INLINECODE13
→ returns
running or
exited
- 3. Get output: INLINECODE16
→ returns the agent's full response text
- 4. Relay output to user as-is
Multi-turn conversation
Session context is maintained automatically across send calls.
The backend agent remembers all previous messages in the session.
Confirmation flow example:
- 1. INLINECODE18
- Poll + log → agent responds: "Will buy ~0.65 SOL at $153. Confirm?"
- Relay to user, user says "yes"
- INLINECODE19
- Poll + log → agent responds: "Done. TX: abc123..."
- Relay to user
Follow-up questions work the same way — just send the user's
response. The backend has full conversation history.
To start a fresh conversation:
CODEBLOCK2
Cancel
CODEBLOCK3
Session management
CODEBLOCK4
Rules
- 1. Always use
background:true for send — agent responses take 10-300s. - Pass user intent as natural language — do NOT interpret or construct
specific trading commands.
- 3. Backend agent handles all domain knowledge, tool selection, and
multi-step reasoning.
- 4. Relay stdout to user as-is — already formatted for humans.
The output includes a browser link at the end (e.g.
https://aiusd.ai/chat/<session-id>).
Always include this link when relaying the response — it lets browser-login users
continue the conversation in the web UI.
- 5. If response asks for confirmation or more info, relay to user,
then
send their reply back (same session, same pattern).
- 6. Run commands sequentially — only one active
send per session. - Short commands (
session reset, cancel, login) can run foreground
(no
background:true needed).
AIUSD Pro
使用自然语言与AIUSD对话。此技能将任务委派给后端AI代理——您无需了解AIUSD内部机制或构造特定命令。
CLI入口
本技能所有命令均使用npx -y aiusd-pro作为CLI前缀。无需全局安装即可运行——npx会自动从npm解析包。
如果aiusd-pro已存在于PATH环境变量中(通过npm install -g aiusd-pro安装),您可以直接使用aiusd-pro。
使用场景
当用户希望通过自然对话进行任何与AIUSD或交易相关的操作时使用。例如:
- - 我的余额是多少?
- 买入价值100 USDC的SOL
- 质押500 AIUSD
- 在HyperLiquid上5倍做多ETH
- 显示热门代币
身份验证
如果npx -y aiusd-pro send因身份验证错误失败,请运行登录:
- 1. npx -y aiusd-pro login --browser → 打印包含url和sessionid的JSON
- 将url发送给用户(切勿伪造)
- npx -y aiusd-pro login --poll-session id> → 等待登录完成
使用方法
发送消息(后台模式)
后端代理操作需要10-300秒(工具调用、推理、交易、交易确认)。始终使用后台模式以避免执行超时截断输出:
bash background:true command:npx -y aiusd-pro send 用户请求内容
返回一个sessionId。然后轮询完成状态并获取输出:
process action:poll sessionId:
process action:log sessionId:
完整流程:
- 1. 启动:bash background:true command:npx -y aiusd-pro send 我的余额是多少?
→ 返回 sessionId: abc123
- 2. 等待并轮询:process action:poll sessionId:abc123
→ 返回 running 或 exited
- 3. 获取输出:process action:log sessionId:abc123
→ 返回代理的完整响应文本
- 4. 按原样将输出转发给用户
多轮对话
会话上下文在send调用之间自动保持。后端代理会记住会话中所有之前的消息。
确认流程示例:
- 1. bash background:true command:npx -y aiusd-pro send 买入价值100 USDC的SOL
- 轮询+日志 → 代理响应:将以153美元价格买入约0.65 SOL。确认?
- 转发给用户,用户回复是
- bash background:true command:npx -y aiusd-pro send 是
- 轮询+日志 → 代理响应:完成。交易ID:abc123...
- 转发给用户
后续问题同样适用——只需send用户的回复即可。后端拥有完整的对话历史。
要开始新对话:
bash command:npx -y aiusd-pro session reset
取消
bash command:npx -y aiusd-pro cancel
会话管理
bash command:npx -y aiusd-pro session new
bash command:npx -y aiusd-pro session list
bash command:npx -y aiusd-pro session reset
规则
- 1. 始终使用background:true 进行send操作——代理响应需要10-300秒。
- 以自然语言传递用户意图——不要解释或构造特定的交易命令。
- 后端代理处理所有领域知识、工具选择和多步骤推理。
- 按原样将标准输出转发给用户——已格式化为人类可读。输出末尾包含浏览器链接(例如https://aiusd.ai/chat/)。转发响应时始终包含此链接——它允许通过浏览器登录的用户在Web界面中继续对话。
- 如果响应要求确认或更多信息,请转发给用户,然后send他们的回复(同一会话,相同模式)。
- 按顺序执行命令——每个会话一次只能有一个活跃的send操作。
- 短命令(session reset、cancel、login)可以前台运行(无需background:true)。