CairnIQ is a local-first AI portfolio intelligence console for personal market research, portfolio monitoring, and risk-aware decision support.
π Official Website: cairniq.com
Caution
NOT FINANCIAL ADVICE: This software is for educational and informational purposes only. Trading involves significant risk. The authors and contributors assume no liability for financial losses. Never make investment decisions based solely on this tool. Always consult with a certified financial advisor.
Important
π΅πΈ URGENT GAZA HUMANITARIAN EMERGENCY This project is free and source-available. If you find value in this software, please consider supporting vital civilian relief efforts directly through trusted global organizations:
- UNRWA Gaza Emergency β Direct support for food, shelter, and medical care.
- Islamic Relief Palestine Appeal β Critical humanitarian aid and medical supplies.
Humanitarian Notice: This project is independent and has no political, governmental, or military affiliations. These links are provided solely for humanitarian purposes.
CairnIQ is designed as a private command center for your personal finances, merging live broker data with deep AI reasoning.
- Deep Reasoning Engine: Automatically breaks down complex financial queries into multi-step execution plans.
- Market Pulse Analyst: Interprets broad macroeconomic trends (Fear & Greed, VIX, S&P 500 regimes) to gauge overall market safety.
- Opportunity Scanner: Continuously scans the market for high-conviction structural shifts and cyclical opportunities.
- Policy Signal Tracking ("Trump Yap"): Pulls Donald Trump's latest Truth Social posts in real time to weigh potential market and supply-chain impact.
Manage your data feeds securely from a unified dashboard.
- Alpaca Markets (US & Global): Full integration for real-time market data and paper-trading capabilities.
- Questrade (Canada): Securely track your TFSA, RRSP, and Margin accounts in real-time.
- Zero-Trust CSV Tracking: Privacy-conscious? Keep your keys to yourself. Download our CSV template, fill in your holdings, and upload it directly via the UI.
- Fundamental Analysis: The AI automatically pulls and synthesizes P/E, P/S, EV/EBITDA, and FCF Yields from external APIs (FMP, AlphaVantage).
- Technical Indicators: Real-time generation of moving averages, RSI, and MACD momentum signals.
Ensure you have Python 3.11, 3.12, or 3.13 installed on your machine. Python 3.14+ is not yet supported (transitive Pydantic V1 compat shim is incompatible).
# Clone the repository
git clone https://github.com/aymanyaq/cairniq.git
cd cairniqmacOS / Linux β run the automated installer:
./install.shWindows β open PowerShell in the project folder and run:
powershell -ExecutionPolicy Bypass -File install.ps1Tip
Guided Setup: The installer will offer to launch an interactive Setup Wizard at the end. This wizard helps you configure your AI provider (Bedrock, OpenAI, or Anthropic), link your brokerage, and set up your personal financial profile without manually editing any files.
Tip
Safe Installation: The installer automatically detects existing user data and creates a timestamped backup in the backups/ directory before any changes are made. It will also migrate legacy data files into the protected user_data/ zone automatically.
Once installed, double-click the desktop launcher the installer created, or run from the project folder:
| Platform | Command |
|---|---|
| macOS / Linux | ./CairnIQ.command |
| Windows | CairnIQ.bat |
The application will automatically open in your web browser at http://localhost:8000.
Your persistent state is stored in user_data/. The system includes utilities for maintenance:
- Backup Location:
backups/user_data_YYYYMMDD_HHMMSS.tar.gz - Restore Data:
./scripts/install/restore_backup.sh - Verify Integrity:
python3 scripts/install/verify_data.py - Tune the opportunity scanner: edit
user_data/funnel_config.json(auto-created fromfunnel_config.example.jsonon install/first run). See the Funnel Configuration Guide.
We believe your data and API usage should remain under your control. When you first launch the application:
- Navigate to the Settings page in the left sidebar.
- Enter your preferred LLM Provider Keys (AWS Bedrock, Anthropic, or OpenAI).
- Enter your Financial Data Keys (AlphaVantage, FMP, FRED).
- Connect your Brokerage (Alpaca or Questrade) in the Financial Connectivity Hub.
- Click Commit Infrastructure Sync.
Your keys are saved locally and are never transmitted to any central server. On desktop platforms, CairnIQ stores secrets in the OS keychain when available and keeps only blank placeholders in user_data/.env.
The console aggregates your holdings into a single pane of glass. You have two ways to feed data into the engine:
Method A: Live Broker Sync Enter your brokerage API credentials in the Settings menu. CairnIQ will automatically poll and synchronize your holdings.
Method B: Manual Entry (Zero-Trust)
- Navigate to the Portfolio tab.
- Click Download CSV Template.
- Fill out your positions (Symbol, Shares, Entry Price) in Excel or Numbers.
- Click Upload CSV to instantly populate your dashboard.
CairnIQ handles deduplication automaticallyβlive syncs take precedence over manual CSV entries for the same account.
Personal Wealth Management Non-Commercial License
This software is licensed strictly for personal, non-commercial use.
- β Allowed: Managing your personal portfolio, learning about the markets, personal financial research.
- β Prohibited: Use within a hedge fund, family office, proprietary trading firm, or any corporate entity. You may not monetize this software or use it to manage third-party assets for a fee.
Please see the LICENSE file for the full legal text.
This project does not redistribute or re-sell raw financial data. You are responsible for ensuring that your usage of third-party API keys (Alpha Vantage, FMP, etc.) complies with their respective Terms of Service.
Browse the full documentation in docs/. Highlights:
For users:
- π¦ Installation & Provider Setup Guide β installer walkthrough, Guided Setup Wizard, LLM/data provider comparison, fallback architecture
- π User Guide β chat interface, agent routing, portfolio management, memory system, thesis journal
- π οΈ Troubleshooting β common install, startup, API, performance, and data issues
- π Launcher Modes β production (
CairnIQ.command) vs demo (start_demo.sh)
For developers:
- π§ Project Structure β directory layout, core components, data flow
- ποΈ Architecture β runtime shape, agent flow, operational constraints
- π API Reference β every REST/SSE endpoint with request/response shapes
- π§ͺ Adding Tools β extending the agent's capabilities
- π Tool Capabilities β inventory of available tools and their inputs
See the CHANGELOG for a detailed history of changes.