# ai-hedge-fund

> Proof-of-concept AI multi-agent trading system with paper trading and backtesting.

ai-hedge-fund is an open-source terminal application that uses multiple AI agents to simulate investment decisions inspired by famous investor methodologies like Warren Buffett. It gathers market fundamentals, technicals, and earnings data, synthesizes them through risk and portfolio management modules, and outputs actionable signals. Designed for education and research, it features paper trading and backtesting modes without executing live trades.

Website: https://github.com/virattt/ai-hedge-fund

## What it is for

- Simulate stock trading strategies using specialized AI analyst personas
- Backtest investment ideas against historical benchmark data
- Paper trade simulated portfolios using a local hash-chained ledger
- Study multi-agent decision architecture applied to financial markets

## Features

- Interactive terminal user interface (TUI) installed via pipx or uv
- Multiple agent personas covering fundamentals, valuation, technicals, and Warren Buffett-style value investing
- Portfolio and risk management layers that generate unified buy, hold, or sell decisions with confidence scores
- Paper trading mode with ledger tracking and session history
- Historical backtesting mode with equity curve visualizations against benchmarks
- Support for multiple LLM providers including OpenAI, Anthropic, DeepSeek, Google, and xAI
- Integration with Financial Datasets API for market metrics and pricing

## Pricing

Open source. Free and open source (MIT); requires user-provided API keys for LLMs and Financial Datasets

## Details

- Type: GitHub repo
- Category: [AI](https://xiry.app/topics/ai.md)
- Topic: [Agent Frameworks](https://xiry.app/topics/ai/agent-frameworks.md)
- Open source: yes
- Platforms: Command line, Linux, macOS, Windows
- For: Developers, quantitative finance students, and algorithmic trading enthusiasts exploring multi-agent LLM systems.
- Tags: multi agent, trading, finance, cli, python, backtesting, paper trading

## Why it was saved

- [@virattt, 24 January 2025](https://x.com/virattt/status/1882588503793365090): A working multi-agent trading system: pick analyst agents in a terminal UI (Technical, Fundamentals, Sentiment, Valuation, Warren Buffett), the agents analyze tickers, a Risk Management and Portfolio Management step produce trading decisions with confidence scores and reasoning.

## Related

- [smolagents](https://xiry.app/resources/smolagents): Lightweight open-source Python library for building code-writing and vision AI agents (Web app, Open source)
- [Eliza](https://xiry.app/resources/eliza): Open-source multi-agent framework for building autonomous social and on-chain AI agents (GitHub repo, Open source)
- [memary](https://xiry.app/resources/memary): Open-source persistent memory layer for autonomous AI agents using knowledge graphs (GitHub repo, Open source)
- [Self-Improving Agent Loop via skill.md](https://xiry.app/resources/self-improving-agent-loop-via-skill-md): A workflow pattern where agents document completed tasks into reusable shortcuts (Tip, Free)
- [last30days-skill](https://xiry.app/resources/last30days-skill): AI agent skill for deep social research across Reddit, X, and more. (GitHub repo, Open source)
- [llm-council](https://xiry.app/resources/llm-council): Multi-agent system querying multiple LLMs that peer-review answers into one synthesis. (GitHub repo, Open source)

Updated 10 October 2026. Page: https://xiry.app/resources/ai-hedge-fund

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
