OpenFinClaw CLI
Allows Amazon Q CLI agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Allows Hermes agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Allows JetBrains Junie agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Allows Codex (OpenAI) agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Allows Postman agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Allows v0 (Vercel) agents to perform quantitative research, strategy generation, backtesting, and paper trading using natural language prompts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenFinClaw CLIResearch NVDA's recent price action and backtest a breakout strategy."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Your quant research team, in one prompt.
Research · strategy · backtest · paper trade — ship a complete quant workflow from a single natural-language prompt, inside Claude Code, Cursor, and 20+ AI agents.
🚀 Try it in 60 seconds — zero install
Run a full research → strategy → backtest loop in your browser. No install, no API key, real market data.
Quick Start · Example Prompts · Community · Platforms · vs. other tools
What you get
🧠 DeepAgent analysis skills | 60+ built-in — technical · fundamental · sentiment · risk · timing · factor |
🌍 Markets covered | 5 — US equities · A-shares · HK · Crypto · Forex |
🤖 Works with | 20+ AI platforms — Claude Code · Cursor · VS Code · Hermes · Windsurf · Codex … |
🔄 End-to-end flow | research → strategy → backtest → paper trade → publish to the leaderboard |
⚡ How you interact | streaming token-by-token in the terminal · MCP tool calls · in-browser playground |
Example Prompts
Copy-paste any of these into openfinclaw deepagent research "…" (or drop them straight into your AI agent). Each one runs the full research → strategy → backtest loop.
📈 Technical analysis
Find RSI divergence signals on NVDA in the last 6 months, then backtest them.Compare a Bollinger Bands strategy on TSLA vs AAPL over 1 year — which wins?Screen the S&P 500 for golden-cross signals this month.
📊 Fundamentals & macro
Pull Apple's last 8 quarters of revenue, margins, and guidance. Summarize the trend.What's driving the NVDA move this quarter — earnings, guidance, or narrative?Compare AMD / INTC / NVDA on growth, margin, and valuation.
🎯 Strategy generation
Design a momentum strategy on US mega-cap tech. Backtest 2y. Tell me where it breaks.Write a mean-reversion strategy on BTC and show drawdown behavior through 2022.A-shares 沪深 300 日内轮动策略,年化目标 15%,最大回撤 < 10%。
🧪 Backtest & stress-test
Backtest a 50/200 SMA crossover on SPY from 2015. Include costs and slippage.Stress-test my forked strategy against the 2020 and 2022 crashes.
Want a ready-made one? Run
openfinclaw leaderboardto browse the community's highest-ranked strategies, thenforkany of them.
Quick Start
💡 Want to see it in action before installing? Try DeepAgent in your browser first.
60-second onboarding
npx @openfinclaw/cli@latest install # wizard + MCP configs + Skill registration + doctor
openfinclaw deepagent +research "盘点 BTC 周线" # streaming research / strategy / backtestinstall runs the interactive wizard, writes MCP configs to every detected AI agent, persists your fch_ key to ~/.openfinclaw/config.json (chmod 600 on Unix), drops a SKILL.md under ~/.claude/skills/openfinclaw/ so Claude Code / Cursor auto-trigger on keywords like quant / backtest / 量化, and finishes with a connectivity check.
Non-interactive / CI:
npx @openfinclaw/cli@latest install --yes \
--platforms cursor,claude-code --tool-groups deepagent,strategy \
--api-key fch_xxx --register-skillJust the wizard, no SKILL.md registration, no doctor: npx @openfinclaw/cli init.
CLI quick reference
A single fch_ key drives both DeepAgent and the strategy group. Resolution order: --api-key → OPENFINCLAW_API_KEY → ~/.openfinclaw/config.json.
Group | Commands |
DeepAgent |
|
Strategy |
|
Raw |
|
System |
|
+verb (e.g. deepagent +research) is the human-friendly streaming path; the bare verbs and MCP-only atomic triplet research_submit / research_poll / research_finalize are for agents/scripts. Run openfinclaw --help for the full surface.
Sample DeepAgent output — one prompt → strategy definition + backtest metrics + per-trade P&L + improvement notes:
Community: leaderboard → fork → publish
OpenFinClaw ships with a community strategy exchange. Browse what others are running, copy any strategy locally, tweak it, and publish back — think of it as a Hugging Face for quant strategies.
openfinclaw leaderboard --limit 20 # Browse top-ranked strategies
openfinclaw strategy-info <id> # See how a strategy performs
openfinclaw fork <id> # Copy to ./strategies/<slug>
# ... edit strategy.py, tweak fep.yaml ...
openfinclaw validate ./strategies/<slug> # Pre-flight FEP v2.0 check
openfinclaw publish ./my-strategy.zip # Ship to the leaderboard
openfinclaw publish-verify --submission-id <id> # Track backtest progressEvery published strategy is backtested server-side and ranked by live-market-equivalent returns — no self-reported numbers.
Supported Platforms
OpenFinClaw works with any MCP-compatible agent platform:
Category | Platforms |
Chat | Claude Desktop, Claude.ai, ChatGPT, Chatbox, LM Studio |
IDEs | Claude Code, VS Code (Copilot), Cursor, Windsurf, JetBrains Junie, Zed, Cline, Continue.dev |
CLI Agents | Codex (OpenAI), OpenCode, Amazon Q CLI |
Frameworks | Hermes Agent, BeeAI, Swarms |
AI Agents | OpenClaw, NanoClaw |
Other | v0 (Vercel), Postman, Roo Code, Amp (Sourcegraph) |
Platform Config Examples
{
"mcpServers": {
"openfinclaw": {
"command": "npx",
"args": ["@openfinclaw/cli", "serve", "--tools=deepagent,strategy"],
"env": {
"OPENFINCLAW_API_KEY": "fch_xxx"
}
}
}
}{
"mcpServers": {
"openfinclaw": {
"command": "npx",
"args": ["@openfinclaw/cli", "serve", "--tools=deepagent,strategy"],
"env": {
"OPENFINCLAW_API_KEY": "fch_xxx"
}
}
}
}For other platforms (VS Code, Hermes, Windsurf, Zed, OpenClaw, Junie, Trae, …), see configs/ for ready-to-copy templates. The shape is the same — only the host key (servers vs mcpServers vs context_servers) and config path differ.
Tool Groups & Context Optimization
Load only what you need to save tokens: serve --tools=deepagent (~1,400 tk) or serve --tools=strategy (~1,000 tk), or omit --tools for both.
Group | Tools |
| 14 remote-agent tools — |
| 7 local FEP v2.0 tools — |
Environment Variables
Only one is required:
Variable | Description |
| Unified |
Advanced overrides (rarely needed): OPENFINCLAW_CONFIG_PATH, HUB_API_URL, DEEPAGENT_API_URL, REQUEST_TIMEOUT_MS, DEEPAGENT_SSE_TIMEOUT_MS — see packages/core/src/config.ts.
Development
git clone https://github.com/mirror29/openfinclaw-cli.git && cd openfinclaw-cli && pnpm install && pnpm build
OPENFINCLAW_API_KEY=<fch_...> node packages/cli/dist/index.js doctor # smoke testMonorepo: @openfinclaw/core (zero-dep business logic) + @openfinclaw/cli (MCP server + terminal CLI + install wizard).
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mirror29/openfinclaw-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server