Hyperliquid · Agentic Trading

Your agent.
Trading Hyperliquid.
While you sleep.

Open Broker is the trading CLI built for autonomous agents. Execute orders, run event-driven automations, and ship every trade through a structured audit log on Hyperliquid DEX — programmatically.

Start trading Read the docs
Install
$ npm install -g openbroker
1bps
Transparent builder fee
20+
CLI commands
1st
Agent-native Hyperliquid CLI
24/7
Autonomous execution

A trading desk that runs itself

One command to set up. Point your agent at it. Open Broker handles order routing, position tracking, and risk management directly on Hyperliquid — no intermediaries, no CEX API key complexity.

Built as a drop-in OpenClaw skill. Compatible with any agent that can run a CLI.

openbroker — zsh
# install openbroker $ npm install -g openbroker # Setup wallet and config $ openbroker setup Generated wallet: 0x4f2a...8c3e Config saved to ~/.openbroker/.env Builder fee approved # Check account $ openbroker account Equity: $2,400.00 · Margin: $0.00 # Market buy HYPE $ openbroker buy --coin HYPE --size 0.4 Filled LONG HYPE-PERP @ 38.50 · size: 0.4 # Set stop loss and take profit $ openbroker tpsl --coin HYPE --tp +5% --sl -2% TP set @ 40.425 · SL set @ 37.69 # Check positions $ openbroker positions HYPE-PERP LONG 0.4 +$84.20 (+2.6%) $

Everything an agent needs to trade

01 · EXECUTION
Full order types
Market, limit, trigger, TP/SL, bracket, chase, TWAP, scale — every Hyperliquid order type as a clean CLI command, composable from any agent.
02 · AUTOMATIONS
Event-driven runtime
Write automations as small TypeScript files. Subscribe to price moves, fills, funding updates, PnL thresholds. State persistence and restart-on-crash baked in.
03 · STRATEGIES
Built-in strategies
Grid trading, DCA, funding arbitrage, market making — ready to run. Each strategy ships as a one-line invocation with every parameter tunable.
04 · AUDIT
Every trade, recorded
Local SQLite audit log captures every order, cancel, leverage change, and strategy decision. Replay sessions, reconcile fills, prove what your agent did.
05 · MONITORING
Optional dashboard forwarder
Drop in openbroker-monitoring and the audit pipeline streams notes, metrics, and agent actions to your dashboard. Auto-loaded — no glue code.
06 · AGENTS
OpenClaw plugin
Install openbroker-plugin and your OpenClaw agent gets typed tool calls, a background position watcher, and webhook alerts when trades move.
07 · RISK
Position management
Real-time PnL tracking, per-position TP/SL with percentage or absolute targets, reduce-only orders, dry-run mode on every command.
08 · OPEN
Non-custodial
Your keys stay yours. Every transaction signed locally by your wallet. Open-source, MIT licensed, fully transparent — three small npm packages, no hidden services.
Setup

Trading in three commands

01
Install
Pick your install path. Standalone CLI for servers and local use, or the OpenClaw plugin for agents that want typed tool calls and a background position watcher. Both work on Node.js 22+.
npm install -g openbroker
openclaw plugins install openbroker-plugin
02
Run setup
Generates a new wallet or imports your existing private key. Saves config to ~/.openbroker/.env and approves the builder fee — all in one command.
openbroker setup
03
Trade, automate, audit
Deposit USDC to your wallet on Hyperliquid and trade — market orders, automations, strategies. Every trade lands in a local SQLite audit log. Add openbroker-monitoring to stream metrics to your dashboard in real time.
openbroker buy --coin ETH --size 0.1
openbroker auto run --example grid

Talk trades. Your agent does the rest.

Tell your agent you're interested in oil. It researches the market, checks funding rates, finds the play. You talk it through, agree on the thesis — and the agent writes a custom automation: entry logic, stop losses, alerts, and monitoring. Deployed and running while you move on with your day.

01
Research together
Ask your agent to scan funding rates, check prices, or find opportunities across 100+ Hyperliquid markets. Talk through the thesis before committing.
02
Agent builds the strategy
Once you agree on the play, the agent writes a custom automation — entry conditions, position sizing, take profit, stop loss — tailored to your exact thesis.
03
Executes with safety rails
The automation runs with built-in risk management. Margin warnings, PnL thresholds, and graceful shutdowns keep you protected around the clock.
04
Keeps you in the loop
Your agent alerts you when the trade triggers, when targets hit, or when something needs your attention. You stay informed without watching charts.
crude-breakout.ts
// Agent-generated: crude oil breakout export default function(api) {   const COINS = ['CL', 'BRENTOIL'];   api.on('price_change', async (ev) => {     if (!COINS.includes(ev.coin)) return;     if (ev.changePct > 1.5) {       await api.client.marketOrder(         ev.coin, true, 50       );       await api.publish(         `${ev.coin} breakout — long`       );     }   });   api.on('pnl_threshold', async (ev) => {     if (ev.changePct < -3) {       await api.client.closePosition(ev.coin);       await api.publish(`${ev.coin} stopped out`);     }   }); }
price_change funding_update position_opened position_closed pnl_threshold margin_warning tick

Every trade, accountable.

Open Broker runs every order, cancel, and strategy decision through a structured audit pipeline. A local SQLite ring buffer records actions in a detached daemon so the trading loop never blocks on disk I/O. Pull a session report any time with openbroker auto report <id>.

Drop in openbroker-monitoring and the same audit events stream to your dashboard — notes, numeric metrics, and agent action logs — auto-loaded by the runtime, no glue code.

01
Local audit ring buffer
SQLite-backed log of every action your agent takes. Survives restarts, replays sessions, reconciles fills against on-chain state.
02
Convention auto-load
npm install openbroker-monitoring alongside the CLI and the runtime picks it up automatically — no flags, no observer wiring.
03
Pluggable observers
The AutomationAuditObserver interface is small and stable. Build your own forwarder for OpenTelemetry, Prometheus, Slack — anything that takes a callback.
04
Fire-and-forget
Network forwarders are non-blocking with 5s timeouts. If your dashboard is down, the trading loop never notices. Failures swallowed silently.
funding-arb.ts
// Every audit call also fans out to // openbroker-monitoring if installed. export default function(api) {   api.on('funding_update', async (ev) => {     if (ev.annualized > 15) {       api.audit.record('signal', {         coin: ev.coin,         rate: ev.annualized,       });       api.audit.metric(         'funding.signal.bps', ev.annualized       );       // All write methods auto-audited       await api.client.marketOrder(         ev.coin, true, 100       );     }   }); }
audit.record audit.metric agent_action order.placed order.filled order.canceled leverage.changed

Your agent should
be trading already.

Get started in under five minutes. No account. No KYC. Just your wallet and a strategy.

Install Open Broker Read the docs