> For the complete documentation index, see [llms.txt](https://botlyz.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://botlyz.gitbook.io/docs/english/installation-pas-a-pas/connecter-un-compte-hyperliquid.md).

# Connect a Hyperliquid account

Botlyz also works with **Hyperliquid**, one of the most liquid decentralized perpetuals exchanges. The principle is the same as with Lighter: your funds stay at Hyperliquid, under your wallet's control, and Botlyz only receives an **API key limited to trading** (no withdrawal possible).

> **Note**: Hyperliquid support is available to everyone, in **beta**. If you hit any issue, contact us via the Help tab.

## 1. Create your Hyperliquid account

1. Open [app.hyperliquid.xyz](https://app.hyperliquid.xyz) and connect your wallet (Rabby, MetaMask…).
2. Deposit **USDC**: **Deposit** button (deposit from Arbitrum, or via an exchange). Funds must be available for **perps** (the Transfer tab moves funds between Spot and Perps if needed; in "unified" mode your USDC counts automatically).

## 2. Create an API key (agent)

On Hyperliquid, the API key is called an **API wallet** (or agent): a secondary wallet authorized to trade **for** your account, without ever being able to withdraw.

1. Go to [app.hyperliquid.xyz/API](https://app.hyperliquid.xyz/API) (menu **More → API**).
2. Enter a name (for example "botlyz") then click **Generate**.
3. The agent's **private key** is displayed on screen: **copy it immediately** (it is shown only once) and keep it safe.
4. Click **Authorize API Wallet** and sign with your wallet.

> **Warning**: if you close the page without copying the private key, it is lost. Simply generate a new agent and start over.

## 3. Connect the account to Botlyz

1. In Botlyz: **Accounts** then **+ Connect an account**, **Hyperliquid** tab.
2. Fill in:
   * **Wallet address (master)**: the address of your Hyperliquid account (pre-filled with your connected wallet).
   * **API private key (agent)**: the key copied in step 2.
3. Click **Connect**. Botlyz verifies live that the agent is authorized for your wallet, then encrypts the key.

## 4. Approve the builder fees (0.10%)

As on Lighter, the protocol applies a **0.10% fee per order** (builder codes, the cap set by Hyperliquid). You approve it **once**, with a free signature from your master wallet: no funds are moved, and the approval is **revocable at any time** on the Hyperliquid side.

Once the approval is signed, you can deploy your strategies on Hyperliquid exactly like on Lighter: same strategies, same backtest (on Hyperliquid data), same SL/TP protections.

## Frequently asked questions

**Q. Can the agent key withdraw my funds?**

No. A Hyperliquid API wallet can **only trade**: no withdrawal, no transfer to an external address. That is by design.

**Q. My account is in "unified" mode (UTA), is that a problem?**

No. Botlyz handles both modes: in unified mode, your spot USDC automatically counts as trading margin; in standard mode, simply transfer your USDC to perps (Transfer button).

**Q. Does the agent key expire?**

Yes, Hyperliquid limits an agent's validity in time (around 6 to 12 months). When it expires, generate a new one and update the key in Botlyz ("Edit key" button).

**Q. Can I have both a Lighter AND a Hyperliquid account?**

Yes. Each strategy deploys on the exchange of your choice, and the dashboard aggregates both.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://botlyz.gitbook.io/docs/english/installation-pas-a-pas/connecter-un-compte-hyperliquid.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
