Keel — Hyperliquid trading agent
About
Build, backtest, and automate Hyperliquid trading strategies.
Details
- Author
- keel-trade
- Categories
- Finance, Other
Jump to
Setup
Install Keel — Hyperliquid trading agent in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/keel-trade/keel-trade
Follow the installation instructions in the repository README, then restart your MCP client.
Build, backtest, and automate Hyperliquid trading strategies.
The Keel CLI and stdio MCP server.
Build, backtest, and automateHyperliquidtrading strategies — with your agent in the loop forcreationand a deterministic engine in the loop forexecution.
Website·Product page·Docs·Sample backtest·Discussions
- Aweb appfor composing strategies, running backtests, and deploying live (app.usekeel.io)
- Adeterministic backtest enginewith real Hyperliquid funding + price + slippage, walk-forward, and Monte Carlo
- Bit-for-bit live execution— the same compiled strategy artifact runs in backtest and on Hyperliquid
- Astrategy libraryof documented, forkable trading strategies
- Ascreener + calculator suiteatusekeel.io/lab(funding leaderboard, momentum, overfit-check, walk-forward visualizer, more)
- This package —keel-trade— theagent-native research surface
This repository is the public mirror of thekeel-tradePython package: a singlepipx installgives you both a CLI and a stdio MCP server, so the same tools work from a terminal or from any MCP-capable agent.
Why agents create strategies, not trade them
Most agent-trading projects put an LLM in the execution loop. That makes systems slow, inconsistent, and hard to audit. Keel does the opposite:
You ──── compose ────► Strategy graph ──── compile ────► Deterministic artifact ▲ │ │ ▼ Agent edits Backtest engine via MCP tools (real HL data) │ ▼ Live execution (same artifact)
- Bit-for-bit parity between backtest and live.Same compiled artifact, same engine, same data path. There is no second implementation that can drift.
- Typed composition over freeform code.Strategies are graphs of versioned components. Compile errors catch bugs at author time instead of in production.
- Agents compose, the deterministic engine executes.Claude / Cursor / Codex help you build the strategy. They are not in the trade loop.
Downloadkeel-trade-<version>.mcpbfrom thelatest releaseand drag onto Claude Desktop. Cross-platform single bundle — works on macOS, Windows, and Linux.
The MCPB bundle requires system Python 3.11+ (same prerequisite as the terminal install path below). First launch takes ~10-30 seconds while the bundle pip-installs runtime deps to~/.keel/mcpb-lib/py3.X/; subsequent launches are instant.
Terminal — pipx / uv (Claude Code, Codex, Cursor, Windsurf, etc.)
uv tool install keel-tradealso works. Python 3.11+.
Then register the stdio MCP command with your agent host:
# Claude Code claude mcp add keel -- keel mcp serve # Codex codex mcp add keel -- keel mcp serve
For Cursor, Windsurf, and generic MCP clients, seeusekeel.io/keel-mcp#installor theagent setup guide.
Agent:Callskeel_auth_login. Browser opens to app.usekeel.io, you click Allow, tokens land in~/.keel/config.yaml. Authenticated for 30 days with transparent refresh.
You:"Find me momentum signals for Hyperliquid top-30 perps and compose a backtest from 2024-08-15 to today."
Agent:Callskeel_components_search→keel_components_detail_batch→keel_strategy_compose→keel_backtest_run. Returns a share URL with the full tearsheet (equity curve, Sharpe, max drawdown, per-asset attribution).
Concrete example:this share URLis a funding-carry backtest produced through exactly this flow — Sharpe 2.17 over 2024-08-15 → 2026-04-30 on real Hyperliquid data.
The default toolset spans status, auth, components, strategy lifecycle, backtest, audit, accounts, sharing, and read-only live monitoring.Live-write tools(keel_live_deploy,keel_live_control) require an explicit opt-in toolset plus a local arming step — agents can't deploy your account without you authorizing it twice.
Full per-tool reference:usekeel.io/docs/sdk/tool-reference.
Every MCP outcome tool has a CLI mirror. Useful for terminals, SSH sessions, CI, scripts, or agents that prefer subprocess calls:
# Auth + status keel auth login keel status # Search components, compose, backtest keel components search "momentum" keel strategy compose --source-file my-strategy.py --dry-run keel backtest run str_abc123 --start-date 2024-08-15 --wait # Inspect a strategy keel strategy get str_abc123 keel strategy log str_abc123
Full CLI reference:usekeel.io/docs/sdk/cli-reference.
- Product page:usekeel.io/keel-mcp
- Getting started:usekeel.io/docs/getting-started
- Agent setup (per host):usekeel.io/docs/sdk/agent-setup
- CLI reference:usekeel.io/docs/sdk/cli-reference
- MCP tool reference:usekeel.io/docs/sdk/tool-reference
- REST API reference:usekeel.io/docs/api-reference
- Agent instructions(canonical, machine-readable):AGENTS.md
Alpha. The CLI and MCP surface are stable and ship to PyPI on a regular cadence; the underlying engine and component library are actively developed.
- Bug report→ open an issue using the bug template
- Feature request, question, or pattern share→ useDiscussions
- Security issue→ emailteam@usekeel.io(do not open a public issue)
- Patches→ PRs are welcome; we maintain in a private monorepo so PRs may take longer to land — see CONTRIBUTING for the porting process
- Keel on Hyperliquid — the platform
- What is MCP?
- AI agents on Hyperliquid — the definitive guide
- Why we don't put LLMs in the trade loop
Built bythe Keel Research Team·@usekeelio
Crypto data & trading MCP with 42+ tools: prices, DeFi, NFTs, Solana swaps
MCP server for Fuse Network: balances, tokens, staking, DeFi data, swaps and on-chain transactions.
Live crypto prices, Reddit sentiment, DeFi TVL, stock prices. Pay per call via x402 on Base.
MCP server for the Ophis intent-based DEX aggregator: quotes and gasless, MEV-protected swap orders across 11 chains.
Live scored Solana memecoin signals with safety profiles, conviction scoring, and paper trading for AI agents.
Connect any MCP-capable AI agent to live and historical Polymarket prediction-market orderbook data plus Hyperliquid perpetual-futures orderbooks (12 tools, 2 resources).
Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.
Risk Intelligence MCP Server for crypto agents — 52 tools, 72B AI model, 560+ signals, derivatives, on-chain, autonomous trading
Cross-chain cryptocurrency swaps via Chainflip. Get quotes, execute swaps, and track progress.
About An MCP server that gives AI agents direct access to Polymarket Crypto prediction markets, enriched with live spot prices. Discover markets, analyze order books, paper trade strategies, track activity, and execute live trades.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



