AI AGENT / HYPERLIQUID PERPS
MAINNET GitHub ↗
Overviewv0.7.1
Claude Code · MCP · Hyperliquid

An AI trading agent for Hyperliquid: Claude trades perps from Claude Code, with an exact stop and target on every order.

pathiel is a free, open-source Hyperliquid MCP server and Claude Code plugin: 30 tools that read Hyperliquid perpetual futures markets and your account, and place orders, from Claude Code, Claude Desktop, Cursor or any MCP client.

Real money. pathiel runs on Hyperliquid mainnet. With no key it only reads; once you add a key, orders are real. Practice on testnet with one line: PATHIEL_NETWORK=testnet.

BracketLongEvery order looks like this
TP ENTRY SL R:R 2.5 1R
SideLONG
Stop1R
Target2.5R
Risk1% EQ
Leverage≤ 3x

Illustration of how a bracket is built. Not market data, not a result.

One marketFocusOil desk

One market at a time, studied hard.

One desk trades at a time, crude oil by default, holding one position. Every input it reads is chosen for that market.

  • Brent (xyz:BRENTOIL) on mainnet, WTI on testnet; one position per account
  • EIA weekly crude stocks, read as the surprise against the 4-week average
  • CFTC positioning, Polymarket and Kalshi odds on Iran, Hormuz and OPEC+
  • Sanctions and the Federal Register; Hyperliquid funding and open interest
  • The weekly EIA and API prints, plus a 47-event calendar: OPEC and IEA reports, FOMC, CPI, jobs, expiries
  • A tick every 15 minutes; the thesis is rewritten daily, after each listed catalyst, a 1.5% move, a stop break or a headline alert
The briefScenariosEvery call

The most likely moves, written down.

Every brief prices the next week as 3 to 5 scenarios whose odds must sum to 100%, or the brief is rejected and rewritten.

Grinds higher
40%
Range holds
26%
Surplus wins, retest lows
22%
Headline shock lower
12%

Out if: a 1h close below the stop
Biggest risk: the worst scenario, with its odds
Next catalyst: named, with its UTC time

Every call is graded afterwards: direction hit rate and a Brier score on the odds it gave.

Example of the brief's format, not a live call.

RulesEvidenceTested first

Rules that earned their place.

A rule goes live only after a backtest or a fluke-or-edge review of real trades says so.

RuleTested by
Target rests as a limit order26 target exits, limit vs market
Target 0.5% inside the day's range540-combination sweep
2R minimum, buy dips onlyBrent sweep, 30 and 50 days
No long under the 24h lowFlagged by the review on 10 real trades
No entry 2h around EIA52-day event study
Flat over the weekendMonday-gap study, 8 Brent datasets

Tested and dropped: breakeven stops regime filter funding-spike filter, and every rule from an 8,747-combination sweep. The review calls nothing an edge with fewer than 10 trades or p of 0.05 or more.

InstallClaude Code3 lines
/plugin marketplace add Julian-dev28/pathiel
/plugin install pathiel@pathiel
/pathiel:setup

Setup shows the network and the risks, builds a private Python environment and connects the MCP server.

Reading markets needs no account. To trade, connect your Hyperliquid wallet with one signature: it approves an API wallet, which can trade and never withdraw.

MarketsDesksWatchlist
SymbolMarketDesk
xyz:BRENTOILBrent crude, HIP-3OIL
xyz:CLWTI crude, HIP-3OIL
xyz:GOLDGold, HIP-3METALS
xyz:SILVERSilver, HIP-3METALS
BTC, ETH, ...Any main-dex perp, by nameREAD + TRADE

Desk briefs for crude oil (Brent and WTI) and metals (gold and silver) on Hyperliquid's HIP-3 markets give Claude a written call to trade from.

Risk engineDefaultsEnforced on every order
RuleDefaultWhat happens
Order shapeBRACKETEvery trade is one bracket order: an entry, a stop-loss and a take-profit target, sized from your risk profile.
Risk at the stop1.00%Default profile: at most 3x leverage, 1% of equity at risk at the stop, one position at a time.
Reward to risk≥ 2ROrders under 2R are refused.
Stop vs liquidation< 0.5A stop outside half the distance to liquidation is refused.
Live-money callsASKClaude Code asks before each live-money call. Nothing trades in the background.
pathiel fee0.00%pathiel charges no fee: no order it places carries a Hyperliquid builder fee, so you pay only Hyperliquid's own trading fee.
Research pool24h delayed

Opt in with one signed statement and pathiel grades your public fills with the same fluke-or-edge harness it runs on its own trades. Results are published at least 24 hours late on the scoreboard. No payout or reward is tied to returns.

Open scoreboard →
Risk disclosureRead first

Leveraged perps can lose the whole account, fast. There is no demonstrated edge and no return is promised. This is software, not financial advice. Hyperliquid's terms bar use from restricted jurisdictions, including by US persons; pathiel does not check where you are.