A trading-only key limits what software can do with your account. It does not limit what a trade can lose: an agent that trades badly loses money the same way you would. Decide how much the agent trades with before you start.
What an agent key is
A Hyperliquid agent key, also called an API wallet, is a signing key that an account owner registers with one signature. After that, orders signed by the key are treated as orders from the account.
The key holds no funds of its own. Outcome does not issue it, cannot see it, and cannot block or end it. It is an arrangement between your account and Hyperliquid.
What a key does not limit
A trading-only key keeps your funds from leaving the account. It does not choose the trades:- It can buy at any price. A market order on a thin book fills far from the last traded price.
- It is not limited to Outcome markets. The same key can open leveraged perpetual positions on Hyperliquid.
- A budget, a size cap or a loss limit written in a prompt is an instruction to the agent. Nothing on the exchange enforces it.
How to set it up
A key on your own account
This is the standard setup. Your agent trades the balance you already have, and your wallet’s own key never leaves your wallet.- Your agent generates a key on your machine, keeps its private half in a local environment file, and shows you its address.
- You open outcome.xyz/ai/connect, sign in and paste the address. Your agent can open the page and put the address on your clipboard for you. Check that the page shows the same start and end as the address your agent printed, then approve it with your wallet.
- You give your agent your account address, which the page shows once the key is approved.
- This works for every Outcome account, including ones made with email or a social account.
- The agent can trade your whole balance on any Hyperliquid market, so this suits an account you already keep for trading.
- Only approve a key your own agent created on your machine. Never approve an address somebody sent you.
- If your wallet connects to the Hyperliquid app, its API page can authorize a key as well.
A separate wallet for the agent
Use this if you want a hard cap. Create a wallet used only by the agent and fund it with a set amount. The agent’s wallet is its own Hyperliquid account. It approves its own trading-only key, and your main wallet is never involved.- The most the agent can trade with is what you sent to that wallet.
- Positions and history stay separate from your own trading.
- To stop the agent, revoke its key, then cancel its open orders and close or keep its positions yourself. Withdrawing the balance limits what a running agent can still spend, but only revoking the key ends its access.
Ending a key
A key stops working when any of these happens:- You remove it. outcome.xyz/ai/connect lists every key on your account. Keys from outside apps and from your other browsers have a Remove button; the key the browser you are using trades with does not. On Outcome you can reach it from your account menu: open Settings, then Agent keys. The API page of the Hyperliquid app lists your keys too.
- You approve a new key under the same name, which replaces the old one.
- It reaches its expiry. Hyperliquid gives every key an expiry date, and outcome.xyz/ai/connect shows it next to each key.
Key limits
Hyperliquid limits how many named keys one account can hold, and a new account can hold only a few. Outcome’s web app uses a named key for each device you sign in on. If your account is at its limit and you approve trading on a new device at outcome.xyz, the app frees a slot by replacing an existing key, and it picks keys from other apps first. An agent that shares your account can lose its key this way. If it stops trading after you sign in on a new device, approve a new key for it.Rules for handling keys
- Never give an agent the private key or seed phrase of your main wallet. An agent that follows Outcome’s skill will refuse it.
- Keep the agent wallet’s key and the agent key in a local environment file or a secret manager. Never paste them into chat, commit them to a repository, or store them in a shared document.
- Generate a new agent key when you move the agent to another machine, and revoke the old one.
- Check the account from time to time in the Hyperliquid app. Open orders and positions there are the truth, whatever the agent reports.