How do I add a kill switch and loss limit to my AI trading agent?

Short answer: put both outside your agent, in the tool your agent trades through, so your agent cannot argue with them or switch them off; in compi you set a daily loss limit and get a kill switch that stops every connected agent from trading through compi in one tap.

An agent that guards its own limits is like a puppy guarding the treats. Sweet idea. Never works. The rules belong one step outside the agent, where it cannot reach them.

Add both in three steps

  1. Add compi to your browser and connect your wallet and venue. compi is a Chrome extension that works in Chrome and other Chromium browsers. It connects to Hyperliquid, Aster and Lighter today, with more venues coming soon.
  2. Set your daily loss limit. Pick the number you are willing to lose in a day. Once losses reach it, compi stops new orders from your agent. While you are there, add a max order size, max leverage and the markets your agent may trade.
  3. Connect your agent. Claude, ChatGPT and Grok connect through our MCP link at https://mcp.compi.ai/mcp. Your own bot can connect with its own key. The kill switch sits in compi from the first minute, ready for you to tap.

What each one does

  • Daily loss limit: stops new orders sent through compi once the day's losses reach your number. Positions you already hold can still move past it.
  • Kill switch: stops every connected agent from trading through compi, in one tap. It is not a promise that open positions close or that every open order is cancelled, so check your positions on the venue after you use it.
  • Both: sit outside your agent. Your agent can read your limits, but it cannot change them or press the switch.

What a kill switch does, and what it does not do

Short answer: in compi, the kill switch stops all agent and strategy activity in one tap, but it is not a promise that open positions close or that every open order is cancelled, so check your positions on Hyperliquid after you use it.

A kill switch is the big red button for your AI agent or trading bot. It is great at one job: stopping new activity, fast. It is not a magic undo button. Knowing the difference keeps you in control.

What the kill switch does in compi

  • Stops all agent and strategy activity running through compi, in one tap.
  • Works no matter which agent you brought: Claude, ChatGPT, Grok, Hermes, OpenClaw, Muse or your own bot.
  • Sits outside your agent. The agent cannot press it, argue with it or switch it back on.

What it does not do

  • It does not promise that open positions close. A position you already hold can keep moving with the market.
  • It does not promise that every open order is cancelled.
  • It does not cover trades placed directly on a venue or through another tool. Rules apply to orders sent through compi.
  • It does not remove trading risk. Nothing does.

What to do after you press it

  1. Open Hyperliquid and look at your open positions and open orders.
  2. Close or cancel anything you no longer want, by hand.
  3. Look at what your agent was doing and adjust your rules before you switch it back on.
  4. If you are done with an agent for good, revoke its key.

A kill switch works best with friends

The kill switch is your last line. The everyday work is done by your other limits, which compi checks before every order: spend caps, max position size, max leverage, a daily loss limit, allowed markets, a slippage cap and approval above a size you choose. If an order sent through compi breaks a rule, it is blocked before it is signed.

FAQ

Can I just tell my agent to stop at a loss in its prompt?

You can, but a prompt is a polite request. Agents misread, forget and get creative. A limit in the tool your agent trades through is checked on every order, whatever the agent thinks.

Does the kill switch close my positions?

No promise of that. It stops new activity through compi. Open positions and orders already on the venue may stay, so check them on Hyperliquid, Aster or Lighter and close what you want to close.

Does the loss limit cover trades I make somewhere else?

No. Rules apply to orders sent through compi. Trades placed directly on the venue or through another tool are outside them.

Can my agent turn the limits off?

No. Agents cannot change your rules, your limits or the kill switch. Only you can, in the extension.

Can I still lose more than my limit?

Yes. Prices can move past your number on positions you already hold, and venues charge their own fees. A loss limit stops new orders, it does not stop the market.

Is compi an exchange or an adviser?

No. compi is the connector, not the agent, the wallet or the venue. It does not trade on its own and gives no advice.

Is a kill switch the same as a stop loss?

No. A stop loss closes one position at a price you choose. The kill switch stops agent and strategy activity. Many people use both.

Is a kill switch the same as a daily loss limit?

No. A daily loss limit stops new orders through compi once losses reach your number. Positions you already hold can still move past it. The kill switch is the manual button you press whenever you want everything to stop.

Can my agent turn the kill switch off?

No. You set your rules, and only you change them.

Do I need to code anything?

No. In compi you set your limits and the kill switch in the extension. No code needed.

Does compi hold my funds?

No. compi never holds your funds, wallet keys or seed phrase. The Hyperliquid key compi uses can trade but cannot withdraw.

Which venues?

Hyperliquid, including HIP-3 markets such as trade.xyz and Entropy, Aster and Lighter work today. Uniswap spot swaps are coming soon.

What does it cost?

Connecting agents is free, with no subscription. Venues still charge their own fees. Join the waitlist at https://compi.ai/#waitlist for compi free for life (no compi fees, no builder fees ever) plus first access to THICC at trade.compi.ai.

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