The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Keel Trade listing page.
The Keel CLI and stdio MCP server.
Build, backtest, and automate Hyperliquid trading strategies — with your agent in the loop for creation and a deterministic engine in the loop for execution.
Website · Product page · Docs · Sample backtest · Discussions
Keel is a quantitative crypto trading platform built around Hyperliquid — strategy development, backtesting, live execution, and portfolio management on the venue with the deepest on-chain perpetual order book. The full platform includes:
keel-trade — the agent-native research surfaceThis repository is the public mirror of the keel-trade Python package: a single pipx install gives you both a CLI and a stdio MCP server, so the same tools work from a terminal or from any MCP-capable agent.
Most agent-trading projects put an LLM in the execution loop. That makes systems slow, inconsistent, and hard to audit. Keel does the opposite:
Three properties drive the design:
keel-trade (this package) is the CLI + local MCP path. Keel is one product
with several places to use it — pick by where you are:
| You are… | Default path (shown first) | Also works |
|---|---|---|
| Using Claude/ChatGPT on web or phone | Hosted endpoint — paste the URL (directory one-click coming) | CLI + local MCP |
| Working in Claude Code / Cursor / terminal | pipx install keel-trade (CLI + local MCP) | hosted endpoint |
| Going live with a strategy | Keel web app (connect account, review sizing, go live) | reads on every surface |
| Building your own agent/scripts | SDK + API key | CLI |
| Just browsing/running strategies | Web app + library | hosted endpoint |
https://mcp.usekeel.io/mcp: one
23-tool research/backtest/read surface (compose, backtest, share, read-only
monitoring — no live-write, no local files). Paste the URL into any
remote-MCP client; the one-click directory listing is coming. Going live is
a handoff into the Keel web app.Per-surface zero-to-first-backtest runbook: usekeel.io/agents.
Download keel-trade-<version>.mcpb from the latest release and 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.
uv tool install keel-trade also works. Python 3.11+.
Then register the stdio MCP command with your agent host:
For Cursor, Windsurf, and generic MCP clients, see usekeel.io/keel-mcp#install or the agent setup guide.
After install, sign in once via the agent (no terminal commands needed):
You: "Connect to Keel."
Agent: Calls
keel_auth_login. Browser opens to app.usekeel.io, you click Allow, tokens land in~/.keel/config.yaml. Authenticated for 30 days with transparent refresh.
Then describe what you want:
You: "Find me momentum signals for Hyperliquid top-30 perps and compose a backtest from 2024-08-15 to today."
Agent: Calls
keel_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 URL is 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:
Full CLI reference: usekeel.io/docs/sdk/cli-reference.
| Task | Surface |
|---|---|
| Backtest a Hyperliquid strategy — real fees, funding, slippage, ~220 perps | usekeel.io/hyperliquid-backtest |
| Screen HL perps — momentum, funding, volume, breakout, regime | usekeel.io/lab |
| Use AI to build strategies — typed composition, not freeform code | usekeel.io/ai-trading-strategy-builder |
| Backtest portfolios across the HL universe | usekeel.io/crypto-portfolio-backtesting |
| Robustness diagnostics — walk-forward, Monte Carlo, deflated Sharpe, PBO | usekeel.io/hyperliquid |
| Deploy a strategy live on Hyperliquid (non-custodial) | usekeel.io/strategy-os |
| Compare strategies + venues | usekeel.io/compare |
| Browse documented trading strategies | usekeel.io/strategies |
AGENTS.mdAlpha. The CLI and MCP surface are stable and ship to PyPI on a regular cadence; the underlying engine and component library are actively developed.
See CONTRIBUTING.md. Short version:
team@usekeel.io (do not open a public issue)MIT. See LICENSE.
Built by the Keel Research Team · @usekeelio