Complete User Guide
Step-by-step guide to using the AI Hedge Fund application. Learn everything you need to know to build trading flows, configure AI agents, and analyze stocks.
🚀 Quick Start
Access the Application
Open the AI Hedge Fund application in your browser. The application runs at http://localhost:5173 by default.
Configure API Keys
Before you can use AI agents, you need to configure at least one LLM API key:
- Click on Settings in the top menu
- Go to API Keys section
- Click "Add API Key"
- Select your provider (OpenAI, Groq, Anthropic, or Ollama for free local models)
- Enter your API key and save
Build Your First Trading Flow
Create a simple trading flow to analyze stocks:
- Drag a "Tickers" node onto the canvas
- Configure it with stock symbols (e.g.,
AAPL, MSFT) - Drag an AI agent (e.g., Warren Buffett Agent) onto the canvas
- Connect the Tickers node to the Agent node
- Add a Risk Manager node
- Add a Portfolio Manager node
- Connect: Tickers → Agent → Risk Manager → Portfolio Manager
Configure and Run
Set up your flow and run the analysis:
- Click on the Portfolio Manager node
- Set initial cash (e.g., $100,000)
- Set margin requirement (e.g., 50%)
- Click the "Run" button
- Watch the analysis progress in real-time
- View results in the bottom panel
🖥️ Understanding the Interface
The AI Hedge Fund interface consists of several key areas:
📋 Left Sidebar
- Agent Library: All 18 AI agents available to drag onto canvas
- Flow Management: Save, load, and manage your trading flows
- Templates: Pre-built flow templates to get started quickly
🎨 Center Canvas
- Visual Flow Builder: Drag-and-drop interface
- Node Connections: Connect nodes with edges (arrows)
- Zoom & Pan: Navigate large flows easily
⚙️ Right Panel
- Node Configuration: Configure selected nodes
- Tickers: Set which stocks to analyze
- Model Selection: Choose LLM model for agents
- Parameters: Agent-specific settings
📊 Bottom Panel
- Execution Results: View analysis results
- Logs: Real-time progress updates
- Trading Decisions: See buy/sell/hold signals
- Portfolio Status: Current positions and cash
🔧 Building Trading Flows
Basic Flow Structure
Every trading flow follows this pattern:
Start
├─ Tickers Node (AAPL, MSFT, etc.)
├─ Analyst Agents (parallel)
│ ├─ Warren Buffett Agent
│ ├─ Peter Lynch Agent
│ └─ Technicals Agent
│ ↓
Risk Manager (aggregates signals)
↓
Portfolio Manager (final decisions)
↓
End
Step-by-Step: Building a Flow
Step 1: Add Tickers Node
- Drag "Tickers" from the left sidebar onto the canvas
- Click on the node to select it
- In the right panel, enter stock symbols:
AAPL, MSFT, NVDA - Separate multiple tickers with commas
Step 2: Add Analyst Agents
- Drag AI agents from the sidebar (e.g., Warren Buffett, Peter Lynch)
- Place them on the canvas
- Connect the Tickers node to each agent (drag from Tickers output to agent input)
- Configure each agent:
- Select LLM model
- Set any agent-specific parameters
Step 3: Add Risk Manager
- Drag "Risk Manager" onto the canvas
- Connect all analyst agents to the Risk Manager
- Configure risk parameters:
- Maximum position size
- Risk limits
- Portfolio constraints
Step 4: Add Portfolio Manager
- Drag "Portfolio Manager" onto the canvas
- Connect Risk Manager to Portfolio Manager
- Configure portfolio settings:
- Initial Cash: Starting capital (e.g., $100,000)
- Margin Requirement: Percentage (e.g., 50%)
- Starting Positions: Optional existing positions
Step 5: Run the Flow
- Click the "Run" button in the top bar
- Watch real-time progress in the bottom panel
- See each agent analyze stocks
- View trading signals and reasoning
- Review final portfolio decisions
🚀 Advanced Flow Patterns
Multi-Strategy Analysis
Run multiple agents in parallel for comprehensive analysis:
Multiple Analyst Agents (parallel)
↓
Risk Manager (aggregates signals)
↓
Portfolio Manager
Use Case: Get diverse perspectives on the same stocks.
Sequential Analysis
Chain agents where one feeds into the next:
Fundamentals Agent
↓
Valuation Agent (uses fundamentals)
↓
Risk Manager
↓
Portfolio Manager
Use Case: Build complex analysis pipelines.
Common Strategy Patterns
Conservative
Warren Buffett + Ben Graham + Risk Manager
Focus on value with strong risk management
Growth
Peter Lynch + Cathie Wood + Risk Manager
High-growth companies with innovation
Balanced
Multiple value + growth agents + Risk Manager
Diversified analysis approach
📊 Backtesting Strategies
Test your strategies on historical data to see how they would have performed.
Setting Up a Backtest
- Build your trading flow (same as regular analysis)
- Click the "Backtest" button
- Set date range:
- Start Date: e.g., 2024-01-01
- End Date: e.g., 2024-12-31
- Set initial capital (e.g., $100,000)
- Click "Run Backtest"
Understanding Backtest Results
Performance Metrics
- Total Return: Percentage gain/loss
- Sharpe Ratio: Risk-adjusted returns
- Max Drawdown: Largest peak-to-trough decline
- Win Rate: Percentage of profitable trades
Portfolio Details
- Daily Portfolio Value: Chart over time
- Final Positions: Stocks held at end
- Final Cash: Remaining cash
- Trade History: All trades made
- Test on different time periods
- Compare multiple strategies
- Consider market conditions
- Review individual trade decisions
💾 Saving and Loading Flows
Saving a Flow
- Build your trading flow
- Click the "Save" button in the top bar
- Enter a name for your flow
- Optionally mark as a template
- Click "Save"
Loading a Flow
- Click the "Load" button
- Select a flow from the list
- The flow loads onto the canvas
- Modify as needed
🔧 Troubleshooting
"API Key Not Found"
Solution: Go to Settings → API Keys and add at least one API key. Make sure the key is correct and has credits.
"Flow Won't Run"
Check:
- All nodes are properly connected
- Tickers are set correctly
- API keys are configured
- Portfolio Manager has initial cash set
"Agents Not Analyzing"
Solution: Check that agents are connected to the Tickers node and have valid API keys configured.
Ready to Start Trading?
Now that you understand how to use AI Hedge Fund, access the application and start building your trading strategies!