Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Hyperliquid CLI

БесплатноБез исполняемых скриптовНе проверен

Trade spot and perpetuals on Hyperliquid via hyperliquid CLI: inspect orderbooks, account state, and clearinghouse balances, calculate execution bounds…

wtfsayoот wtfsayo238 установок в других каталогах

Об этом скилле

Hyperliquid CLI Agent Guide

Use this skill when an agent needs to trade different assets on Hyperliquid through the hyperliquid CLI: inspect markets, understand an account, plan orders or transfers, dry-run side effects, or execute an explicitly approved workflow.

The CLI is designed for agents. Prefer structured JSON, command schemas, bounded streams, dry-runs, and explicit cleanup checks. Do not treat this as a feature list; treat it as a workflow for safely reaching an outcome.

Operating Rules for Agents

  1. Structured JSON by default. Pass --json, --format json, or export HYPERLIQUID_AGENT=1.
  2. Discover before acting. Query schema, --help, and read-only commands before composing mutations.
  3. Dry-run before mutation. Execute --dry-run to inspect raw transaction envelope, asset id, and fee impact before proposing live execution.
  4. Isolated key management. Resolve credentials via local OWS keystore records or environment variables. Secrets, mnemonics, and passphrases remain on the local host and are never printed or surfaced in chat.
  5. Strict selectors. Use USER for remote protocol account queries, ACCOUNT_SELECTOR for local wallet store aliases, and *_ADDRESS for remote targets (recipients, builders, vaults).
  6. Bounded streams. Terminate subscriptions with --max-ticks, --max-events, or an explicit --idle-timeout-ms.
  7. Two-phase mutation. Plan via dry-run, present the concrete side effects, and obtain explicit operator approval before adding -y.
  8. Audited post-execution state. Confirm completed execution and zero residual exposure via orders open and positions list.

When to Use -y / --yes

-y (or --yes) suppresses the interactive confirmation prompt on commands that mutate state. It is not a "make it work" flag. Use it only when the user has explicitly approved the exact action.

Use -y when:

  • The user has explicitly authorized a live mutating action (live order creation, transfers, staking, vault deposit/withdraw, builder approval, account-abstraction set, referral set/register, etc.).
  • You are running an unattended setup that must accept packaged defaults: hyperliquid setup -y.
  • The command's schema shows confirmation: required and you are executing live (not dry-running).

Do not use -y when:

  • Running with --dry-run. Dry-runs never prompt and do not need -y.
  • Running read-only commands (market data, account reads, schema, status).
  • Cancelling a single order by OID (orders cancel <OID>) — this path does not accept -y.
  • The action is unauthorized, ambiguous, or you have not surfaced the full side-effect plan to the user.

When in doubt, dry-run first, surface the planned action and amounts to the user, and only add -y after explicit approval. orders cancel-all does accept -y; everything else mutating should be schema-checked before assuming -y is valid.

Install or Verify the CLI

If hyperliquid is not installed:

curl -fsSLO https://raw.githubusercontent.com/hypurr-inc/hyperliquid-cli/main/install.sh
sh install.sh --json --quiet

Verify:

hyperliquid --version
hyperliquid --format json schema --max-results 5

Update when needed:

hyperliquid --format json update

If update is unavailable, rerun the install command.

Agent Defaults

Set these in automation:

export HYPERLIQUID_AGENT=1
export HYPERLIQUID_FORMAT=json
export HYPERLIQUID_NO_UPDATE_CHECK=1

Use output controls aggressively:

hyperliquid --format json --results-only mids
hyperliquid --format json --select coin,price mids
hyperliquid --format json --max-results 10 perps list

Task Loop

For any task, follow this loop:

  1. Clarify network and side effects. Mainnet vs testnet; read-only vs dry-run vs live.
  2. Inspect command contract. Use schema and help.
  3. Gather state. Query market/account data in JSON.
  4. Plan. Compose the minimal command with exact asset identifiers and amount units.
  5. Dry-run. Validate payload, signer, resolved asset id, and quote/collateral unit.
  6. Ask for approval if live. Explain expected side effects and cleanup.
  7. Execute. Use small reversible actions where possible.
  8. Verify and cleanup. Confirm no unexpected open orders or positions.

Discover Command Shape

Use schema when you are unsure about arguments, risk, dry-run support, or output contract:

hyperliquid --format json schema orders create
hyperliquid --format json schema search
hyperliquid --format json schema orders chase
hyperliquid --format json schema watch risk
hyperliquid --format json schema transfer send-asset
hyperliquid --format json schema staking delegate

Use --help for human-readable argument details. Every trading verb includes an Examples block with a --dry-run line you can copy:

hyperliquid buy --help
hyperliquid search --help
hyperliquid orders chase --help
hyperliquid orders
Полный SKILL.md на ClawHub

Установить Hyperliquid CLI в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Hyperliquid CLI?

Trade spot and perpetuals on Hyperliquid via hyperliquid CLI: inspect orderbooks, account state, and clearinghouse balances, calculate execution bounds, dry-run mutations, place bracket or trailing orders, transfer assets, and manage vaults. Supports quantitative and autonomous trading workflows for OpenClaw, NanoClaw, Trae, Claude, and Hermes (Hyperliquid 量化交易 / 永续合约 / 永續合約 / 現貨 / 现货交易 / 자동매매 / ハイパーリキッド).

Как установить скилл Hyperliquid CLI?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Hyperliquid CLI запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Hyperliquid CLI с