Trade crypto, stocks (AAPL, NVDA, TSLA), indexes, and commodities (GOLD, SILVER) 24/7 on Hyperliquid via HIP-3. Real-time position & P&L tracking, orderbook monitoring, multi-account management, and websocket client for sub-5ms low-latency high-frequency trading.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install hyperliquid-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install hyperliquid-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/hyperliquid-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: hyperliquid description: Trade crypto, stocks (AAPL, NVDA, TSLA), indexes, and commodities (GOLD, SILVER) 24/7 on Hyperliquid via HIP-3. Real-time position & P&L tracking, orderbook monitoring, multi-account management, and websocket client for sub-5ms low-latency high-frequency trading. emoji: 🦞 homepage: https://github.com/chrisling-dev/hyperliquid-cli
requires: bins: - hl env: - HYPERLIQUID_PRIVATE_KEY
install: - npm install -g hyperliquid-cli
config: requiredEnv: - name: HYPERLIQUID_PRIVATE_KEY description: Private key for trading (hex string starting with 0x) stateDirs: - ~/.hyperliquid ---
Trade crypto perpetuals and HIP3 traditional assets (stocks, commodities) on Hyperliquid DEX from the command line.
This skill enables you to:
which hl
If not found, install it:
npm install -g hyperliquid-cli
hl --version
hl --help
To execute trades, you need a Hyperliquid API wallet:
0x)hl account add
# Follow the interactive prompts
or set the environment variable:
export HYPERLIQUID_PRIVATE_KEY=0x...your_private_key...
For best performance, start the background server before trading:
hl server start
hl server status # Verify it's running
The server provides:
Stop when done:
hl server stop
Hyperliquid's HIP3 enables trading traditional assets with crypto primitives:
# First, check available HIP3 markets and their coin values
hl markets ls
# Check Apple stock price (use the coin value from markets ls)
hl asset price xyz:AAPL
# Long 10 units of NVIDIA perp
hl order limit long 10 xyz:NVDA 140
# View order book for Gold
hl asset book xyz:GOLD
The background server dramatically improves performance:
| Operation | Without Server | With Server | | --------------- | -------------- | ----------- | | Price Query | ~200ms | ~5ms | | Order Placement | ~300ms | ~50ms | | Position Fetch | ~250ms | ~10ms |
hl account add # Add new account (interactive)
hl account ls # List all accounts
hl account set-default # Change default account
hl account remove # Remove an account
hl account positions # View positions
hl account positions -w # Watch mode (real-time)
hl account orders # View open orders
hl account balances # View balances
hl account portfolio # Combined positions + balances
Important: Before placing any order, always run hl markets ls to identify the asset's coin value. Use this exact coin value when placing orders.
Order Directions:
buy and selllong and short# First, identify the coin value from markets
hl markets ls
# SPOT orders (buy/sell)
hl order limit buy 0.1 @107 30 # Buy spot asset where @107 is the coin
hl order limit sell 1 @107 50 --tif Gtc
hl order market buy 0.001 @107
hl order market sell 0.1 @107
# PERP orders (long/short)
hl order limit long 0.01 BTC 50000 # Long BTC perp
hl order limit short 0.05 ETH 3500
hl order market long 0.01 BTC
hl order market short 0.1 ETH --slippage 0.5
# Cancel orders
hl order cancel # Interactive selection
hl order cancel <oid> # Cancel specific order
hl order cancel-all # Cancel all orders
# Set leverage (perps only)
hl order set-leverage BTC 10
hl markets ls # List all markets
hl asset price BTC # Get price
hl asset price BTC -w # Watch price
hl asset book ETH # Order book
hl asset book ETH -w # Watch order book
hl asset leverage BTC # Get leverage and margin info
hl asset leverage BTC -w # Watch leverage and margin
hl server start # Start background server
hl server stop # Stop server
hl server status # Check server status
hl upgrade # Check for updates
| Option | Description | | ------------ | ------------------------------------- | | --json | Output in JSON format (for scripting) | | --testnet | Use testnet instead of mainnet | | -h, --help | Show help |
When a user needs to set up trading, guide them through this process:
hl account ls to see if accounts exist- API Wallet: For trading (requires private key) - Read-only: For monitoring only (just address needed)
Example prompt to user:
> To trade on Hyperliquid, you'll need an API wallet. Here's how to set it up: > > 1. Go to https://app.hyperliquid.xyz/API > 2. Click "Create API Wallet" (you can name it anything) > 3. Copy the private key (starts with 0x) > 4. Run hl account add and paste it when prompted > > Would you like me to walk you through this?
See reference.md for complete command documentation and examples.md for workflow examples.
安装 Hyperliquid CLI (with HIP3 Support) 后,可以对 AI 说这些话来触发它
Help me get started with Hyperliquid CLI (with HIP3 Support)
Explains what Hyperliquid CLI (with HIP3 Support) does, walks through the setup, and runs a quick demo based on your current project
Use Hyperliquid CLI (with HIP3 Support) to trade crypto, stocks (AAPL, NVDA, TSLA), indexes, and commodities (...
Invokes Hyperliquid CLI (with HIP3 Support) with the right parameters and returns the result directly in the conversation
What can I do with Hyperliquid CLI (with HIP3 Support) in my finance & investment workflow?
Lists the top use cases for Hyperliquid CLI (with HIP3 Support), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/hyperliquid-cli/ 目录(个人级,所有项目可用),或 .claude/skills/hyperliquid-cli/(项目级)。重启 AI 客户端后,用 /hyperliquid-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Hyperliquid CLI (with HIP3 Support) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Hyperliquid CLI (with HIP3 Support) 可免费安装使用。请查阅仓库了解许可证信息。
Trade crypto, stocks (AAPL, NVDA, TSLA), indexes, and commodities (GOLD, SILVER) 24/7 on Hyperliquid via HIP-3. Real-time position & P&L tracking, orderbook monitoring, multi-account management, and websocket client for sub-5ms low-latency high-frequency trading.
Automate my finance & investment tasks using Hyperliquid CLI (with HIP3 Support)
Identifies repetitive steps in your workflow and sets up Hyperliquid CLI (with HIP3 Support) to handle them automatically
Hyperliquid CLI (with HIP3 Support) 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。