A self-hosted AI financial analyst for private stock research and portfolio analysis. 6 AI agents, 125+ financial tools, real-time stock market data โ all running locally. Your portfolio, your keys, your data.
Each agent is an expert in its domain. The Supervisor routes your queries to the right specialist, and the Deep Reasoning engine orchestrates multi-step analysis plans.
Breaks complex financial queries into multi-step execution plans. Selects from 125+ tools, runs them in parallel, and synthesizes institutional-grade reports. When a tool fails, a hand-curated equivalent stands in โ and says so.
Real-time market intelligence. Scans for golden crosses, oversold conditions, volume spikes, and sector rotation signals across your entire universe.
Monitors concentration risk, drawdown limits, and macro regime shifts. Runs Monte Carlo simulations and position-sizing calculations.
Natural language interface with context-aware intelligence panels. Ask complex questions and watch the AI break them into multi-step plans โ live.
Sync a broker, or keep your keys entirely to yourself and upload a CSV. Either way the editor is a live grid โ last price, day move, computed return and total value, sortable, with a live quote always beating a pinned CSV price.
An LLM that sounds certain is easy. The hard part is proving the numbers came from somewhere. Every advice-generating turn passes a review gate that is deliberately split between deterministic code and a challenge model โ because the two fail differently.
A final challenge pass that hunts unsourced numbers, claims about holdings you don't own, and invented history. Every verdict is written to a per-profile audit trail.
Proposed trades are extracted and checked numerically against your stated caps โ position, sector, dollar-at-risk โ before the judge ever reads the draft.
Every turn records what its evidence was worth: sources live, unavailable, stale, or unstamped. Thin evidence caps the answer's confidence instead of shipping like a fully-sourced one.
A golden-set corpus of engineered drafts run against the real judge, so a model, provider, or prompt change can't quietly weaken the safety layer.
Between conversations, zero-LLM monitors watch the tape and your book, and anything worth saying lands in one deduplicated inbox โ with a desktop notification for anything above informational.
An engine that is correct, running, and invisible is indistinguishable from one that is dead. These four surfaces exist purely to be read.
Every past call scored against what actually happened โ 2-week, 1-month and 3-month returns vs SPY, plus how accurate its own stated confidence turned out to be.
Assembled Sunday evening, waiting Monday. Every section always renders โ including the ones whose honest content is "nothing this week."
Which inputs only you can state are still blank โ and exactly which shipped feature is switched off until you fill them. It never suggests a value.
Whether each background monitor actually ran, reported as the count that proves the whole chain worked rather than a rare event that may legitimately be zero.
Every call is logged with its stated confidence and horizon, then scored against what the market actually did โ and the arithmetic is defended as carefully as the advice.
Assembled Sunday evening, waiting Monday. Every section always renders โ including the ones whose honest content is "nothing this week."
Continuous monitoring across fund creations/redemptions, earnings calendars, and macro event countdowns for names in your book.
Every tool the AI uses is a real, deterministic function โ not a hallucinated answer. From RSI calculations and stock screening to Monte Carlo simulations and portfolio analysis.
Accumulation-first funnel: Dynamic Universe โ Event & Flow Radar โ Deep Fundamentals โ Conviction Scoring
10,000-path probability engine for portfolio projections
Surfaces loss-harvesting candidates with a recovery-conviction check and wash-sale guidance
US macro from the Fed, and keyless first-class CAD data straight from the institution that sets the rate โ policy rate, CORRA, core CPI, posted bank rates
SEC Form 4 with true transaction coding, plus Canadian SEDI filings read in their own vocabulary โ an issuer buyback is not an insider buy
Loughran-McDonald scoring of management language, reported as the quarter-over-quarter change โ a team that always hedges is not a sell
Max-Sharpe / min-vol / target-vol under your stated caps, plus a drift-band rebalance check against the trigger you set
"Should I add this?" recomputes the book with the candidate and reports the delta โ beta, volatility, 95% CVaR, correlation. A report, never a verdict
We built this for ourselves first. This is privacy-first, local-first AI investing research: every API key, every holding, and every memory fragment stays on your local disk. AI inference is performed via encrypted API calls to enterprise developer endpoints (AWS Bedrock, Vertex AI, Azure OpenAI and others), where your prompts are not used to train foundation models. Retention is a separate matter: most providers hold prompts briefly for abuse monitoring, and the window varies by provider โ see the FAQ for the per-provider detail before you choose one, and verify it against your own provider's current terms, since these policies change.
Clone, install, and launch. The guided setup wizard handles the rest.
One script installs all dependencies, creates your data directory, and migrates existing config.
git clone https://github.com/aymanyaq/cairniq.git && cd cairniq && ./install.sh
The interactive Setup Wizard walks you through connecting your AI provider and brokerage accounts.
Settings โ Commit Infrastructure Sync
Double-click the launcher or run the command. Your private intelligence console opens at localhost:8000.
./CairnIQ.command or CairnIQ.bat
Here are a few quick answers to common questions about CairnIQ.
user_data/, and API keys go into your OS keychain โ not into a cloud database. CairnIQ stores nothing on our servers, because there are no CairnIQ servers, and it ships no telemetry or analytics.
Articles on AI financial intelligence, portfolio analysis, and self-hosted engineering.
Your wealth intelligence. Your infrastructure. Your rules.
View on GitHub Request Support