AI Hedge Fund
A team of investor-persona agents that debate a stock and size a paper position
By virattt
Source review ·
What happens on the first run
- First run
- Install the
aihfpackage with pipx and launchaihfwithout arguments. The startup code loads saved credentials and opens the home screen. - Default mode
- The first screen offers paper trading and historical backtesting. Opening it selects neither a fund nor a trading session. The paper workflow uses simulated money and asks for approval before executing its session decision.
- Credentials
- No key entry is required to open the menu. For an agent run, the README specifies a model-provider key and access to Financial Datasets. For data, the documented alternative to an API key is a funded Base wallet using x402. The app requests missing credentials when needed and can save them in
~/.hedge-fund/.env.
Sources at commit 5c553b522204
Read the five-project follow-up studyDocumentation reviewed ·
What the documentation says
- Broker and exchange integrations
None stated in the reviewed documentation
Evidence 'Note: the system does not actually make any trades.'
- Paper or simulated trading
Documented
Evidence 'Paper trading — your funds, each with a ledger of real market days and fake money... an approval step shows the exact decision about to execute before anything trades'
- Backtesting
Documented
Evidence 'Backtesting — replay a fund over history and watch its equity curve draw against its benchmark. Results are saved to `~/.hedge-fund/research/`.'
- Live-trading caution
This project is for educational and research purposes only. Not intended for real trading or investment. No investment advice or guarantees provided. Creator assumes no liability for financial losses.
Evidence README 'Disclaimer' section.
- Markets
- equities (ticker-based funds; prices, fundamentals and earnings from Financial Datasets; market not named explicitly)
- Data sources
- Financial Datasets (financialdatasets.ai)
- Model providers
Anthropic · OpenAI · DeepSeek · Google · xAI · Kimi · TypeSafe (Jev)
A model API key is required.
Evidence for markets, data and models
- Markets
- 'A Financial Datasets API key, for prices, fundamentals, and earnings.'; 'Build a new fund from the same list: strategies, capital, cadence, tickers, and it is live.'
- Data sources
- 'A [Financial Datasets](https://financialdatasets.ai) API key, for prices, fundamentals, and earnings.'
- Model providers
- 'One model API key for the investor agents. Supported providers: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi, TypeSafe (Jev).'
Review scope: Documentation review on 8–9 October 2026. We did not install or run the software. Upstream commit hashes were not recorded, so the documentation may have changed since.
Audit dataset, field definitions and downloadsRead the audit article
Live GitHub metrics
Live GitHub data · Nov 27, 2026Latest release v2.7.2 on Nov 9, 2026. Repository created Nov 29, 2024.
What it is
virattt's AI Hedge Fund runs a set of agents modelled on well-known investors plus valuation, sentiment, fundamentals, technicals, risk and portfolio-management agents. It is explicitly an educational project: it produces signals and simulated trades, not orders. Supports several LLM providers and uses the Financial Datasets API for prices and fundamentals.
In the maintainers' words: “An AI Hedge Fund Team”
Markets
- US equities
Tags
- Multi-agent
- Investor personas
- Educational
- Backtester