# AI hedge fund: the GitHub project, real funds using AI, and what you can run yourself

Search for an AI hedge fund and you mostly find one open-source project: a team of AI agents named after famous investors. Here is what it does, how to run it and what it won’t do, how real funds use AI, and what you can build on your own without becoming a fund.

- URL: https://www.ethyai.app/blog/ai-hedge-fund
- Author: Ethy Team
- Published: November 17, 2026; updated: November 17, 2026
- Publisher: Ethy AI, https://www.ethyai.app/

**The short answer:** “AI hedge fund” usually means the open-source ai-hedge-fund project on GitHub, created by Virat Singh in November 2024: a team of AI agents modeled on investors such as Warren Buffett and Charlie Munger that form views on stocks. It backtests and paper trades for learning only; it doesn’t trade real money.

## What is the AI Hedge Fund project on GitHub?

[ai-hedge-fund](https://github.com/virattt/ai-hedge-fund) is an open-source Python project by Virat Singh, who goes by virattt on GitHub. The repository was created on November 29, 2024, carries the MIT license, and describes itself in one line: “An AI Hedge Fund Team.” Its [README](https://github.com/virattt/ai-hedge-fund/blob/main/README.md) is just as direct about what it is for: “This is a proof of concept for an AI-powered hedge fund. The goal of this project is to explore the use of AI to make trading decisions.”

> **64,730** GitHub stars on virattt/ai-hedge-fund on November 17, 2026, with 11,388 forks. Several copies and unrelated projects use the same name; this is the original. (GitHub API, read November 17, 2026)

The idea that made it popular is simple to picture. Instead of one model answering “should I buy this stock?”, a group of AI agents each read the same company data in the voice of a famous investor, give a view, and a final step turns those views into a portfolio. It is a working demo of how the jobs inside a fund could be split between models.

The phrase has two other meanings, and this guide covers both. Real hedge funds use AI, from research assistants to funds where machine learning drives the decisions. And some funds are “AI hedge funds” only because they bet on AI companies. If you are here to build something yourself, the last two sections answer that directly. For the broader idea of software that reads, decides and acts for a trader, see [what an AI trading agent is](https://www.ethyai.app/blog/what-is-an-ai-trading-agent).

## Which investor agents does AI Hedge Fund use?

The answer depends on the version. The first version, as its README described it in April 2026, listed 19 agents. A ground-up rebuild [became the default on August 2, 2026](https://github.com/virattt/ai-hedge-fund/commit/a7a99e5b4cbbe789f4e16bd02d794e86a2a3a3d2), and it started with fewer, porting the rest over time.

|  | Version 1 (README of April 7, 2026) | Version 2 (November 17, 2026) |
| --- | --- | --- |
| Investor personas | Aswath Damodaran, Ben Graham, Bill Ackman, Cathie Wood, Charlie Munger, Michael Burry, Mohnish Pabrai, Nassim Taleb, Peter Lynch, Phil Fisher, Rakesh Jhunjhunwala, Stanley Druckenmiller, Warren Buffett | Warren Buffett, Charlie Munger, Benjamin Graham, Peter Lynch, Stanley Druckenmiller; the other eight are on the roadmap |
| Other analysts | Valuation, Sentiment, Fundamentals and Technicals agents | A quant model for post-earnings announcement drift (PEAD); the vision document names momentum and regime detection as the kind of models to come |
| Decision makers | A Risk Manager that sets position limits and a Portfolio Manager that makes the final call | Deterministic code: portfolio construction, then hard risk limits |
| How you run it | A Python script with tickers, a backtester, and a web app | A terminal app and command line, installed as a package |

Sources: the [April 2026 README](https://github.com/virattt/ai-hedge-fund/blob/03c87a7125da4d8f24831e95770a8d4684da0980/README.md), the [roadmap](https://github.com/virattt/ai-hedge-fund/blob/main/ROADMAP.md) and the [v2 core README](https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/README.md). The project’s [vision document](https://github.com/virattt/ai-hedge-fund/blob/main/VISION.md) adds an important caveat about the famous names: the agents are “stylized approximations” of these investors’ public philosophies, “not the actual individuals, and not endorsements.” A Buffett agent is a prompt written in Buffett’s style, not Buffett’s judgment.

Version 2 bundles agents into strategies, which it calls pods. The [strategy library](https://github.com/virattt/ai-hedge-fund/tree/main/hedge_fund/strategies) has four: Fundamental L/S (all five personas, long and short in equal dollars, with shorts needing Druckenmiller’s support), Deep Value (Graham leads with double weight, with Buffett and Munger, long only), Inflections (Druckenmiller and Lynch, long and short), and Earnings Drift (the PEAD model alone).

## How does AI Hedge Fund turn agent views into trades?

Version 2 copies the org chart of a real multi-strategy fund. A fund splits its capital across strategies; a strategy blends the views of its models; each model, persona or quant, returns a signal: a conviction between -1 and +1 plus a written thesis. Then the code takes over. Its core README states the rule in bold: “The LLM never touches the trade. Agents form views and narrate; deterministic code sizes and places orders; risk limits are hard gates.”

A few other design choices are worth copying even if you never run it:

- **Point in time.** On any simulated date the agents only see data actually filed by then, filtered on filing date rather than report period.
- **Decide at one close, trade at the next.** A decision made at session T’s close executes at T+1’s close, in backtests and paper trading alike, so nothing is judged and filled at the same price.
- **Hard risk limits.** The [example mandate](https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/fund/example.yaml) caps any single stock at 25% of equity, keeps the book unlevered, runs at half size after a 10% fall from the peak and moves to cash after 20%. It also charges a half-spread of 5 basis points and $0.005 a share on every simulated fill.
- **A ledger you can’t quietly edit.** Every session is appended to a hash-chained record, so a paper fund’s history is a track record, not something reset after a bad week.

### The AI remembers the future

The most interesting fix in the project’s history is about language models themselves. An LLM trained on data through some date already “knows” how a famous company did over that period. Ask it to judge NVIDIA in early 2024 and it may lean on what it remembers happened next. In September 2026 the project [started hiding the ticker, industry and dates](https://github.com/virattt/ai-hedge-fund/commit/5e203919965da6018ee42839a6f9b4fd227d9c5e) from agent prompts in backtests, and [then made that the default](https://github.com/virattt/ai-hedge-fund/commit/1c07ec80f7ce09c30a8906b0d0dbe7b60afc6aa9), explaining: “A backtest is where the memory leak lives, and the default window is 78 weeks: inside the training data of every model in the picker.” This is look-ahead bias in a new form, and it applies to any backtest where an AI picks the trades. Our [guide to backtesting](https://www.ethyai.app/blog/how-to-backtest-a-trading-strategy) covers the classic forms.

## How do you install and run AI Hedge Fund?

As of November 17, 2026, the README’s steps are short. You need Python, a terminal, and two kinds of API key.

1. **Install the package.** Run *pipx install aihf* (or *uv tool install aihf*, or *pip install aihf*). The package is called aihf; the project [notes](https://github.com/virattt/ai-hedge-fund/commit/75b89a1f6b2add5e23b4c9a7a7778aa00d31943f) that the name ai-hedge-fund on PyPI belongs to an unrelated project, so don’t install that one by mistake. Version 2.7.2 was released on November 10, 2026, per [PyPI](https://pypi.org/project/aihf/).
2. **Add your keys when asked.** The app asks the first time it needs them and saves them in ~/.hedge-fund/.env. It needs a Financial Datasets key for prices, fundamentals and earnings (or a Base wallet holding USDC that pays per call), plus one model key from Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi or TypeSafe (Jev).
3. **Launch the app.** Type *aihf*. The terminal app has two modes: backtesting, which replays a fund over history against its benchmark, and paper trading, which runs a fund on real market days with fake money, shows the exact decision before anything trades, and has a kill switch.
4. **Or script it.** The command line runs the same engine: *aihf backtest ~/.hedge-fund/mandates/example.yaml --universe AAPL,MSFT,NVDA --start 2024-01-02 --end 2024-06-28* for a backtest, and *aihf paper create*, *tick*, *halt* and *resume* for a paper fund.

One disclosure worth knowing: Financial Datasets, the data provider the README asks for, is the company Singh founded and runs as CEO, according to its [Y Combinator page](https://www.ycombinator.com/companies/financial-datasets). That doesn’t change what the code does, but it explains the default.

If you would rather build your own agent from scratch, our guide to [building an AI trading agent for onchain markets](https://www.ethyai.app/blog/how-to-build-an-ai-trading-agent-for-onchain-markets) walks through the parts.

## What does its disclaimer say, and does it trade real money?

No, it does not trade real money. The README says the project is “for educational purposes only and is not intended for real trading or investment,” and adds: “Note: the system does not actually make any trades.” Its disclaimer lists five points:

- Not intended for real trading or investment.
- No investment advice, and no promise of any result.
- The creator assumes no liability for financial losses.
- Consult a financial advisor for investment decisions.
- Past performance does not indicate future results.

It closes: “By using this software, you agree to use it solely for learning purposes.”

The paper mode moves no money either. A live link to a broker is on the roadmap, listed for Interactive Brokers or Alpaca as an opt-in plugin, off by default, and not built as of November 17, 2026. The vision document puts the stance in four words: “Paper before real, always.” A planned validation gate that checks strategies for backtest overfitting is also still on the to-do list.

> **A demo, not a fund** No one’s money is managed, nothing trades live, and the agents are prompts, not people. That is exactly what makes it a good way to learn how a fund’s decisions could be split between models.

## How do real hedge funds use AI?

First, what a hedge fund is. The SEC’s [investor bulletin on hedge funds](https://www.sec.gov/files/ib_hedgefunds.pdf) says they “pool investors’ money and invest the money in an effort to make a positive return,” that you generally must be an accredited investor to put money in, and that their managers “owe a fiduciary duty to the funds that they manage.” Here is what reported cases say about how such firms use AI, each with its date:

| Date | Firm | What the AI does | Source |
| --- | --- | --- | --- |
| July 2, 2024 | Bridgewater Associates | A fund of nearly $2bn from more than half a dozen clients that uses machine learning as the primary basis of its decisions, led by co-CIO Greg Jensen’s Artificial Investment Associate Labs; humans still manage risk, data and trade execution | [Hedgeweek](https://hedgeweek.com/news/bridgewater-launches-2bn-machine-learning-driven-fund), citing Bloomberg |
| July 11, 2025 | Man Group (Man Numeric) | AlphaGPT mines historical data, proposes rule-based signals, writes the code and backtests them; several dozen signals were approved for live trading, and senior portfolio manager Ziang Fang said “I wouldn’t call it autopilot” | [Hedgeweek](https://hedgeweek.com/news/man-group-deploys-agentic-ai-for-quant-signal-discovery), citing Bloomberg |
| August 26, 2025 | Numerai | An open platform where any data scientist, or any AI, can submit stock market signals through an API; JPMorgan Asset Management invested and secured $500m in capacity | [Numerai](https://blog.numer.ai/jpmorgan-secures-500m-capacity/) |
| September 16, 2025 | 150 fund managers surveyed | 95% said they use generative AI in their work, and 58% expect more use in their investment processes over the next year | [AIMA](https://www.aima.org/article/press-release-front-office-gen-ai-adoption-shifts-from-if-to-when-for-leading-fund-managers-aima-research-finds.html) |

Two more stories belong on the list. On March 18, 2024 the [SEC charged two investment advisers](https://www.sec.gov/newsroom/press-releases/2024-36), Delphia and Global Predictions, with false and misleading claims about their use of AI, and they paid $400,000 in penalties between them. The SEC chair at the time called it “AI washing.” And on July 31, 2026, [CNBC reported](https://www.cnbc.com/2026/07/31/leopold-aschenbrenner-situational-awareness-fund-fire-sale.html) that Situational Awareness, an AI-themed hedge fund run by former OpenAI researcher Leopold Aschenbrenner, sold leveraged stock positions at a discount after semiconductor stocks fell, its holdings dropping to around $10 billion from a $45 billion peak, according to people with knowledge of the situation. That fund was an AI hedge fund in the other sense: it bet on AI companies.

The common thread: at the large firms, AI does research and proposes, people and fixed processes decide what reaches real money. [Quantitative trading](https://www.ethyai.app/blog/quantitative-trading) is the older discipline all of this builds on.

## Can you run your own AI hedge fund?

In the legal sense, only by becoming a fund manager, and no app can make you one. A hedge fund manages other people’s money. That brings legal duties: the SEC bulletin above describes the fiduciary duty a manager owes, the limits on who may invest, and, depending on how much the manager advises, registering and filing public reports with the SEC. Whether and how you could manage money for others is a question for a lawyer where you live, not a software choice.

Ethy is not a hedge fund either. It doesn’t take in or pool anyone’s money, and it doesn’t make investment decisions for clients. It is software for research and analysis that you use on your own balance, which lives in a wallet that belongs to you, and it doesn’t give investment advice.

What one trader can do is run the same process a fund runs, on their own account:

1. **Research with AI.** Ask why a market moved and get a web search with citations; ask for a chart read across the daily, 4-hour, 1-hour and 15-minute charts; schedule a morning brief.
2. **Write the rules.** Describe the idea in plain English, and Ethy turns it into rules you can preview before anything runs.
3. **Backtest them.** Over up to 365 days depending on the timeframe, with an optimizer that ranks settings on a training window and checks each one on a held-out test window.
4. **Paper trade.** Run the rules on live prices with no money in paper mode, then press Go live when you are ready.
5. **Run them with loss limits.** Once you press Activate, an automation trades by itself whenever its rules are met. Give it a stop, a max daily loss and a max drawdown in dollars; it pauses after 10 losing closes in a row by default, and you can archive it with its positions closed at any time.

> **Ask Ethy:** [Research NVDA for me: why did it move this week, and what does the daily chart show?](https://agents.ethyai.app/chat?landing=blog&post=ai-hedge-fund&prompt=Research%20NVDA%20for%20me%3A%20why%20did%20it%20move%20this%20week%2C%20and%20what%20does%20the%20daily%20chart%20show%3F)

## How does Ethy compare with the AI Hedge Fund project?

They answer different questions. AI Hedge Fund asks how a team of AI analysts could run a fund, and lets you watch it in code. Ethy is an AI trading agent for one trader’s own account. Both are honest about their limits; here is where they differ, as of November 17, 2026.

|  | AI Hedge Fund (GitHub) | Ethy |
| --- | --- | --- |
| What it is | An open-source Python project, MIT license | An AI trading agent, a web app at agents.ethyai.app |
| How you set a strategy | A YAML mandate or the terminal app’s fund builder: strategies, analysts, risk, capital | Plain English; Ethy shows the rules it built |
| Who forms the views | LLM investor personas and quant models | You set the rules; Ethy helps research, build and test them |
| Markets | Stocks, with prices, fundamentals and earnings from Financial Datasets | Perps on Hyperliquid’s main exchange and on trade.xyz (stocks, indices, commodities), and spot tokens |
| Backtests | Yes, against a benchmark | Yes, up to 365 days, with a held-out test window |
| Paper trading | Yes, with a hash-chained ledger | Yes, on live prices, with no money moved |
| Real money | No; a live broker is planned, opt-in and off by default | Yes, from chat or from an automation you activate, with loss limits you set |
| What you need | Python, a terminal, a data key and a model key | A browser |

What AI Hedge Fund does well is worth saying plainly: it is free to read and fork, it shows its reasoning for every decision, and its point-in-time data, next-session fills and blinded agents are more careful than most hobby backtests. If you want to study how a fund’s decisions could be split between models, clone it. If you want to test and run your own rules on your own balance, that is the job Ethy is built for. Stock perps on trade.xyz are synthetic: they track the price but carry no ownership, votes or dividends.

**Run the process, not a fund** Describe a rule in plain English. Ethy backtests it, runs it on paper, and trades it live once you activate it, with the stop and loss limits you set. [Start free](https://agents.ethyai.app/?landing=blog&post=ai-hedge-fund)

## Summary

- The ai-hedge-fund project on GitHub, created by Virat Singh on November 29, 2024 and MIT licensed, had 64,730 stars on November 17, 2026. It is a proof of concept for educational use.
- Version 1 listed 19 agents, 13 of them investor personas; version 2, the default since August 2, 2026, has five personas (Buffett, Munger, Graham, Lynch, Druckenmiller) and a post-earnings drift model.
- In version 2 the LLM agents only form views; deterministic code sizes and places orders, and hard risk limits apply. Backtests hide tickers and dates so the model can’t lean on what it remembers.
- It doesn’t trade real money: the README says the system “does not actually make any trades,” and a live broker link is only planned, off by default.
- Real funds use AI as researchers and, at Bridgewater, as the main decision maker of one fund, with humans running risk and execution; the SEC has fined advisers for false AI claims.
- A hedge fund manages other people’s money under legal duties. Ethy is not a fund: one trader can research, write rules, backtest, paper trade and run automations with loss limits on their own balance.

## Questions people ask

### Who created the AI hedge fund project on GitHub?

Virat Singh, who goes by virattt on GitHub, created the virattt/ai-hedge-fund repository on November 29, 2024. It is MIT licensed. Singh is also the founder and CEO of Financial Datasets, the market data provider the project asks you to use, according to Y Combinator’s company page.

### Is the AI Hedge Fund project free?

The code is free and open source under the MIT license. Running it needs two outside services you set up yourself: a Financial Datasets key, or a Base wallet holding USDC that pays per call, for market data, and an API key from a model provider such as Anthropic or OpenAI. Those providers bill you directly.

### Does the AI Hedge Fund project trade real money?

No. Its README says it is for educational purposes only, not intended for real trading or investment, and that “the system does not actually make any trades.” Its paper mode uses fake money, and a live broker link is only on the roadmap, opt-in and off by default.

### Can an AI hedge fund beat the market?

No one can promise that, and the open-source project makes no performance claim; its stated goal is to try, and to be honest when it doesn’t. Treat any AI fund or tool that advertises market-beating returns with care: in 2024 the SEC fined two advisers for false claims about their AI.

### Can I invest in an AI hedge fund?

Hedge funds generally take money only from accredited investors, people who meet minimum income or asset levels, according to the SEC. Before investing in any fund that calls itself AI-driven, read its offering documents, check the manager’s registration, and ask what the AI actually decides.

### Is Ethy an AI hedge fund?

No. Ethy is not a fund: it doesn’t take in or pool anyone’s money. It is an AI trading agent, software for research and analysis that you use on your own balance: you research markets, write rules in plain English, backtest them, paper trade, and run automations with loss limits you set.

## Sources

- [virattt/ai-hedge-fund on GitHub (repository, created November 29, 2024)](https://github.com/virattt/ai-hedge-fund)
- [AI Hedge Fund: README (disclaimer, install, run)](https://github.com/virattt/ai-hedge-fund/blob/main/README.md)
- [AI Hedge Fund: v2 core README (architecture and principles)](https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/README.md)
- [AI Hedge Fund: VISION.md](https://github.com/virattt/ai-hedge-fund/blob/main/VISION.md)
- [AI Hedge Fund: ROADMAP.md](https://github.com/virattt/ai-hedge-fund/blob/main/ROADMAP.md)
- [AI Hedge Fund: example mandate (risk limits and costs)](https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/fund/example.yaml)
- [AI Hedge Fund: strategy library](https://github.com/virattt/ai-hedge-fund/tree/main/hedge_fund/strategies)
- [AI Hedge Fund: README of April 7, 2026 (version 1 and its 19 agents)](https://github.com/virattt/ai-hedge-fund/blob/03c87a7125da4d8f24831e95770a8d4684da0980/README.md)
- [AI Hedge Fund commit: Make 2.0.0 the default (August 2, 2026)](https://github.com/virattt/ai-hedge-fund/commit/a7a99e5b4cbbe789f4e16bd02d794e86a2a3a3d2)
- [AI Hedge Fund commit: keep the ticker, industry and dates out of LLM agent prompts (September 25, 2026)](https://github.com/virattt/ai-hedge-fund/commit/5e203919965da6018ee42839a6f9b4fd227d9c5e)
- [AI Hedge Fund commit: blind the investor agents in every backtest (September 25, 2026)](https://github.com/virattt/ai-hedge-fund/commit/1c07ec80f7ce09c30a8906b0d0dbe7b60afc6aa9)
- [AI Hedge Fund commit: rename the package to aihf (August 7, 2026)](https://github.com/virattt/ai-hedge-fund/commit/75b89a1f6b2add5e23b4c9a7a7778aa00d31943f)
- [PyPI: aihf](https://pypi.org/project/aihf/)
- [Y Combinator: Financial Datasets](https://www.ycombinator.com/companies/financial-datasets)
- [SEC Office of Investor Education and Advocacy: Investor Bulletin, Hedge Funds (2012)](https://www.sec.gov/files/ib_hedgefunds.pdf)
- [SEC press release 2024-36: two investment advisers charged over false statements about their use of AI (March 18, 2024)](https://www.sec.gov/newsroom/press-releases/2024-36)
- [Hedgeweek: Bridgewater launches $2bn machine learning-driven fund (July 2, 2024)](https://hedgeweek.com/news/bridgewater-launches-2bn-machine-learning-driven-fund)
- [Hedgeweek: Man Group deploys agentic AI for quant signal discovery (July 11, 2025)](https://hedgeweek.com/news/man-group-deploys-agentic-ai-for-quant-signal-discovery)
- [Numerai: JPMorgan secures $500m capacity in Numerai (August 26, 2025)](https://blog.numer.ai/jpmorgan-secures-500m-capacity/)
- [AIMA: front-office Gen AI adoption shifts from if to when (September 16, 2025)](https://www.aima.org/article/press-release-front-office-gen-ai-adoption-shifts-from-if-to-when-for-leading-fund-managers-aima-research-finds.html)
- [CNBC: How Leopold Aschenbrenner built a $45 billion AI hedge fund, and lost most of it in days (July 31, 2026)](https://www.cnbc.com/2026/07/31/leopold-aschenbrenner-situational-awareness-fund-fire-sale.html)
