
Keel
io.github.keel-trade由 GitHub 账号 keel-trade 发布v0.9.0更新于 Oct 24, 2026
Build, backtest and paper-run Hyperliquid strategies from your AI assistant.
概览
Keel 让 AI 助手基于真实市场历史构建、校验并回测 Hyperliquid 永续合约策略,并分享结果。
- 可以做什么
- 搜索并获取带版本的策略组件,组合与校验类型化策略图,查看策略日志与审计数据。在真实 Hyperliquid 价格、资金费与滑点历史上运行确定性回测并比较多次运行。浏览策略库并生成带完整回测报告的分享链接。查看账户状态、完成登录,并读取实盘账户与策略状态。将策略交接给 Keel 网页应用进行实盘部署;实盘写入工具需主动开启,且本身不下单。
- 适用场景
- 适合希望助手在不写自由代码的情况下设计、测试和比较 Hyperliquid 加密永续合约策略,或在投入真实资金前研究资金费与动量思路的场景。
- 运行要求
- 可使用托管远程端点并通过 MCP 客户端完成 OAuth 登录,或本地安装 keel-trade Python 包(需 Python 3.11+,可用 pipx、uv 或 Claude Desktop 捆绑包)以 stdio 方式运行。需要免费的 Keel 账户;本地使用需通过浏览器登录一次,CI 或 SSH 场景可用 API 密钥。需能访问 Keel 服务的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Keel,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.keel-trade%2Fkeel-trade/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"keel": {
"type": "http",
"url": "https://mcp.usekeel.io/mcp"
}
}
}README
[keel-trade — Build, backtest, and automate Hyperliquid trading strategies with your agent]
keel-trade
The Keel CLI and stdio MCP server.
Build and backtest Hyperliquid perpetual-futures strategies with your AI assistant — typed strategy composition and deterministic backtests on real Hyperliquid market history. Running a strategy with real capital happens in the Keel web app.
[PyPI version] [Python 3.11+] [MIT License] [Product page] [keel-trade MCP server]
Website · Product page · Docs · Sample backtest · Discussions
What is Keel?
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:
- A web app for composing strategies, running backtests, and deploying live (app.usekeel.io)
- A deterministic backtest engine with real Hyperliquid funding, price and slippage
- Bit-for-bit live execution — the same compiled strategy artifact runs in backtest and on Hyperliquid
- A strategy library of documented, forkable trading strategies
- A screener + calculator suite at usekeel.io/lab (funding leaderboard, momentum, overfit-check, walk-forward visualizer, more)
- This package —
keel-trade— the agent-native research surface
This 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.
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:
Three properties drive the design:
- 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.
Quick start — the hosted MCP, nothing to install
Paste one URL into the client you already use. You sign in through your client's own OAuth flow; no API key to copy, no local install.
Hosted endpoint URL: https://mcp.usekeel.io/mcp — one endpoint, a 29-tool research/backtest/read surface, nothing to install. Sign in or sign up on the Keel page that opens (no account needed beforehand); authentication is your MCP client's OAuth flow, never a tool call.
- Claude: Customize → Connectors → Add custom connector. Paste https://mcp.usekeel.io/mcp and choose Connect.
- ChatGPT: Settings → Security and login → turn on Developer mode (a paid ChatGPT plan; on Business/Enterprise an admin must allow it). Open chatgpt.com/plugins, choose +, give the connector a name and a description, and enter https://mcp.usekeel.io/mcp as the MCP server URL (the /mcp path included).
- Claude Code:
claude mcp add --transport http keel https://mcp.usekeel.io/mcp. Inside Claude Code run /mcp and choose Authenticate. - Cursor: Add the server to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{"mcpServers": {"keel": {"url": "https://mcp.usekeel.io/mcp"}}}. Cursor asks you to sign in on first use. - Codex:
codex mcp add keel --url https://mcp.usekeel.io/mcpthencodex mcp login keel. Codex opens your browser for the sign-in. - Windsurf: Add the server to Windsurf's mcp_config.json:
{"mcpServers": {"keel": {"serverUrl": "https://mcp.usekeel.io/mcp"}}}. Windsurf asks you to sign in on first use. - VS Code: Add the server to .vscode/mcp.json, or open the install link:
{"servers": {"keel": {"type": "http", "url": "https://mcp.usekeel.io/mcp"}}}. VS Code asks you to sign in on first use. - Other: Use your client's own add remote / HTTP MCP server flow with https://mcp.usekeel.io/mcp. The first request answers 401 with OAuth 2.1 metadata, so a compliant client discovers the sign-in step by itself.
The agent builds, tests and reads. When you want to run a strategy on your account, it hands it to the Keel app and you take it from there.
Setup guide: https://usekeel.io/docs/agents/setup · Per-client runbook: https://usekeel.io/agents
No Keel account yet? Create one free — then connect the endpoint above and ask your agent to build something.
Choose your surface
Keel is one product with several places to use it. The hosted MCP above is the default; this package is the CLI + local MCP path.
- CLI + local MCP — this package (install below).
- SDK + API key — the REST API for building your own agents and scripts.
Per-surface zero-to-first-backtest runbook: usekeel.io/agents.
Install
Claude Desktop — one-click (MCPB)
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.
The bundle runs this package's local MCP server: your assistant composes and validates strategies, backtests them on real Hyperliquid history, browses the strategy library, compares runs, and shares results. Sign in once with keel_auth_login. By default it cannot place orders or move funds — running a strategy with real capital happens in the Keel web app, and the local tools that act on a live account stay off unless you enable them and arm them on your machine (details below). Prefer nothing to install? Claude Desktop also works with the hosted connector in the quick start.
Terminal — pipx / uv (Claude Code, Codex, Cursor, Windsurf, etc.)
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.
First conversation with your agent
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_get_many→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.
What the MCP exposes
The default local toolsets (always, read-only, backtest, share, live-read) span status, auth, components, strategy lifecycle, backtest, audit, accounts, sharing, and read-only live monitoring.
Live-write tools (keel_live_deploy, keel_live_control, keel_live_update) are off unless you opt in with KEEL_TOOLSETS. Even then, going live is a hand-off: keel_live_deploy places no orders and returns a link into the Keel web app, where you choose the account, review sizing, and start the strategy. Acting on a live account from your machine (keel_live_control, or the operator-only direct deploy) also requires local arming (keel arm live set). The hosted connector at mcp.usekeel.io has no live-write tools at all.
Full per-tool reference: usekeel.io/docs/sdk/tool-reference.
CLI usage
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.
What you can do with Keel
Documentation
- Product page: usekeel.io/keel-mcp
- Getting started: usekeel.io/docs/getting-started
- Agent setup (per host): usekeel.io/docs/agents/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
Status
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.
Keel measures the strategies you design. It is not investment advice, and backtest results do not predict future returns.
How to contribute / report a bug
See CONTRIBUTING.md. Short version:
- Bug report → open an issue using the bug template
- Feature request, question, or pattern share → use Discussions
- Security issue → email
[email protected](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
Related
- 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
License
MIT. See LICENSE.
Built by the Keel Research Team · @usekeelio
来源:README.md,提交 76ff9f6
工具
0版本历史
2- v0.9.0最新Oct 24, 2026
- v0.5.6Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分