AI Trading is invite only. Check your Moby inbox for a code, or DM us on X for access. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

AI Hedge Fund

by @viratttCOMMUNITY· v2.6.3· Updated Nov 2, 2026

virattt/ai-hedge-fund★ 64,719

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.

  1. pipx install aihf (or uv tool install aihf, or pip install aihf on Python 3.11+)
  2. 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.
  3. Build a paper fund for the tickers behind the tokenized stocks you watch, or run a backtest.
  4. 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

On GitHub

virattt/ai-hedge-fund

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.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install AI Hedge Fund

    Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Reviewed Nov 1, 2026 · Report this item

Install AI Hedge Fund