Security

HyperAgent is built with security at its core. Your funds stay in your wallet, your keys are encrypted, and the agent wallet can trade but never withdraw.

How We Protect You

Three core principles guide our security design: no fund custody, trade-only access, and encrypted at rest.

No Fund Custody

HyperAgent never holds your funds. All assets remain in your wallet under your full control at all times.

Trade-Only API Wallet

The agent wallet is authorized to place and cancel orders on Hyperliquid, but cannot withdraw, transfer, or deposit funds.

AES-256-GCM Encryption

Agent private keys are encrypted at rest using AES-256-GCM authenticated encryption and never exposed to the browser.

How Authentication Works

When you log in with your wallet, we use a standard cryptographic challenge-response flow. Your private key is never shared — it stays in your MetaMask wallet.

  1. 1

    Connect Wallet

    You approve the wallet connection in MetaMask — no transaction is sent.

  2. 2

    Sign a One-Time Message

    You sign a structured SIWE (Sign-In with Ethereum, EIP-4361) message containing the app's domain, your address, a nonce, and a timestamp. MetaMask displays this as a recognizable login prompt — not as arbitrary text. No gas is spent.

  3. 3

    Session Created

    A secure, httpOnly cookie is set. You remain logged in for 72 hours without re-signing.

What We Never Do

  • Never request your private key or seed phrase
  • Never ask you to sign arbitrary text — only structured SIWE (EIP-4361) login messages with the app's domain clearly shown
  • Never ask you to sign a transaction just to log in
  • Never store your wallet credentials in the browser
  • Never send your signed data to third parties

The API Wallet System

This is the most important security mechanism. HyperAgent uses Hyperliquid's API Wallet to ensure your funds can never be withdrawn by the trading agent.

What the Agent Can Do

  • Place market and limit orders on Hyperliquid
  • Cancel open orders
  • Modify existing orders
  • Update position leverage

What the Agent Cannot Do

  • Withdraw funds from Hyperliquid
  • Transfer assets to another account
  • Deposit or bridge tokens
  • Access your main wallet or sign arbitrary messages

How it works: When you set up HyperAgent, a separate agent keypair is generated. You approve this keypair on-chain through Hyperliquid's exchange — this is a one-time transaction. From that point on, the agent can only trade on your behalf. The private key is encrypted with AES-256-GCM and stored server-side, decrypted only at the moment a trade is executed. The agent approval automatically expires after 90 days.

What We Access

Transparency matters. Here is every wallet operation HyperAgent performs and why it is needed.

Wallet Connection

Connect your wallet to HyperAgent for authentication

Sign Message

One-time login via wallet signature — no transaction, no gas fee

Switch Network

Automatically switch to Arbitrum for USDC credit purchases

Send Transaction

Only when you manually purchase credits via USDC — you approve the amount in MetaMask

Read Balance

Check your USDC balance before allowing a purchase — read-only, costs no gas

How Your Data Is Protected

We follow industry best practices for data protection, from transport to storage.

Session Security

  • • Session tokens are SHA-256 hashed in the database
  • • Cookies use httpOnly, sameSite strict, and secure flags
  • • Sessions auto-expire after 30 days of inactivity
  • • All API routes require authentication

Data Encryption

  • • Agent private keys encrypted with AES-256-GCM
  • • Each encryption uses a unique 12-byte initialization vector
  • • Authentication tags prevent tampering
  • • Keys never sent to the browser in any form

Smart Contract Interactions

HyperAgent only interacts with two contracts. Both require your explicit wallet approval.

USDC (Arbitrum)

Used only when you purchase platform credits.

  • transfer() — you send USDC to the platform treasury
  • balanceOf() — read-only check of your balance

Address: 0xaf88...e5831

Hyperliquid Exchange

Called once during agent setup, then never again.

  • approveAgent() — one-time authorization for the agent to trade

Learn more: Hyperliquid API Wallet docs

Ready to Trade with Confidence?

Your funds are safe. Your keys are yours. The agent can trade but never withdraw.

Launch Agent

© 2026 HyperAgent. All rights reserved.

Security Built for professional traders Powered by institutional-grade AI