How can my AI agent trade perps without being able to withdraw my funds?

Short answer: give your agent a trade only key instead of your wallet key, because the keys compi sets up on Hyperliquid, Aster and Lighter can trade but cannot withdraw, and compi checks every order your agent sends through compi against rules you set.

Think of it like handing a valet the key that starts the car but does not open the boot. Your agent gets to drive. Your stash stays where it is. Your cheeks stay firmly in your own seat.

How it works in four steps

  1. Add compi to your browser. Use the compi Chrome extension, which works in Chrome and other Chromium browsers, or THICC, our web trading hub at trade.compi.ai.
  2. Connect your wallet and your venue. Your wallet approves a trade only key on Hyperliquid, Aster or Lighter. That key can trade for your account, but withdrawals and transfers out still need a signature from your own wallet. You can revoke the key any time on the venue.
  3. Set your rules. Spend caps, max position size, max leverage, a daily loss limit, allowed markets, a slippage cap, approval above a size you choose, and a kill switch.
  4. Bring your agent. Claude, ChatGPT, Grok, Cursor and other well known agents connect through our MCP link at https://mcp.compi.ai/mcp. Your own bot can connect too, and any agent compi does not recognise waits for your approval.

From then on your agent proposes orders, compi checks each one against your rules, and only orders that pass are signed in your browser.

What your agent can and cannot do

  • Can: read your status, limits, account, positions and market data, and propose perp trades on Hyperliquid, Aster and Lighter inside your rules.
  • Can: move collateral between your own markets inside the same account, under your rules and approvals. It can never send funds out of the account.
  • Cannot: withdraw your funds or send them to another address. The keys compi sets up can trade but cannot withdraw.
  • Cannot: change your rules, limits or kill switch. Only you change those, in the extension.

FAQ

What is an agent key on Hyperliquid?

It is a separate key that your main wallet approves to sign trades for your account. Hyperliquid also calls it an API wallet. It can place and cancel orders, and it cannot withdraw. Your main wallet keeps the final say on money leaving your account. On Aster, compi approves its key with withdrawals switched off. On Lighter, compi only ever uses its key to trade, and withdrawals are signed by your own wallet.

Does compi hold my funds or my keys?

No. compi is the connector, not the wallet or the venue. Your funds stay in your own wallet and your venue account. Private keys stay in your wallet, and compi never stores your keys on any server. Rules live in the extension on your device. compi never holds your seed phrase.

If my agent cannot withdraw, is my money out of risk?

No. A trade only key stops money from leaving, but trades can still lose. That is why the rules matter: caps, leverage limits and a daily loss limit set how far your agent can go. A daily loss limit stops new orders through compi once losses reach your number, and positions you already hold can still move past it.

Do my rules cover trades I make somewhere else?

No. Rules apply to orders sent through compi. Trades you place directly on Hyperliquid, Aster, Lighter or through another tool are outside them.

What happens if I close Chrome?

compi runs in your browser, so your agent and strategies stop working through compi when Chrome is closed. Stop orders already resting on the venue stay there, because they live on the venue, not in your browser. That is the trade off of running in your browser, with private keys in your wallet and rules in the extension on your device.

Which venues work today?

Hyperliquid, including HIP 3 markets such as trade.xyz and Entropy, Aster and Lighter. Uniswap is next.

What does it cost?

Connecting agents is free, with no subscription. compi may add a small builder fee that you approve in your wallet. Waitlist members pay no compi fees, ever. Venues charge their own fees.

Is compi an exchange or an adviser?

No. compi is not an exchange, broker or adviser, and it does not trade on its own. You bring the agent, you set the rules.

Want the full list of rules you can set? See trading limits and what a kill switch does, check your habits with CHEEKS, then join the waitlist at compi.ai.

General information only, not financial advice. Trading is risky, so only trade what you can afford to lose.