End-to-end encrypted DeFi portfolio intelligence for Solana.
Your portfolio data is encrypted client-side before analysis — neither SolRouter, the AI provider, nor any intermediary can ever see your holdings, strategy, or wallet composition.
Traditional portfolio analysis tools require you to expose your holdings to third-party servers. This creates serious risks:
- 🐋 Whale Tracking — Public analysis services log wallet addresses. Large holders become targets for copy-traders and MEV bots who front-run their trades.
- 📊 Strategy Leakage — If your portfolio reveals a yield farming strategy or an alpha position, anyone with access to the analysis service can reverse-engineer your edge.
- 🎯 Targeted Attacks — Wallet profiling enables social engineering, phishing, and targeted scams proportional to wallet size.
- 📈 Front-Running — When your analysis query hits a centralized server, the operator could theoretically front-run trades based on your portfolio composition.
SolRouter solves this with cryptographic guarantees:
- Your prompt (portfolio data) is encrypted with Arcium RescueCipher (X25519 key exchange) before leaving your device
- SolRouter's backend routes the encrypted blob blindly — it cannot decrypt your data
- Decryption and AI inference happen inside an AWS Nitro TEE (hardware-isolated enclave)
- The response is encrypted with an ephemeral key that only you hold
This isn't a privacy policy. It's math.
git clone https://github.com/Atlaskos/solrouter-portfolio-analyzer.git
cd solrouter-portfolio-analyzer
npm install
cp .env.example .envGet your SolRouter API key at solrouter.com/sdk — no email, no KYC, just connect a wallet.
Add your key to .env:
SOLROUTER_API_KEY=sk_solrouter_your_key_here
Analyze any Solana wallet with encrypted AI — the wallet address and holdings are encrypted before leaving your machine:
node src/index.js analyze <WALLET_ADDRESS>Example:
node src/index.js analyze vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTgGet an overview of wallet holdings without AI analysis:
node src/index.js scan <WALLET_ADDRESS>Send any encrypted question to SolRouter:
node src/index.js query "What are the risks of leveraged yield farming on Kamino?"node src/index.js balance┌──────────────────────┐
│ Your Machine │
│ │
│ 1. Fetch on-chain │
│ wallet data │
│ 2. Encrypt with │
│ Arcium cipher │
│ 3. Send encrypted │
│ blob │
└──────────┬───────────┘
│ encrypted
▼
┌──────────────────────┐
│ SolRouter Backend │
│ │
│ Cannot decrypt. │
│ Routes blindly. │
└──────────┬───────────┘
│ still encrypted
▼
┌──────────────────────┐
│ AWS Nitro TEE │
│ │
│ Hardware-isolated │
│ decryption + AI │
│ inference │
└──────────┬───────────┘
│ re-encrypted
▼
┌──────────────────────┐
│ Your Machine │
│ │
│ Decrypt with │
│ ephemeral key │
│ → Read analysis │
└──────────────────────┘
- 🔒 End-to-end encrypted — portfolio data never leaves encryption
- 📊 On-chain data fetching — SOL balance, SPL tokens, staking positions, transaction history
- 🧠 AI-powered analysis — risk assessment, diversification insights, DeFi optimization
- 🐋 Whale-safe — no wallet profiling, no strategy leakage
- ⚡ Solana-native — understands Solana DeFi protocols (Marinade, Raydium, Orca, Jupiter, etc.)
- 🎨 Beautiful CLI — colored output with progress spinners
- SolRouter SDK (
@solrouter/sdk) — encrypted AI inference - Solana Web3.js (
@solana/web3.js) — on-chain data - Commander.js — CLI framework
- Chalk + Ora — terminal UI
- Portfolio managers analyzing client wallets without exposing positions
- Traders getting AI analysis without revealing their alpha
- DAOs auditing treasury wallets privately
- Researchers studying wallet behavior without creating tracking footprints
- Anyone who wants AI portfolio analysis without becoming a data point
MIT
- SolRouter — Private AI infrastructure on Solana
- Arcium — Cryptographic privacy layer
- @solana/web3.js — Solana JavaScript SDK
Your portfolio. Your strategy. Your privacy.
