Circuit

Open-source Hyperliquid trading agents on GitHub

Updated by the Circuit team

What is on GitHub

Most Hyperliquid agents on GitHub are built on one of three SDKs or on a general agent framework with a Hyperliquid connector. Star counts below are from GitHub on October 17, 2026.

RepositoryLanguageLicenseStarsWhat it is
freqtrade/freqtradePythonGPL-3.055,483General crypto bot with Hyperliquid spot and futures support
hummingbot/hummingbotPythonApache-2.020,496Market making framework with Hyperliquid spot and perp connectors
Drakkar-Software/OctoBotPythonGPL-3.06,803Grid, DCA, and TradingView bot for Hyperliquid and 15+ exchanges
enarjord/passivbotPythonUnlicense2,131Perps bot for Hyperliquid, Bybit, Bitget, OKX, and others
hyperliquid-dex/hyperliquid-python-sdkPythonMIT1,852Official Python SDK
hyperliquid-dex/hyperliquid-rust-sdkRustMIT471Official Rust SDK
nktkas/hyperliquidTypeScriptMIT452Community TypeScript SDK for Node, Deno, Bun and browsers
chainstacklabs/hyperliquid-trading-botPythonApache-2.084Extensible grid bot from Chainstack, testnet first

Stars measure attention. They say nothing about whether a strategy makes money. GitHub search for "hyperliquid bot" also returns many repositories with keyword-stuffed descriptions and no license. Read the code before you give any of them a key.

The official Python SDK

