openfinclaw-cli

作者 mirror29已验证

One-stop quant-trading AI agent — research · strategy · backtest · paper trade from one prompt. Works in Claude Code, Cursor, and 20+ AI agents via MCP. 60-second install with auto Skill registration.

116
Stars
7
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/mirror29/openfinclaw-cli

快速入门

使用 openfinclaw-cli 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

English | 中文

OpenFinClaw

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.

npm npm downloads MCP compatible License: MIT

🚀 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 skills60+ built-in — technical · fundamental · sentiment · risk · timing · factor
🌍 Markets covered5 — US equities · A-shares · HK · Crypto · Forex
🤖 Works with20+ AI platforms — Claude Code · Cursor · VS Code · Hermes · Windsurf · Codex …
🔄 End-to-end flowresearch → strategy → backtest → paper trade → publish to the leaderboard
How you interactstreaming token-by-token in the terminal · MCP tool calls · in-browser playground

DeepAgent backtest result — Tesla Bollinger Bands
Live output from openfinclaw deepagent research — one prompt: research → strategy → backtest → metrics.


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 leaderboard to browse the community's highest-ranked strategies, then fork any 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 / backtest

install 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-skill

Just 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-keyOPENFINCLAW_API_KEY~/.openfinclaw/config.json.

GroupCommands
DeepAgentdeepagent +research "<query>", deepagent health, deepagent skills, deepagent threads, deepagent messages, deepagent backtests, deepagent packages, deepagent download
Strategyleaderboard, strategy-info, fork, list-strategies, validate, publish, publish-verify
Rawapi GET <path> · api POST <path> --json '<body>' — direct Hub Gateway call, auth pre-attached
Systeminstall · init · skill-install · serve · doctor · update · examples

+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:

DeepAgent — strategy definition & performance metrics DeepAgent — trades, conclusions & optimization suggestions


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 progress

Every 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:

CategoryPlatforms
ChatClaude Desktop, Claude.ai, ChatGPT, Chatbox, LM Studio
IDEsClaude Code, VS Code (Copilot), Cursor, Windsurf, JetBrains Junie, Zed, Cline, Continue.dev
CLI AgentsCodex (OpenAI), OpenCode, Amazon Q CLI
FrameworksHermes Agent, BeeAI, Swarms
AI AgentsOpenClaw, NanoClaw
Otherv0 (Vercel), Postman, Roo Code, Amp (Sourcegraph)

Platform Config Examples

Claude Code~/.claude/settings.json
{
  "mcpServers": {
    "openfinclaw": {
      "command": "npx",
      "args": ["@openfinclaw/cli", "serve", "--tools=deepagent,strategy"],
      "env": {
        "OPENFINCLAW_API_KEY": "fch_xxx"
      }
    }
  }
}
Cursor.cursor/mcp.json
{
  "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.

GroupTools
deepagent14 remote-agent tools — fin_deepagent_health / _skills / _research_submit / _research_poll / _research_finalize / _status / _cancel / _threads / _messages / _backtests / _backtest_result / _packages / _package_meta / _download_package
strategy7 local FEP v2.0 tools — strategy_publish / strategy_validate / strategy_fork / strategy_leaderboard / strategy_get_info / strategy_list_local / strategy_publish_verify

Environment Variables

Only one is required:

VariableDescription
OPENFINCLAW_API_KEYUnified fch_ key. Drives both strategy (Hub) and deepagent (Hub Gateway). Falls back to ~/.openfinclaw/config.json if unset. Get a key at hub.openfinclaw.ai.

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 test

Monorepo: @openfinclaw/core (zero-dep business logic) + @openfinclaw/cli (MCP server + terminal CLI + install wizard).


License

MIT

常见问题

What is openfinclaw-cli?

openfinclaw-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mirror29. One-stop quant-trading AI agent — research · strategy · backtest · paper trade from one prompt. Works in Claude Code, Cursor, and 20+ AI agents via MCP. 60-second install with auto Skill registration. It has 116 GitHub stars.

Is openfinclaw-cli safe to use?

Yes. openfinclaw-cli passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install openfinclaw-cli?

Clone the repository with "git clone https://github.com/mirror29/openfinclaw-cli" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is openfinclaw-cli written in?

openfinclaw-cli is primarily written in TypeScript. It is open-source under mirror29 on GitHub, so you can review or fork the full source.

Are there alternatives to openfinclaw-cli?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh openfinclaw-cli against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情