Skip to content

Hyperliquid API Wallet Expired: How to Replace It Safely in Antei AI

Replace an expired Hyperliquid API wallet in Antei AI, verify the new credential, inspect open exposure, and resume safely.

5 min read

Hyperliquid API Wallet Expired: How to Replace It Safely in Antei AI
On this page

Quick Answer

If a Hyperliquid API wallet has expired, do not keep restarting the bot or repeatedly resubmit orders. First confirm the wallet status, prevent the strategy from creating new exposure, and check Hyperliquid directly for open positions and resting orders. Then authorize a replacement API wallet from the same main account, replace and verify it in Antei AI, review the deployment’s current state, and resume only after the new wallet is confirmed.

This guide walks through the complete recovery process without exposing wallet credentials or assuming that a running worker still has permission to trade.

What an Expired Hyperliquid API Wallet Means

A Hyperliquid API wallet is a trading credential linked to the main account. It can sign trading actions, but it cannot withdraw funds. Its limited permissions reduce custody risk, but the credential still needs to remain private because it can open, modify, or close positions.

Wallet validity and deployment status are separate. A worker may continue receiving market data and evaluating strategy logic even after its signing wallet is no longer valid. That is why a “running” process does not prove that the next entry, stop, or exit can be submitted successfully.

Step 1: Confirm the Expiry Warning in Antei AI

Open the Hyperliquid trading-account view and check the API-wallet status, last verification time, and validity warning. If the deadline is approaching, replace or renew the wallet before it interrupts a live deployment. If it has already passed, treat the connection as unable to sign new orders until verification succeeds again.

Antei account card showing an API-wallet expiry warning with the main wallet address blurred

Antei account card showing an API-wallet expiry warning with the main wallet address blurred

The expiry warning is visible, while the main-wallet address is intentionally blurred for privacy.

Do not share the main-wallet address unnecessarily, and never include the API-wallet private key in a screenshot, source file, support message, or repository.

Step 2: Check Positions and Orders Before Replacing Anything

Before changing the credential, inspect the actual Hyperliquid account state. Confirm:

  • open positions and their sizes;

  • resting entry and exit orders;

  • reduce-only orders and protective stops;

  • recent fills; and

  • whether an earlier order has an unknown or delayed outcome.

This check matters because replacing a wallet does not remove existing positions or orders. If the expired wallet can no longer sign, the strategy may be unable to create a new protective exit. Use the venue’s confirmed state as the source of truth.

Step 3: Keep the Deployment Parked During Recovery

When Antei detects that the live signing wallet has expired, the affected deployment can remain visible while new entries are blocked. The worker state and requested state are shown separately so that the recovery process does not depend on deleting or rebuilding the strategy.

Antei deployment parked after its Hyperliquid API wallet expired

Antei deployment parked after its Hyperliquid API wallet expired

The deployment is parked and new entries are blocked while the credential is invalid.

Do not force a restart to bypass this state. A restart does not renew Hyperliquid authorization and may hide the real cause without restoring trading permission.

Step 4: Authorize a Replacement Wallet on Hyperliquid

From the same main Hyperliquid account, create or authorize a new API wallet. Give it a clear name and an appropriate validity period. Save the new private key securely when Hyperliquid displays it.

If the old API wallet has been removed or deregistered, use a newly generated wallet rather than attempting to reuse retired signing material. Do not paste the private key anywhere except the intended secure connection form.

Step 5: Replace and Verify the Wallet in Antei AI

Return to the trading-account view in Antei and select Replace API wallet. Enter the required account information and new API-wallet credential, then save the connection. Select Verify API wallet and wait for Antei to confirm that the wallet belongs to the expected account and has a valid authorization period.

Antei connection after the replacement API wallet is verified, with the main wallet address blurred

Antei connection after the replacement API wallet is verified, with the main wallet address blurred

The replacement wallet is verified and its new validity period is visible; the main-wallet address remains blurred.

Verification should confirm the account relationship and current validity. A balance check alone is not enough because reading public account data does not prove that the wallet can sign an order.

Step 6: Review the Deployment Before Resuming

After verification succeeds, review the deployment rather than immediately assuming it is safe to continue. Confirm:

  • the intended immutable strategy version;

  • paper or live mode;

  • allowed markets;

  • allocated capital and maximum leverage;

  • position-size, drawdown, and daily-loss limits;

  • the current Hyperliquid position; and

  • any resting or protective orders already on the venue.

This review prevents the recovered strategy from assuming the account is flat when exposure already exists.

Step 7: Resume and Watch the First Execution Checks

Resume only after the replacement wallet is verified and the venue state matches the deployment review. Watch the first runtime events and confirm that the deployment recognizes the existing position and order state before it creates new exposure.

Antei deployment running again after API-wallet verification

Antei deployment running again after API-wallet verification

The deployment is running again after credential verification and a fresh execution-state review.

The renewed-account screenshot and the resumed-deployment screenshot are intentionally different: one proves that the credential is valid, while the other proves that the deployment recovered.

Renewing the Same Wallet vs. Switching Wallets

These are different recovery paths:

  • Renewing the same authorized wallet: verify the new validity date and let the parked deployment recover only after its account state is refreshed.

  • Switching to another API wallet: stop or park affected live deployments, replace and verify the credential, review venue exposure, and then deliberately resume.

Never switch signers while an order outcome is still uncertain. Reconcile the original order first so that the new wallet does not create duplicate exposure.

Safe-Replacement Checklist

  • Confirm which wallet expired and which deployment is affected.

  • Block new entries while the credential is invalid.

  • Check positions, resting orders, protective orders, and recent fills on Hyperliquid.

  • Authorize a replacement API wallet from the correct main account.

  • Store the private key securely and keep it out of screenshots.

  • Replace and verify the credential in Antei AI.

  • Confirm the account relationship and new validity period.

  • Review strategy version, markets, capital, leverage, and risk limits.

  • Resume and monitor the first execution checks.

Replace the Wallet Without Losing Execution Context

Create an Antei AI account to connect a restricted Hyperliquid API wallet, monitor its validity, and manage deployment recovery while your funds remain in your own account.

Risk Note

An API wallet cannot withdraw funds, but it can still control trading actions and therefore remains sensitive. Replacing a wallet does not remove market, liquidation, slippage, or existing-position risk. Verify all live exposure directly on Hyperliquid before resuming automated trading.

Build with Antei

Run your own trading agent on Hyperliquid

Write a strategy in Python, Node.js or Pine Script, or ask Claude Code or Codex to write it. Antei backtests it, paper trades it and deploys it, with risk limits outside your code and your funds in your own account.

More from the blog