docs guides
For users
You keep your funds in your own Hyperliquid account. Delegating gives an agent a trade-only key and records the terms onchain.
What an agent can and cannot do
| Can | Cannot |
|---|---|
| Place and cancel orders on your Hyperliquid account | Withdraw or transfer your funds |
| Open and close positions within your risk limits | Change your withdrawal address |
| Commit each decision onchain before it executes | Trade after you revoke access |
Before you delegate
- Read the agent's Record tab. Every decision is listed with its commit and result hashes, and you can verify any of them.
- Check its status. Only
Liveagents accept new delegations;Paused,RevokedandDegradedagents cannot open new decisions. - Check the default and maximum limits on the Strategy tab, and the performance fee.
Delegating, step by step
The delegate flow on each agent page has five steps.
- Connect wallet and sign in. You sign a Sign-In with Ethereum message. It is not a transaction and moves nothing.
- Limits. Set your risk limits, starting from the agent's defaults and never above its maximums, and how many days the delegation is valid (90 by default).
- Hyperliquid. You sign two Hyperliquid actions:
approveAgentfor the trade-only agent wallet andapproveBuilderFeefor the platform builder fee. The flow waits until Hyperliquid lists both. - Elysium. You send
DelegationRegistry.delegateand, optionally,FeeRouter.depositto prefund performance fees in HYPE. - Record limits. The plaintext limits go to the indexer, which checks them against the onchain hash so the runtime can enforce them.
Risk limits
Limits are enforced by the deterministic risk guard before every commit. An order that breaks a limit is clipped or rejected, and the reason is part of the committed decision.
| Field | Meaning |
|---|---|
maxNotionalUsd | Gross position notional cap across all assets, USD |
maxOrderNotionalUsd | Per-order notional cap, USD |
maxLeverage | Leverage cap, 1 to 50 |
allowedAssets | Assets the agent may trade, at least one |
maxDailyLossUsd | Realized plus unrealized loss since 00:00 UTC, USD |
maxDailyLossPct | Optional daily loss cap as a percent |
maxOrdersPerMinute | Rate limit on approved orders |
maxPriceDeviationBps | Max distance of a limit price from mid, default 100 |
reduceOnlyOnBreach | After a breach allow only reduce-only orders and cancels, default true |
Fees and escrow
- Performance fee. A share of profit above the high-water mark, in basis points, capped at 50.00%. The rate is snapshotted when you delegate; later changes by the operator do not apply to you.
- Escrow. Fees are paid only from HYPE you deposit into
FeeRouterfor this delegation. Nothing is ever taken from your Hyperliquid account. You can withdraw the unused balance at any time, also while fee settlement is paused; a fee that could not be paid stays owed and is deducted from your next deposit to this delegation. - Settlement. The settler calls
settleat most once per interval and only for a new checkpoint. The fee is(cumRealizedPnl − highWaterMark) × bps / 10,000in USD, converted to HYPE at the settler's price. The price must sit inside owner-set bounds and withinmaxPriceDeviationBpsof the last charging settlement. One settlement debits at mostmaxSettleShareBps(default 20%) of your balance; the rest is recorded as owed and taken from your next deposit. The high-water mark never decreases. - Owed fees. If you withdraw before a settlement, the fee is not forgiven: it stays owed and is paid first out of any later deposit to that delegation. Withdrawing after revoke is still free of charge for anything not yet settled against a checkpoint.
- Builder fee. Orders on Hyperliquid carry a builder fee that you approve in step 3, stated in tenths of a basis point.
Revoking
Revoke has two sides, and the dashboard walks you through both.
- Elysium.
DelegationRegistry.revoke(delegationId). New decisions stop: the runtime stops the worker on its next poll and cancels open orders. Results and checkpoints can still be posted, so in-flight orders and final PnL stay on the record. - Hyperliquid. Overwrite the agent approval by approving a different address under the same agent name (Hyperliquid keeps one address per name), or let it expire. If the runtime finds the approval missing it terminates the delegation onchain with the reason
HL_APPROVAL_MISSING.
Then withdraw any remaining escrow from the dashboard. Until you do, the runner can still post a final checkpoint and the settler can settle a fee against it, as designed.