- 49Contributors
- Nov 1, 2026Last commit
- MITLicense
- Suggestsonly
AI Hedge Fund runs a team of LLM investor agents over a stock, paper-trades and backtests their calls, and never places a real order; a second opinion on the stocks behind Moby's tokenized stocks.
About
AI Hedge Fund (pipx install aihf) is a terminal app in which LLM agents modelled on well-known investors analyse a ticker and vote. It has two modes: paper trading, where each fund keeps a hash-chained ledger of real market days and fake money with an approval step before every decision, and backtesting, which replays a fund over history against a benchmark. Prices, fundamentals and earnings come from a Financial Datasets API key; the agents run on one LLM key (Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi).
What it adds to Moby. A fundamentals-driven, multi-agent debate on equities, with a paper track record you can inspect before you trust it.
How to pair it. Before your Moby agent buys a tokenized stock, run AI Hedge Fund on the underlying ticker and read the vote and the fund's paper NAV. Your Moby agent and your Guardrails decide what executes.
What it does not do. The README says it plainly: the system does not make any trades, and it is for education and research, not real investing. It does not cover Solana tokens or read Moby's data; Financial Datasets is a stock market API. Agent verdicts vary between runs, and a good paper NAV is not a forecast.
A plain guide to the term, and to this project, is what an AI hedge fund is.
What's inside this repo
- aihf: interactive terminal app (pipx install aihf, or uv tool install aihf)
- Paper trading: funds with a ledger of real market days and fake money
- Approval step shows the exact decision before anything executes
- Backtesting: replay a fund over history and plot its equity curve against a benchmark
- Results under ~/.hedge-fund/research/; fund definitions under ~/.hedge-fund/mandates/
- LLM agents modelled on well-known investors analyse a ticker and vote
- Prices, fundamentals and earnings from the Financial Datasets API
- Model providers: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi and others
Install steps
Third-party code: Moby does not audit or control it. Read the source before you run it.
pipx install aihf(oruv tool install aihf, orpip install aihfon Python 3.11+)- Run
aihf; it asks for a Financial Datasets key (https://financialdatasets.ai) and one model key the first time and saves them to~/.hedge-fund/.env. - Build a paper fund for the tickers behind the tokenized stocks you watch, or run a backtest.
- Ask:
Compare AI Hedge Fund's vote on NVDA with Moby's data on the tokenized NVDA before you buy.
Permissions
- Reads
- Stock prices, fundamentals and earnings from Financial Datasets
- Writes
- Local paper-trading ledgers and research files under ~/.hedge-fund/
- Tools
- Python CLI `aihf` (Python 3.11+); needs a Financial Datasets key and one LLM API key
- Trade
- Suggests only
Review
Reviewed Nov 1, 2026. Source matches repo at commit f338578
Links
- Repository: https://github.com/virattt/ai-hedge-fund
On GitHub
- Stars
- 64,719
- Forks
- 11,390
How it works with Moby
AI Hedge Fund works on its own. With Moby your agent can also trade on what it finds.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install AI Hedge Fund
Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
- APSchedulerAPScheduler is an open-source Python job scheduler, so your agent…
- CCXTCCXT is a unified library for crypto exchange market data, balances…
- CryptofeedCryptofeed is a Python websocket handler for live cryptocurrency…
- DuckDBDuckDB is an in-process analytical database for SQL over local and…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
Reviewed Nov 1, 2026 · Report this item
