> For the complete documentation index, see [llms.txt](https://docs.k3-labs.com/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k3-labs.com/introduction/integrations/hyperliquid.md).

# Hyperliquid

Integrating your Hyperliquid account with K3 Labs allows you to automate perpetual trading directly from your Hyperliquid wallet using K3 workflows. This setup is designed for secure execution of market orders, enabling seamless and programmatic access to Hyperliquid’s trading infrastructure.

**How to Set It Up**

1\. Generate API Credentials on Hyperliquid

* Go to [Hyperliquid API Portal](https://app.hyperliquid.xyz/API)
* Follow the instructions to generate a new API key
* Once created, you’ll receive two key items:
  * mainWalletPubkey (your public wallet address)
  * apiSecretKey (your private API secret)

> 🔒 Important: Store your secret key securely. It is only shown once.

<figure><img src="/files/dbPY8EviyPIdW8yxr3vL" alt=""><figcaption></figcaption></figure>

***

2\. Connect to K3 Labs

* Go to the Integrations tab in K3 Labs
* Locate the Hyperliquid section
* Paste the following:
  * mainWalletPubkey → into the mainWalletPubkey field
  * apiSecretKey → into the apiSecretKey field

<figure><img src="/files/sSZrK4oys3KeL1nnQHhO" alt=""><figcaption></figcaption></figure>

Click Connect to enable the integration.

***

#### What This Enables

Once connected, you’ll be able to use your Hyperliquid account to execute buy and sell orders directly within K3 workflows — completely automated and programmable. No manual trading needed.

Note:

* K3 only supports market orders through this integration
* Deposits and withdrawals must be done manually via the Hyperliquid platform
* Permissions are strictly limited to trade execution only
