Practice Buffett-style Value Investing
This project has no association, sponsorship, endorsement, or authorization relationship with Mr. Warren Buffett or Berkshire Hathaway Inc.
If you like AiBuffett, please give us a ⭐ on GitHub!
AiBuffett is a professional investment analysis AI agent that helps automate the generation of high-quality fundamental company research reports. It integrates multiple built-in analytical models, deeply incorporates Buffett's investment philosophy, and applies value investing principles to provide investors with professional investment decision support.
AiBuffett provides comprehensive and in-depth fundamental analysis across the following dimensions:
- Business Model Analysis: In-depth interpretation of the company's core business and competitive advantages.
- Revenue Analysis: Quantitative assessment of revenue structure and growth quality.
- Development Prospects Analysis: Forward-looking evaluation of market potential and growth space.
- Profitability Analysis: Comprehensive examination of profit margins and capital return levels.
- Operational Stability Analysis: Systematic diagnosis of financial health and risk resilience.
- Guidance Analysis: Accurate understanding of performance expectations and future development direction.
- Management Analysis: Qualitative assessment of governance structure and management execution capabilities.
- Valuation Analysis: Determination of a reasonable value range using multiple valuation models.
In the end, the system delivers a comprehensive evaluation and analytical conclusion based on Buffett's value investing philosophy.
Before you can run the AiBuffett, you'll need to install it and set up your API keys.
git clone https://github.com/Hayden-CHENPRO/AiBuffett.git
cd AiBuffettCreate a .env file for your API keys:
# Create .env file for your API keys (in the root directory)
cp .env.example .envOpen and edit the .env file to add your API keys:
# (required) Use Google APIs for searching, thinking, summarizing and tool calls
GOOGLE_API_KEY="..."
# (optional) Use langsmith to track the overall process and token consumption
LANGSMITH_TRACING="true"
LANGSMITH_API_KEY="..."
# (optional) Use a specified model other than Gemini for some of the sections
OPENAI_API_KEY="..."
OPENAI_API_BASE="..."# Use uv to quickly install the environment
uv sync# activate the environment
source .venv/bin/activate
# run the AiBuffett
uv run main.py "UNITEDHEALTH GROUP INC" "UNH"Note:
- The two main parameters of the program are the full company name (e.g. "UNITEDHEALTH GROUP INC") registered with the SEC and the corresponding company ticker (e.g. "UNH").
- Currently, only U.S.-listed companies are supported.
- All project parameter settings are located in the configuration.py file.
- APPL Fundamental Analysis Report - English Version
- APPL Fundamental Analysis Report - Chinese Version
- UNH Fundamental Analysis Report - English Version
- UNH Fundamental Analysis Report - Chinese Version
- Enhance the efficiency of the architecture: Currently, a single task takes approximately 20 minutes and consumes about 200,000 tokens.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.

