Connect Hyperliquid to Sumex
Hyperliquid has no API key and secret in the usual sense. Instead, your main wallet approves an API wallet (Hyperliquid also calls it an agent wallet): a separate key that can sign trades for your account. Sumex offers two ways to set this up:
- Connect with Wallet: one signature in your wallet and Sumex does the rest. Recommended.
- Manual API Connect: you create the API wallet on Hyperliquid yourself and paste its details.
What you get after connecting
- Perpetuals and spot trading on your Hyperliquid account from the Sumex trading terminal.
- Balances and positions from Hyperliquid in your Sumex portfolio.
Before you start
- You need the EVM wallet you already use on Hyperliquid (for example MetaMask or Rabby).
- That wallet's Hyperliquid account must hold funds. Hyperliquid removes API wallets from accounts with no funds, and Sumex's connection check fails with a "must deposit" error on an empty account.
- On Hyperliquid, open Settings and turn on Disable HIP-3 Dex Abstraction and Disable Unified Account Mode. Sumex asks for both, before or right after connecting.
Option 1: Connect with Wallet (recommended)
- Open the Exchanges tab of the Connection Manager and click Add Bundle.
- Choose Hyperliquid, then under If You Have Account click Connect with Wallet.
- Enter an Account Name (Sumex uses "Hyperliquid" if you leave it empty).
- If no wallet is connected yet, click Connect Wallet and pick the wallet you trade with on Hyperliquid. Sumex then shows "Wallet:" with the shortened address.
- Click Connect with Wallet and approve the signature request in your wallet. The button moves through Confirm in wallet…, Approving agent… and Saving… to Connected.
What happens behind the scenes: Sumex generates a fresh API wallet in your browser, your wallet signs Hyperliquid's approval for it (registered under the name "Sumex"), and Sumex saves your main address plus the new API wallet key. Your main wallet's private key never leaves your wallet.
Hyperliquid keeps one API wallet per name. Running Connect with Wallet again for the same account approves a new "Sumex" API wallet and retires the previous one, so an older Hyperliquid Bundle for that account stops working; delete it in the Connection Manager.
Option 2: Create an API wallet manually
On Hyperliquid
- Go to app.hyperliquid.xyz and connect your wallet.
- In the top navigation open More and choose API.
- Give the API wallet a name, click Generate, then Authorize API Wallet.
- Choose how many days the API wallet stays valid (Hyperliquid allows up to 180 days for a named API wallet) and confirm in your wallet.
- Copy the API wallet's private key. Hyperliquid won't show it again.
In Sumex
- In the Connection Manager, Add Bundle → Hyperliquid → Manual API Connect (or Enter Keys Manually under the Connect with Wallet button).
- Fill in:
- Account Name
- API Wallet Address: enter the address of your main wallet, the one you log in to Hyperliquid with. Do not paste the generated API wallet's address here. Hyperliquid looks up balances and positions by the main account address, and data queried by the API wallet's address comes back empty.
- API Wallet Private Key: the private key from step 5.
- Click Connect.
Paste the private key of the generated API wallet only. Never enter your main wallet's private key or seed phrase into Sumex or any other site.
Troubleshooting
| What you see | What to do |
|---|---|
| "Signature request was rejected in the wallet" | You declined the signature. Click Try Again and approve it. |
| "Connect the EVM wallet you use on Hyperliquid" with no button active | No wallet is connected in Sumex. Click Connect Wallet first. |
| An error mentioning "must deposit" | The Hyperliquid account has no funds. Deposit first, then connect. |
| An error saying the API wallet does not exist | The API wallet expired, was replaced, or was never authorised. Create a new one, or use Connect with Wallet. |
| Balances or positions are empty after a manual connect | You probably entered the API wallet's address. Delete the Bundle and reconnect with your main wallet address. |
| Invalid Key on the card later | The API wallet's validity ran out or it was replaced. Connect again. |
Security notes
- An API wallet can sign trading actions for your account; it is not your main wallet and Sumex never asks for your main wallet's key or seed phrase.
- Sumex stores the API wallet key encrypted.
- To revoke access, delete the Bundle in Sumex. On Hyperliquid you can also let the API wallet expire or replace it with a new one.