virattt/ai-hedge-fund

AlgoScore
85
Educational
★65k
Forks11k
Issues+PR196
Push25 d
LicenseMIT

Editorial verdict Educationalchecked 05.12.2026

What it is good at

An educational model of an LLM-driven hedge fund: several "investor" agents assess stocks on fundamentals, technical signals and news, and the final call goes through risk management. Since the 2.x line it is a terminal app, aihf, with two modes. Paper trading runs funds over real market days with fake money, shows the exact decision for approval before each run, and appends every session to a hash-chained ledger, so NAV builds into a continuous track record. Backtesting replays a fund over history against a benchmark and saves each decision with its report. November 2026 added a point-in-time screener and a browser for backtest decisions.

Weak spots

The author states that the project is for education and is not intended for real trading; it never places orders itself. Prices and fundamentals come from the paid Financial Datasets service; without a key you can pay per call through x402 from a Base wallet, which limits you to the last 365 days. The focus is US equities, with no crypto. LLM decisions are non-deterministic and expensive across long backtests, and quality depends heavily on the chosen model. Recent bugs from the issue tracker: backtests saved in the same second overwrote each other, and headline dates broke on Windows.

Who it is for

People who want a working example of a multi-agent investment decision system with a ledger and backtests, and who want to see whether an LLM strategy holds up on paper. A good bench for experimenting with prompts and models.

Versus alternatives

TauricResearch/TradingAgents is stronger as a cited research assistant, but v1.0 has no trading or paper account. AI4Finance-Foundation/FinRL tackles the problem with classic reinforcement learning and gives reproducible experiments without LLM costs. ai-hedge-fund is the most convenient of the three for testing ideas on paper.

Security

Keys are stored in plain text in ~/.hedge-fund/.env. If you choose x402 payments for data, the app needs the private key of a Base wallet holding USDC: use a dedicated wallet with a small balance for API calls. Install the aihf package only from PyPI via the link in the official README.

  • Last release v2.7.2 — 9 Nov 2026
  • Installed as the aihf package via pipx or uv
  • Places no real trades: paper trading and backtests only
  • MIT license

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicAI trading agents
LanguagePython
Created29.11.2024
Last release09.11.2026
Releases / tags24 / —
Contributors48
Commits total / 90d964 / 58
Watchers657

AlgoScore breakdownmethodology →

Popularity20/20
Freshness19.9/20
Community11.9/20
Maturity12/15
Momentum—
Usage—

Topic neighboursAI trading agents →

#RepositoryAlgoScore★30d growthPushLabel
1 Lumiwealth/lumibotPython trading framework with AI agents that actually place the trade. Backtest, paper and live trade on 12 brokers: stocks, options, futures, forex, crypto and prediction markets. 90 2.3k — today
2 elizaOS/elizaOpen source agentic operating system 88 20k — today
3 AI4Finance-Foundation/FinRLFinRL®: Financial Reinforcement Learning. 🔥 88 17k — 8 d Educational
4 TauricResearch/TradingAgentsTradingAgents: Towards Agentic Finance Research 87 125k — today For research
5 HKUDS/Vibe-Trading"Vibe-Trading: Your Personal Trading Agent" 87 40k — today
6 TNT-Likely/PanWatchPanWatch — AI stock monitoring for A-shares, HK & US markets, powered by TradingAgents. Portfolio insights, real-time alerts & automated reports.|盯盘侠:覆盖 A股/港股/美股的 AI 盯盘、持仓分析、实时提醒与自动报告。 87 2.6k — 1 d
7 HammerGPT/Hyper-Alpha-ArenaAI Trading platform for Hyperliquid & Binance Futures AI 自动交易平台,支持 Hyperliquid 和币安合约 86 1.2k — 31 d
8 alpacahq/alpaca-mcp-serverAlpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs 86 1.2k — 10 d