Hyperliquid maintains hyperliquid-python-sdk (install with pip install hyperliquid-python-sdk). You put two values in examples/config.json: account_address (your main wallet's public address) and secret_key (ideally an API wallet key generated at app.hyperliquid.xyz/API). The Info class reads account state, and the examples folder includes scripts for orders, take-profit and stop-loss, sub-accounts, transfers, vaults, and withdrawals.

That covers sending a single order. An agent that runs for months needs much more. The next section covers it. The same applies to the Rust SDK and to nktkas/hyperliquid in TypeScript.

What running one yourself involves

A server that stays online. Hyperliquid's markets never close. Freqtrade's docs suggest a Linux cloud instance with at least 2 GB of RAM, 1 GB of disk and 2 vCPUs. They suggest Docker for installs. You patch it, restart it after crashes and keep its clock in sync.

API wallets. An API wallet, also called an agent wallet, is a key your main account approves to sign for it. Per Hyperliquid's docs an account can have 1 unnamed and up to 3 named API wallets. Each sub-account adds 2 more named ones. A named wallet can carry an expiry at most 180 days out. Freqtrade's Hyperliquid notes say an API wallet key cannot withdraw funds and warn against storing your main wallet key on the bot's server.

Nonces. Hyperliquid stores the 100 highest nonces per signer. Each new action needs a nonce above the smallest of those and inside a window from 2 days before to 1 day after the block time. Its docs recommend one API wallet per trading process. They warn never to reuse an API wallet address. Once a deregistered wallet's nonce state is pruned its old signed actions can be replayed.

Rate limits. REST requests share 1,200 weight per minute per IP. Each address also starts with a buffer of 10,000 requests and earns 1 more for each 1 USDC it trades. Over that limit it gets 1 request every 10 seconds. Open orders default to a cap of 1,000.

Market data. Freqtrade's notes say Hyperliquid's API returns only the most recent 5,000 candles and offers no download of older history. A backtest needs data you recorded yourself. They also note Hyperliquid has no native market order. ccxt sends a limit order up to 5% from the price instead.

Monitoring and supply chain. You need alerts for a dead process, a rejected order, a position near liquidation and a stuck nonce. Freqtrade's docs also warn about supply-chain attacks such as poisoned pip packages. Pin dependencies and keep the main key off the server.

Worked example: the request budget

Suppose a bot sends one order or cancel every 10 seconds. That is 6 a minute, or 8,640 a day.

DayRequests sent so farAllowed with zero volumeVolume needed to keep pace
18,64010,000$0
217,28010,000$7,280 traded in total
760,48010,000$50,480 traded in total

After the first day the agent needs about $8,640 of volume a day to keep its pace. Without it the agent drops to one request every 10 seconds. A market maker that quotes every second burns its buffer in under 3 hours. Hyperliquid's docs recommend batching orders and cancels about every 0.1 seconds. A batch of up to 39 orders costs the same IP weight as a single order.

Telegram bots and their custody tradeoffs

Telegram trading bots are popular on Hyperliquid and Solana because you trade from a chat with no setup. Custody works in one of three ways. It decides who can move your funds.

ModelWho can move your fundsExample
Bot-held walletThe bot operator's server holds the private keyBanana Gun creates or imports wallets by private key. Its docs note a deleted wallet "is permanently removed from the server"
API walletThe operator holds a key that can trade your accountA hosted bot you approve as a Hyperliquid API wallet
Self-hosted with Telegram controlOnly your own serverFreqtrade and Hummingbot's Condor both offer a Telegram interface to a bot you run

With a bot-held wallet, the operator's security is your security. Banana Gun's own docs warn that sharing a private key "is the same as handing over your wallet and all your funds". An API wallet is narrower, though whoever holds it can still open, close, and liquidate positions. The same caution applies to bots found by searching "hyperliquid bot reddit" or "hyperliquid bot telegram": any bot asking for your main wallet's private key or seed phrase gets full control.

How Circuit compares

Circuit is a hosted alternative to running the SDK yourself. An agent exports a TypeScript agent({ every, watch, run }) definition. You write it with the Circuit CLI and SDK or describe it and the Builder writes it.

  • Orders. agent.hyperliquid.orders.create takes perpOpen, perpReduce, spotBuy, and spotSell, sized in base units or USDC value, as market orders (1% default slippage), limits (ioc, gtc, alo), or take-profit and stop-loss triggers. HIP-3 markets use their dex-prefixed symbols. See the Hyperliquid SDK reference.
  • Rounding and sizing. The engine reads the mid and rounds price and size to the market's precision. It rejects a limit order worth less than 10 quote units before sending it. Orders never resubmit automatically.
  • Keys. Circuit keeps the signing key in a hardware enclave and agents never see it. Nothing is signed without a permit you sign with your passkey. An agent runs under the permit signed when it starts. You can export the key at any time.
  • Hosting. Circuit runs the agent on a schedule or on price, position, fill or other triggers. You do not run a server.
  • Backtests. circuit backtest replays an agent on recorded Hyperliquid, Lighter, or Lighter Robinhood perp markets with fees, funding, and liquidation. No candle archive is needed (spot orders are not backtested).
  • Paper trading. circuit run --simulated and paper trading in the app fill against the live order book with Hyperliquid's fees, funding, and liquidation rules.
  • Fees. Circuit adds a 0.01% builder fee to Hyperliquid perp orders and spot sells, up to 0.01% to outcome orders and none to spot buys.
DIY with the Python SDKCircuit
LanguagePython, Rust or TypeScriptTypeScript
ServerYoursCircuit's
KeyOn your serverHardware enclave, exportable
History for backtestsRecord your ownRecorded Hyperliquid perp markets
Paper tradingBuild it, or use Hyperliquid testnetLive order book
VenuesHyperliquid, or any you integrateHyperliquid, Polymarket, Lighter, Papertrade, Kraken, swaps
CostServer plus your time0.01% on Hyperliquid perp orders, spot sells and some swaps

The TypeScript agent guide walks through a first agent.

When DIY is the better choice

Run your own if you need latency Circuit's runtime does not target. Quoting every few hundred milliseconds from a colocated server is one case. Run your own if your strategy depends on Python libraries such as pandas and scikit-learn or on a venue Circuit does not support. Freqtrade and Hummingbot also have years of production use and large communities. Circuit does not.

Ready specs get a strategy running on Hyperliquid this week without a server: copy a Hyperliquid trader, grid trade BTC or short overcrowded perps. See live HYPE agents on HYPE trading agents.

Test before you risk money

Agents start in paper trading by default, using paper funds on live markets with no real money at risk (agents starting from an open position run on real money only). Perp, spot, Polymarket, and swap orders simulate live order books, quotes, venue fees, funding, and liquidation rules. Polymarket redemptions settle against real market resolutions. Every paper-capable agent also runs a public $1,000 paper trading benchmark, and you can switch to real money whenever the results convince you.

Keys and permits

Agents run on a self-custodial wallet you create in Circuit or import by private key. Signing keys stay inside an attested hardware enclave where agents can never see them. Instead, agents request typed actions through Circuit's SDK, and nothing is signed without the passkey permit you approve at start.

You can export your private key from Settings or stop an agent at any time. Stopping revokes the permit while leaving existing positions and resting orders open until you close them in Circuit.

FAQ

Is there an official Hyperliquid Python SDK?

Yes. It is hyperliquid-dex/hyperliquid-python-sdk on GitHub (MIT licensed, installed with pip install hyperliquid-python-sdk). Hyperliquid also publishes an official Rust SDK, and @nktkas/hyperliquid is the most widely used community TypeScript SDK.

What is a Hyperliquid API wallet?

A separate key your main account approves to sign actions for it. Agents use one so the main key stays off the server. Per Hyperliquid's docs an account gets 1 unnamed and up to 3 named API wallets. Each sub-account adds 2 named ones.

Are Hyperliquid Telegram bots safe?

Depends on custody. Many Telegram bots create or import your wallet and keep its private key on their server. A breach there can drain it. Per Freqtrade's notes, a bot that only holds an API wallet can trade and cannot withdraw. Never paste a main wallet key or seed phrase into a chat.

Can I backtest a Hyperliquid strategy?

Freqtrade and Hummingbot backtest on data you supply. Freqtrade notes the API returns only the latest 5,000 candles. Circuit's circuit backtest replays an agent on recorded Hyperliquid perp markets with fees, funding and liquidation.

What is the best Hyperliquid trading agent on GitHub?

Freqtrade and Hummingbot lead by stars. Both support Hyperliquid. OctoBot and passivbot are also popular. For your own code, start from the official Python SDK. Read any repository's code and license before you give it a key.

Can I write a Hyperliquid agent in TypeScript?

Yes. Use the community nktkas/hyperliquid SDK or Circuit's SDK. Circuit's SDK also handles hosting, keys and backtests. See build a Hyperliquid trading agent in TypeScript.

Trade it on Circuit.

Build it or fork it. Backtest it and run it in Paper trading before using real money.

Run It