Keel Trade — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Keel Trade (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <a href="https://usekeel.io/keel-mcp"> <img src="https://usekeel.io/og/keel-mcp.png" alt="keel-trade — Build, backtest, and automate Hyperliquid trading strategies with your agent" width="100%"> </a> </p>
<h1 align="center">keel-trade</h1>
<p align="center"> <strong>The Keel CLI and stdio MCP server.</strong><br> Build, backtest, and automate <a href="https://hyperliquid.xyz">Hyperliquid</a> trading strategies — with your agent in the loop for <em>creation</em> and a deterministic engine in the loop for <em>execution</em>. </p>
<p align="center"> <a href="https://pypi.org/project/keel-trade/"><img src="https://img.shields.io/pypi/v/keel-trade.svg" alt="PyPI version"></a> <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="Python 3.11+"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License"></a> <a href="https://usekeel.io/keel-mcp"><img src="https://img.shields.io/badge/product-keel--mcp-635BFF.svg" alt="Product page"></a> <a href="https://glama.ai/mcp/servers/keel-trade/keel-trade"><img src="https://glama.ai/mcp/servers/keel-trade/keel-trade/badges/score.svg" alt="keel-trade MCP server"></a> </p>
<p align="center"> <a href="https://usekeel.io">Website</a> · <a href="https://usekeel.io/keel-mcp">Product page</a> · <a href="https://usekeel.io/docs">Docs</a> · <a href="https://app.usekeel.io/share/gDXjURKqWPs8CZ4eXdqAI?ref=H0O2KN">Sample backtest</a> · <a href="https://github.com/keel-trade/keel-trade/discussions">Discussions</a> </p>
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:
You ──── compose ────► Strategy graph ──── compile ────► Deterministic artifact
▲ │
│ ▼
Agent edits Backtest engine
via MCP tools (real HL data)
│
▼
Live execution
(same artifact)Three properties drive the design:
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.
pipx install keel-tradeuv tool install keel-trade also 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 serveFor 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: _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._
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: _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 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:
# 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_abc123Full 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:
[email protected] (do not open a public issue)MIT. See LICENSE.
<p align="center"> Built by <a href="https://usekeel.io/about">the Keel Research Team</a> · <a href="https://x.com/usekeelio">@usekeelio</a> </p>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.