@vizzor/cli 0.13.1 → 0.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +251 -192
  2. package/chronovisor-engine/pyproject.toml +31 -0
  3. package/chronovisor-engine/src/__init__.py +0 -0
  4. package/chronovisor-engine/src/inference/__init__.py +0 -0
  5. package/chronovisor-engine/src/inference/predict.py +44 -0
  6. package/chronovisor-engine/src/model_catalog.py +219 -0
  7. package/chronovisor-engine/src/models/__init__.py +0 -0
  8. package/chronovisor-engine/src/models/anomaly_detector.py +104 -0
  9. package/chronovisor-engine/src/models/blockchain_cycle_analyzer.py +217 -0
  10. package/chronovisor-engine/src/models/catalyst_event_model.py +70 -0
  11. package/chronovisor-engine/src/models/conformal_interval.py +50 -0
  12. package/chronovisor-engine/src/models/divergence_detector.py +247 -0
  13. package/chronovisor-engine/src/models/drift_monitor.py +51 -0
  14. package/chronovisor-engine/src/models/intent_classifier.py +189 -0
  15. package/chronovisor-engine/src/models/lstm_predictor.py +143 -0
  16. package/chronovisor-engine/src/models/microstructure_specialist.py +65 -0
  17. package/chronovisor-engine/src/models/narrative_detector.py +418 -0
  18. package/chronovisor-engine/src/models/portfolio_optimizer.py +162 -0
  19. package/chronovisor-engine/src/models/project_risk_scorer.py +184 -0
  20. package/chronovisor-engine/src/models/pump_detector.py +344 -0
  21. package/chronovisor-engine/src/models/regime_detector.py +127 -0
  22. package/chronovisor-engine/src/models/rug_detector.py +197 -0
  23. package/chronovisor-engine/src/models/sentiment_analyzer.py +257 -0
  24. package/chronovisor-engine/src/models/signal_classifier.py +191 -0
  25. package/chronovisor-engine/src/models/stacking_meta.py +56 -0
  26. package/chronovisor-engine/src/models/strategy_bandit.py +191 -0
  27. package/chronovisor-engine/src/models/ta_interpreter.py +341 -0
  28. package/chronovisor-engine/src/models/target_quantile.py +96 -0
  29. package/chronovisor-engine/src/models/trend_scorer.py +107 -0
  30. package/chronovisor-engine/src/models/wallet_classifier.py +261 -0
  31. package/chronovisor-engine/src/server.py +1686 -0
  32. package/chronovisor-engine/src/training/__init__.py +0 -0
  33. package/chronovisor-engine/src/training/data_loader.py +635 -0
  34. package/chronovisor-engine/src/training/pipeline.py +130 -0
  35. package/chronovisor-engine/src/training/train_catalyst.py +169 -0
  36. package/chronovisor-engine/src/training/train_classifier.py +159 -0
  37. package/chronovisor-engine/src/training/train_conformal.py +106 -0
  38. package/chronovisor-engine/src/training/train_direction.py +215 -0
  39. package/chronovisor-engine/src/training/train_drift.py +57 -0
  40. package/chronovisor-engine/src/training/train_isotonic.py +58 -0
  41. package/chronovisor-engine/src/training/train_lstm.py +217 -0
  42. package/chronovisor-engine/src/training/train_microstructure.py +102 -0
  43. package/chronovisor-engine/src/training/train_narrative.py +168 -0
  44. package/chronovisor-engine/src/training/train_pump.py +109 -0
  45. package/chronovisor-engine/src/training/train_regime.py +116 -0
  46. package/chronovisor-engine/src/training/train_rug.py +58 -0
  47. package/chronovisor-engine/src/training/train_sentiment.py +63 -0
  48. package/chronovisor-engine/src/training/train_stacking_meta.py +74 -0
  49. package/chronovisor-engine/src/training/train_target_quantile.py +115 -0
  50. package/chronovisor-engine/src/training/train_trend.py +101 -0
  51. package/dist/index.js +22494 -15023
  52. package/dist/index.js.map +1 -1
  53. package/package.json +5 -1
  54. package/vizzor_logodarkicon.png +0 -0
  55. package/vizzor_logoicon.png +0 -0
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <strong>See the future of crypto before it happens.</strong><br>
13
- <em>AI-powered price predictions for coins, tokens, and currencies across every chain and DEX.</em>
13
+ <em>AI-powered price predictions with real dollar targets across every chain, token, and timeframe.</em>
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -20,21 +20,21 @@
20
20
  </p>
21
21
 
22
22
  <p align="center">
23
- <a href="#requirements">Requirements</a> &bull;
24
- <a href="#installation">Install</a> &bull;
25
- <a href="#quick-start">Quick Start</a> &bull;
26
- <a href="#usage">Usage</a> &bull;
27
- <a href="#agents">Agents</a> &bull;
23
+ <a href="#get-started-in-60-seconds">Get Started</a> &bull;
24
+ <a href="#features">Features</a> &bull;
25
+ <a href="#autonomous-agents">Agents</a> &bull;
28
26
  <a href="#web-dashboard">Dashboard</a> &bull;
29
- <a href="#api-server">API</a> &bull;
27
+ <a href="#api">API</a> &bull;
28
+ <a href="#supported-chains">Chains</a> &bull;
29
+ <a href="#chronovisor-engine">ChronoVisor</a> &bull;
30
30
  <a href="#configuration">Config</a>
31
31
  </p>
32
32
 
33
33
  ---
34
34
 
35
- Vizzor is a crypto market prediction engine. It pulls live data from 7+ APIs, runs technical analysis on raw candles, reads derivatives positioning and market sentiment, then synthesizes price predictions with actual dollar targets across multiple timeframes — from 5 minutes to 3 months.
35
+ Vizzor turns raw market data into actionable crypto predictions. It pulls live feeds from 15+ exchanges, runs technical analysis on real candles, reads derivatives positioning, tracks on-chain activity, and synthesizes everything into price predictions with actual dollar targets — from 5-minute scalps to 3-month outlooks.
36
36
 
37
- Ask about any coin, token, or currency. Vizzor fetches real-time data, computes signals, and gives you a prediction with numbers, not opinions.
37
+ Ask about any coin, any token, any chain. Vizzor fetches the data, computes the signals, and gives you numbers not opinions.
38
38
 
39
39
  ```
40
40
  vizzor
@@ -50,119 +50,54 @@ ETH at $2,112 | Bullish | Confidence: Medium-High
50
50
 
51
51
  ---
52
52
 
53
- ## What It Does
54
-
55
- **Any tradable crypto asset.** BTC, ETH, SOL, meme coins, new DEX launches, tokens by contract address — if it has a price, Vizzor can analyze it.
56
-
57
- - **Price predictions** — bull/bear/likely targets across 9 timeframes (5m to 3 months), batch multi-horizon predictions in a single call
58
- - **ChronoVisor engine** — mathematical prediction system using Bayesian inference, certainty-factor algebra with weak signal dampening, first-order logic rules (17 base + 7 scalping), meta-reasoning, and continuous weight learning with feedback loops
59
- - **Alert-hit notifications** — toast banners for price target hits with training feedback (accuracy, streak, weight updates), ESC-to-dismiss, auto-dismiss after 5s
60
- - **Microstructure analysis** — market structure, FVGs, VWAP, volume delta, liquidation map, order book depth, S/R zones, squeeze detection
61
- - **Token security audits** — honeypot detection, tax analysis, mint/blacklist flags, rug pull indicators
62
- - **On-chain forensics** — wallet analysis, whale tracking, holder concentration, token flow patterns
63
- - **Blockchain fundamentals** — TVL, protocol revenue, developer activity, governance metrics, staking yields
64
- - **Derivatives positioning** — funding rates, open interest, long/short ratios from Binance Futures
65
- - **Prediction markets** — integrates Gamma and Polymarket data for market-implied probabilities
66
- - **Polymarket edge scanning** — compare ChronoVisor predictions against Polymarket odds, detect mispricings, execute trades via CLOB API
67
- - **Multi-exchange pricing** — aggregated prices from 15 exchanges (Binance, Coinbase, Kraken, OKX, Bybit, Gate.io, KuCoin, HTX, MEXC, Bitget, CoinGecko, CryptoCompare, DexScreener, GeckoTerminal, Jupiter) with VWAP/median aggregation and outlier detection
68
- - **Sentiment analysis** — Fear & Greed Index, news sentiment, buy/sell transaction ratios
69
- - **Trending discovery** — what tokens are moving right now across DexScreener and CoinGecko
70
- - **ICO tracking** — upcoming launches, fundraising rounds, investor data
71
- - **Notifications & alerts** — price alerts for all prediction types (directional + sideways breakout), prediction tracking, interactive alerts panel with dismiss-on-review for resolved predictions
72
- - **Autonomous agents** — set-and-forget trading agents with paper/live execution
73
- - **DeFi protocols** — Aave V3, Lido integrations with health monitoring and yield orchestration
53
+ ## Why Vizzor?
74
54
 
75
- ---
76
-
77
- ## Requirements
78
-
79
- ### Hardware
80
-
81
- | Component | Minimum | Recommended |
82
- |-----------|---------|-------------|
83
- | **CPU** | 2 cores | 4+ cores |
84
- | **RAM** | 2 GB | 4+ GB (8 GB if running ML sidecar) |
85
- | **Disk** | 500 MB | 2 GB (includes SQLite cache + ML models) |
86
- | **Network** | Stable internet | Low latency to Binance/CoinGecko APIs |
87
- | **GPU** | Not required | Not required (ML models are CPU-based) |
55
+ Most crypto tools show you what already happened. Vizzor shows you what's likely to happen next.
88
56
 
89
- ### Software
90
-
91
- | Dependency | Version | Notes |
92
- |------------|---------|-------|
93
- | **Node.js** | >= 20.0.0 | ES2022 target, ESM modules |
94
- | **pnpm** | >= 8.0 | Recommended package manager (npm/yarn also work) |
95
- | **Python** | 3.x | Required by `better-sqlite3` native build |
96
- | **C++ compiler** | GCC / Clang / MSVC | Required by `better-sqlite3` native build |
97
- | **Docker** | >= 24 | Optional — for ML sidecar, PostgreSQL, web dashboard |
98
-
99
- Works on **macOS**, **Linux**, and **Windows**.
100
-
101
- ### API Keys
102
-
103
- | Key | Required | Free Tier | Purpose |
104
- |-----|----------|-----------|---------|
105
- | `ANTHROPIC_API_KEY` | Yes (or use Ollama) | Pay-per-use | Claude AI — best prediction quality |
106
- | `ETHERSCAN_API_KEY` | Recommended | Yes | Transaction history, contract source |
107
- | `OPENAI_API_KEY` | No | Pay-per-use | GPT-4 as alternative provider |
108
- | `GOOGLE_API_KEY` | No | Free tier | Gemini as alternative provider |
109
- | `ALCHEMY_API_KEY` | No | Free tier | Premium RPC endpoints |
110
- | `COINGECKO_API_KEY` | No | Free tier | Extended market data |
111
- | `CRYPTOPANIC_API_KEY` | No | Free tier | News with sentiment |
112
- | `DISCORD_TOKEN` | No | Free | Discord bot |
113
- | `TELEGRAM_BOT_TOKEN` | No | Free | Telegram bot |
114
- | `POLYMARKET_PRIVATE_KEY` | No | N/A | Polymarket CLOB trading (edge execution) |
115
-
116
- **No API key at all?** Use Ollama with a local model — fully offline predictions (lower quality but free).
57
+ - **Not a chart tool** — it's a prediction engine that synthesizes 6 independent signal types into one composite forecast
58
+ - **Not a news aggregator** — it processes sentiment, derivatives, on-chain data, and technical indicators simultaneously
59
+ - **Not a chatbot wrapper** every prediction is backed by real market data from 15 exchanges, with traceable reasoning and confidence scores
60
+ - **Works with everything** — BTC, ETH, SOL, meme coins, new DEX launches, tokens by contract address — if it has a price, Vizzor can predict it
117
61
 
118
62
  ---
119
63
 
120
- ## Installation
121
-
122
- ### npm (recommended)
64
+ ## Get Started in 60 Seconds
123
65
 
124
66
  ```bash
125
67
  npm install -g @vizzor/cli
68
+ vizzor
126
69
  ```
127
70
 
128
- ```bash
129
- # Or run directly without installing
130
- npx @vizzor/cli
131
- ```
71
+ That's it. Vizzor launches a guided setup wizard that walks you through:
72
+ - Choosing your AI provider (Claude, GPT-4, Gemini, or local Ollama)
73
+ - Setting up API keys
74
+ - Picking your default chain
75
+ - Learning the first commands
132
76
 
133
- ### From Source
77
+ ### Start predicting
134
78
 
135
- ```bash
136
- git clone https://github.com/7ayLabs/vizzor.git
137
- cd vizzor
138
- pnpm install
139
- pnpm build
140
- pnpm link --global
141
79
  ```
142
-
143
- ### Docker (Full Stack)
144
-
145
- ```bash
146
- cp .env.example .env # Configure API keys
147
- docker compose up -d # Starts CLI + ML sidecar + PostgreSQL + Web Dashboard
80
+ > predict BTC price next week
81
+ > analyze $PEPE security and price outlook
82
+ > what's trending in crypto right now
83
+ > full microstructure analysis for ETH
84
+ > track wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
85
+ > audit contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
148
86
  ```
149
87
 
150
- ---
151
-
152
- ## Quick Start
88
+ ### Better prediction accuracy
153
89
 
154
- ### Option A: With Claude (best quality)
90
+ After setup, follow these tips for the best results:
91
+ - Run `/cosmos on` to enable full data pipeline
92
+ - For intraday: focus on `BTC`, `ETH`, and `SOL` with `2h`, `3h`, `4h`, `6h` horizons
93
+ - For scalping: focus on `BTC` and `ETH` with exact short horizons like `10m`, `20m`, `45m`
94
+ - For long-range: ask for `7d`, `30d`, `90d`, or `1y` scenario ranges
95
+ - Use `/precisions` to check tracked accuracy and `/playbook` for the full operating workflow
155
96
 
156
- ```bash
157
- # 1. Set your Anthropic API key
158
- vizzor config set anthropicApiKey sk-ant-...
159
- # or: export ANTHROPIC_API_KEY=sk-ant-...
97
+ ### Alternative setups
160
98
 
161
- # 2. Launch
162
- vizzor
163
- ```
164
-
165
- ### Option B: With Ollama (free, local, offline)
99
+ <details>
100
+ <summary><b>Ollama (free, offline, no API key needed)</b></summary>
166
101
 
167
102
  ```bash
168
103
  # 1. Install Ollama: https://ollama.ai
@@ -175,8 +110,10 @@ vizzor config set ai.model llama3.2
175
110
  # 3. Launch
176
111
  vizzor
177
112
  ```
113
+ </details>
178
114
 
179
- ### Option C: With OpenAI or Gemini
115
+ <details>
116
+ <summary><b>OpenAI or Gemini</b></summary>
180
117
 
181
118
  ```bash
182
119
  vizzor config set ai.provider openai
@@ -185,27 +122,90 @@ vizzor config set openaiApiKey sk-...
185
122
  vizzor config set ai.provider gemini
186
123
  vizzor config set googleApiKey AI...
187
124
  ```
125
+ </details>
188
126
 
189
- ### Start asking
127
+ <details>
128
+ <summary><b>From source</b></summary>
190
129
 
130
+ ```bash
131
+ git clone https://github.com/7ayLabs/vizzor.git
132
+ cd vizzor
133
+ pnpm install
134
+ pnpm build
135
+ pnpm link --global
191
136
  ```
192
- > predict BTC price next week
193
- > analyze $PEPE security and price outlook
194
- > what's trending in crypto right now
195
- > full microstructure analysis for ETH
196
- > track wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
197
- > audit contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
137
+ </details>
138
+
139
+ <details>
140
+ <summary><b>Docker (full stack)</b></summary>
141
+
142
+ ```bash
143
+ cp .env.example .env # Configure API keys
144
+ docker compose up -d # Starts CLI + ChronoVisor Engine + PostgreSQL + Web Dashboard
198
145
  ```
146
+ </details>
199
147
 
200
148
  ---
201
149
 
202
- ## Usage
150
+ ## Features
151
+
152
+ ### Predictions & Forecasting
153
+
154
+ | Feature | What it does |
155
+ |---------|-------------|
156
+ | **Price predictions** | Bull/bear/likely targets across 9 timeframes (5m to 3 months), batch multi-horizon in a single call |
157
+ | **ChronoVisor engine** | Mathematical prediction system: Bayesian inference, certainty-factor algebra with weak signal dampening, first-order logic rules (17 base + 7 scalping), meta-reasoning, and continuous weight learning with feedback loops |
158
+ | **Alert-hit notifications** | Toast banners when price targets hit, with training feedback (accuracy, streak, weight updates), ESC-to-dismiss, auto-dismiss |
159
+ | **Prediction markets** | Integrates Gamma and Polymarket data for market-implied probabilities |
160
+ | **Polymarket edge scanning** | Compare ChronoVisor predictions vs Polymarket odds, detect mispricings, execute trades via CLOB API |
161
+
162
+ ### Market Intelligence
163
+
164
+ | Feature | What it does |
165
+ |---------|-------------|
166
+ | **Multi-exchange pricing** | Aggregated prices from 15 exchanges (Binance, Coinbase, Kraken, OKX, Bybit, Gate.io, KuCoin, HTX, MEXC, Bitget, CoinGecko, CryptoCompare, DexScreener, GeckoTerminal, Jupiter) with VWAP/median aggregation and outlier detection |
167
+ | **Microstructure analysis** | Market structure, FVGs, VWAP, volume delta, liquidation map, order book depth, S/R zones, squeeze detection |
168
+ | **Derivatives positioning** | Funding rates, open interest, long/short ratios from Binance Futures |
169
+ | **Sentiment analysis** | Fear & Greed Index + news sentiment + buy/sell transaction ratios |
170
+ | **Trending discovery** | What's moving right now across DexScreener and CoinGecko |
171
+ | **ICO tracking** | Upcoming launches, fundraising rounds, investor data |
172
+
173
+ ### Security & Forensics
174
+
175
+ | Feature | What it does |
176
+ |---------|-------------|
177
+ | **Token security audits** | Honeypot detection, tax analysis, mint/blacklist flags, rug pull indicators |
178
+ | **On-chain forensics** | Wallet analysis, whale tracking, holder concentration, token flow patterns |
179
+ | **Smart contract audits** | Source code analysis, vulnerability detection, risk scoring |
180
+ | **Blockchain fundamentals** | TVL, protocol revenue, developer activity, governance metrics, staking yields |
181
+
182
+ ### Trading & Automation
183
+
184
+ | Feature | What it does |
185
+ |---------|-------------|
186
+ | **Autonomous agents** | Set-and-forget trading agents with paper/live execution and 5 built-in strategies |
187
+ | **DeFi integrations** | Aave V3, Lido with health monitoring and yield orchestration |
188
+ | **Backtesting** | Test strategies against historical data with full metrics (return, win rate, Sharpe, drawdown) |
189
+ | **Wallet management** | AES-256-GCM encrypted wallets with scrypt key derivation |
190
+ | **Notifications & alerts** | Price alerts for all prediction types (directional + sideways breakout), interactive alerts panel with dismiss-on-review |
191
+
192
+ ### Platforms
193
+
194
+ | Platform | Description |
195
+ |----------|-------------|
196
+ | **Terminal (TUI)** | Interactive chat with live price ticker, streaming responses, and slash commands |
197
+ | **Web Dashboard** | Next.js 15 — AI chat, markets, agents, portfolio, Polymarket, notifications |
198
+ | **REST API** | Fastify + Swagger — 40+ endpoints with API key auth and rate limiting |
199
+ | **Discord Bot** | Full command suite with AI-powered chat via @mention |
200
+ | **Telegram Bot** | Full command suite with AI chat on any message |
201
+
202
+ ---
203
203
 
204
- ### TUI (Terminal UI)
204
+ ## Terminal UI
205
205
 
206
- Launch with `vizzor`. Interactive chat with live price ticker, streaming responses, and slash commands.
206
+ Launch with `vizzor`. Interactive chat with a live price ticker, streaming AI responses, and slash commands.
207
207
 
208
- **Price Ticker:** Arrow keys to navigate, **Enter** to trigger AI prediction, **Tab** to toggle focus.
208
+ **Price Ticker:** Arrow keys to navigate, **Enter** to trigger prediction, **Tab** to toggle focus.
209
209
 
210
210
  | Command | Description |
211
211
  |---------|-------------|
@@ -223,6 +223,7 @@ Launch with `vizzor`. Interactive chat with live price ticker, streaming respons
223
223
  | `/chain [<id>]` | Show/switch chain |
224
224
  | `/provider` | Show current AI provider |
225
225
  | `/provider <name>` | Switch to `anthropic`, `openai`, `gemini`, `ollama` |
226
+ | `/playbook` | Exact steps for better tracked prediction win rate |
226
227
  | `/agent create <name> [options]` | Create autonomous agent |
227
228
  | `/agent list` | List agents |
228
229
  | `/agent start <name>` | Start agent |
@@ -231,67 +232,49 @@ Launch with `vizzor`. Interactive chat with live price ticker, streaming respons
231
232
  | `/agent wallet <name>` | Show agent wallet balance |
232
233
  | `/agent trades <name>` | Show agent trade history |
233
234
  | `/backtest` | Historical strategy backtest |
235
+ | `/chronovisor` | ChronoVisor engine status |
234
236
  | `/config` | Show config |
235
237
  | `/help` | Command reference |
236
238
 
237
- **Alerts Panel:** Type `/alerts` to open the interactive panel. Use **Up/Down** to navigate predictions and alerts, **Enter** to view full details (entry price, confidence, outcome, signal snapshot), **Escape** to close. Resolved predictions (HIT/MISS) are dismissed from the list when you exit their detail view. Pending predictions appear first; resolved predictions sort below them.
239
+ **Alerts Panel:** Type `/alerts` to open the interactive panel. Use **Up/Down** to navigate predictions and alerts, **Enter** to view full details (entry price, confidence, outcome, signal snapshot), **Escape** to close. Resolved predictions remain available after review and become visually muted as seen history. Pending predictions appear first; resolved predictions sort below them.
238
240
 
239
241
  ### CLI Commands
240
242
 
241
243
  ```bash
242
244
  vizzor # Launch interactive TUI
243
- vizzor scan <token> [options] # Token risk analysis
244
- vizzor trends [options] # Market trends + top movers
245
- vizzor track <wallet> [options] # Wallet forensics
246
- vizzor audit <contract> [options] # Contract security audit
247
- vizzor ico list [options] # ICO/IDO tracker
245
+ vizzor setup # Reopen guided setup
248
246
  vizzor config init # Initialize config
249
247
  vizzor config set <key> <value> # Set config value
250
248
  vizzor config show # Show config
251
249
  vizzor wallet create|import|list|delete # Wallet management
252
- vizzor backtest [options] # Historical strategy backtest
253
- vizzor bot start [options] # Start Discord/Telegram bots
254
- vizzor api start [--port 3100] # Start REST API server
250
+ vizzor serve [--port 7100] # Start REST API server
255
251
  vizzor api key create "my-app" # Create API key
252
+ vizzor bot start [options] # Start Discord/Telegram bots
253
+ vizzor collect start [options] # Start OHLCV data collection
254
+ vizzor chronovisor setup # Install ChronoVisor engine
255
+ vizzor chronovisor start # Start engine
256
+ vizzor chronovisor stop # Stop engine
257
+ vizzor chronovisor status # Engine health check
258
+ vizzor predictions reset # Reset prediction history
259
+ vizzor update # Update to latest version
260
+ vizzor health # Check config, API keys, and service connectivity
256
261
  ```
257
262
 
258
- ### Discord Bot
259
-
260
- Requires `DISCORD_TOKEN`. Enable the `MESSAGE_CONTENT` privileged intent in the [Discord Developer Portal](https://discord.com/developers/applications).
261
-
262
- | Command | Description |
263
- |---------|-------------|
264
- | `/predict <symbol>` | AI prediction with signals |
265
- | `/scan <address>` | Token security scan |
266
- | `/trends` | Trending tokens |
267
- | `/track <wallet>` | Wallet forensics |
268
- | `/price <symbol>` | Live price |
269
- | `/audit <contract>` | Contract audit |
270
- | `/ico` | Upcoming launches |
271
- | `/agent_create` | Create agent |
272
- | *@mention* | AI-powered chat |
273
-
274
- ### Telegram Bot
275
-
276
- Requires `TELEGRAM_BOT_TOKEN`.
277
-
278
- Same commands as Discord (`/predict`, `/scan`, `/trends`, `/track`, `/price`, `/audit`, `/ico`, `/agent_create`). Any text message triggers AI chat.
279
-
280
263
  ---
281
264
 
282
- ## Agents
265
+ ## Autonomous Agents
283
266
 
284
- Autonomous prediction agents that run a continuous **think analyze decide act** cycle.
267
+ Set-and-forget trading agents that run a continuous **think > analyze > decide > act** cycle.
285
268
 
286
269
  ### Agent Requirements
287
270
 
288
271
  | Requirement | Details |
289
272
  |-------------|---------|
290
- | **AI Provider** | Any (Claude recommended for best decisions) |
273
+ | **AI Provider** | Any supported provider (Claude recommended for best decisions) |
291
274
  | **Wallet** | Required for live trading; not needed for paper trading or alert-only |
292
275
  | **RPC Endpoint** | Required for live trading (default public RPCs or Alchemy) |
293
276
  | **Minimum Balance** | Agent-specific; configurable spending limits |
294
- | **Always-on Process** | Agent runs in a loop — needs a persistent process (terminal, tmux, Docker, etc.) |
277
+ | **Always-on Process** | Agent runs in a loop — needs a persistent process (terminal, tmux, Docker) |
295
278
 
296
279
  ### Create and Run
297
280
 
@@ -311,15 +294,15 @@ Autonomous prediction agents that run a continuous **think → analyze → decid
311
294
 
312
295
  ### Execution Modes
313
296
 
314
- | Mode | Description | Wallet Required |
315
- |------|-------------|-----------------|
297
+ | Mode | What happens | Wallet needed? |
298
+ |------|-------------|----------------|
316
299
  | **Alert-only** | Generates signals, no trades | No |
317
300
  | **Paper trading** | Simulated trades with realistic slippage model | No |
318
301
  | **Live trading** | On-chain execution via DEX router | Yes |
319
302
 
320
303
  ### Strategies
321
304
 
322
- | Strategy | Signals | Best For |
305
+ | Strategy | Signals | Best for |
323
306
  |----------|---------|----------|
324
307
  | **Momentum** | RSI + MACD + Bollinger + Funding | Short-term reversals |
325
308
  | **Trend-Following** | EMA Crossover + OBV + Fear & Greed | Swing trades |
@@ -356,21 +339,11 @@ vizzor wallet list # List managed wallets
356
339
 
357
340
  Wallets are encrypted with AES-256-GCM (scrypt N=2^18) and stored at `~/.vizzor/wallets/`.
358
341
 
359
- ### Backtesting
360
-
361
- Test strategies against historical data before going live:
362
-
363
- ```bash
364
- vizzor backtest --strategy momentum --pair BTCUSDT --from 2024-01-01 --to 2024-12-31
365
- ```
366
-
367
- Metrics: total return, win rate, profit factor, Sharpe ratio, max drawdown, equity curve.
368
-
369
342
  ---
370
343
 
371
344
  ## Web Dashboard
372
345
 
373
- Next.js 15 dashboard at `http://localhost:3001`.
346
+ Next.js 15 dashboard with real-time market data, AI chat, and full portfolio tracking.
374
347
 
375
348
  ### Setup
376
349
 
@@ -384,24 +357,26 @@ pnpm install
384
357
  pnpm dev
385
358
  ```
386
359
 
387
- Requires the API server running (`vizzor api start`).
360
+ Requires the API server running (`vizzor api start`). Available at `http://localhost:3001`.
388
361
 
389
362
  ### Pages
390
363
 
391
- - **AI Chat** conversational interface with streaming, tool call progress, trade action cards, conversation persistence
392
- - **Dashboard** — market overview, Fear & Greed, sentiment, regime, trending tokens, news, prediction accuracy tracker
393
- - **Markets** token analysis, wallet analyzer, on-chain intelligence
394
- - **Agents** create, monitor, start/stop agents with paper/live mode, portfolio chart, trade history
395
- - **Portfolio** positions, trade history, P&L metrics
396
- - **Notifications** real-time notification panel with prediction detail modals, price alert management, desktop push notifications
397
- - **Polymarket** edge scanner comparing ChronoVisor vs market odds, opportunity cards, position tracking, trade execution
398
- - **Settings** API keys and provider configuration
364
+ | Page | What you get |
365
+ |------|-------------|
366
+ | **AI Chat** | Conversational interface with streaming, tool call progress, trade action cards, conversation persistence |
367
+ | **Dashboard** | Market overview, Fear & Greed, sentiment, regime, trending tokens, news, prediction accuracy tracker |
368
+ | **Markets** | Token analysis, wallet analyzer, on-chain intelligence |
369
+ | **Agents** | Create, monitor, start/stop agents with paper/live mode, portfolio chart, trade history |
370
+ | **Portfolio** | Positions, trade history, P&L metrics |
371
+ | **Notifications** | Real-time notification panel with prediction detail modals, price alert management, desktop push notifications |
372
+ | **Polymarket** | Edge scanner comparing ChronoVisor vs market odds, opportunity cards, position tracking, trade execution |
373
+ | **Settings** | API keys and provider configuration |
399
374
 
400
375
  ---
401
376
 
402
- ## API Server
377
+ ## API
403
378
 
404
- REST API exposing all Vizzor capabilities programmatically.
379
+ REST API exposing all Vizzor capabilities programmatically. Full Swagger documentation at `/docs`.
405
380
 
406
381
  ### Setup
407
382
 
@@ -425,7 +400,7 @@ GET /v1/market/price/:symbol # Price
425
400
  GET /v1/market/prices?symbols= # Batch prices
426
401
  GET /v1/market/trending # Trending tokens
427
402
  GET /v1/market/fear-greed # Fear & Greed Index
428
- GET /v1/market/ml-health # ML sidecar status
403
+ GET /v1/market/ml-health # ChronoVisor engine status
429
404
  GET /v1/market/trenches # Trenches scanner
430
405
  GET /v1/chronovisor/:symbol # ChronoVisor prediction
431
406
  GET /v1/chronovisor/predictions # List all predictions
@@ -478,6 +453,41 @@ WS /ws # WebSocket real-time push
478
453
 
479
454
  ---
480
455
 
456
+ ## ChronoVisor Engine
457
+
458
+ The ChronoVisor engine is an optional Python-based prediction accelerator with 16 trained models that enhances Vizzor's predictions with ML. When unavailable, Vizzor falls back to its rule-based heuristics automatically — no setup required to start using Vizzor.
459
+
460
+ ### Quick setup
461
+
462
+ ```bash
463
+ # Interactive wizard — detects Docker or Python, installs deps
464
+ vizzor chronovisor setup
465
+
466
+ # Start the engine
467
+ vizzor chronovisor start
468
+
469
+ # Check health
470
+ vizzor chronovisor status
471
+ ```
472
+
473
+ Or via Docker:
474
+
475
+ ```bash
476
+ docker compose up chronovisor-engine
477
+ curl http://localhost:7200/health
478
+ ```
479
+
480
+ ### Requirements
481
+
482
+ | Component | Minimum |
483
+ |-----------|---------|
484
+ | **RAM** | 4 GB (8 GB recommended) |
485
+ | **Disk** | 1 GB for models |
486
+ | **Runtime** | Docker (recommended) or Python 3.11+ |
487
+ | **GPU** | Not required — CPU-based by default |
488
+
489
+ ---
490
+
481
491
  ## Configuration
482
492
 
483
493
  Config at `~/.vizzor/config.yaml`. Environment variables override file values.
@@ -525,25 +535,72 @@ polymarket:
525
535
 
526
536
  ---
527
537
 
528
- ## ML Sidecar (Optional)
538
+ ## Requirements
529
539
 
530
- Python FastAPI sidecar with 16 trained models for enhanced predictions. Falls back to heuristics when unavailable.
540
+ ### Hardware
531
541
 
532
- ### Setup
542
+ | Component | Minimum | Recommended |
543
+ |-----------|---------|-------------|
544
+ | **CPU** | 2 cores | 4+ cores |
545
+ | **RAM** | 2 GB | 4+ GB (8 GB if running ChronoVisor engine) |
546
+ | **Disk** | 500 MB | 2 GB (includes SQLite cache + ML models) |
547
+ | **Network** | Stable internet | Low latency to Binance/CoinGecko APIs |
548
+ | **GPU** | Not required | Not required (ML models are CPU-based) |
533
549
 
534
- ```bash
535
- docker compose up ml-sidecar
536
- curl http://localhost:8000/health
537
- ```
550
+ ### Software
538
551
 
539
- ### Requirements
552
+ | Dependency | Version | Notes |
553
+ |------------|---------|-------|
554
+ | **Node.js** | >= 20.0.0 | ES2022 target, ESM modules |
555
+ | **pnpm** | >= 8.0 | Recommended package manager (npm/yarn also work) |
556
+ | **Python** | 3.x | Required by `better-sqlite3` native build |
557
+ | **C++ compiler** | GCC / Clang / MSVC | Required by `better-sqlite3` native build |
558
+ | **Docker** | >= 24 | Optional — for ChronoVisor engine, PostgreSQL, web dashboard |
540
559
 
541
- | Component | Minimum |
542
- |-----------|---------|
543
- | **RAM** | 4 GB (8 GB recommended) |
544
- | **Disk** | 1 GB for models |
545
- | **Python** | 3.10+ |
546
- | **GPU** | Not required |
560
+ Works on **macOS**, **Linux**, and **Windows**.
561
+
562
+ ### API Keys
563
+
564
+ | Key | Required | Free Tier | Purpose |
565
+ |-----|----------|-----------|---------|
566
+ | `ANTHROPIC_API_KEY` | Yes (or use Ollama) | Pay-per-use | Claude AI — best prediction quality |
567
+ | `ETHERSCAN_API_KEY` | Recommended | Yes | Transaction history, contract source |
568
+ | `OPENAI_API_KEY` | No | Pay-per-use | GPT-4 as alternative provider |
569
+ | `GOOGLE_API_KEY` | No | Free tier | Gemini as alternative provider |
570
+ | `ALCHEMY_API_KEY` | No | Free tier | Premium RPC endpoints |
571
+ | `COINGECKO_API_KEY` | No | Free tier | Extended market data |
572
+ | `CRYPTOPANIC_API_KEY` | No | Free tier | News with sentiment |
573
+ | `DISCORD_TOKEN` | No | Free | Discord bot |
574
+ | `TELEGRAM_BOT_TOKEN` | No | Free | Telegram bot |
575
+ | `POLYMARKET_PRIVATE_KEY` | No | N/A | Polymarket CLOB trading (edge execution) |
576
+
577
+ **No API key at all?** Use Ollama with a local model — fully offline predictions (lower quality but free).
578
+
579
+ ---
580
+
581
+ ## Discord & Telegram
582
+
583
+ ### Discord Bot
584
+
585
+ Requires `DISCORD_TOKEN`. Enable the `MESSAGE_CONTENT` privileged intent in the [Discord Developer Portal](https://discord.com/developers/applications).
586
+
587
+ | Command | Description |
588
+ |---------|-------------|
589
+ | `/predict <symbol>` | AI prediction with signals |
590
+ | `/scan <address>` | Token security scan |
591
+ | `/trends` | Trending tokens |
592
+ | `/track <wallet>` | Wallet forensics |
593
+ | `/price <symbol>` | Live price |
594
+ | `/audit <contract>` | Contract audit |
595
+ | `/ico` | Upcoming launches |
596
+ | `/agent_create` | Create agent |
597
+ | *@mention* | AI-powered chat |
598
+
599
+ ### Telegram Bot
600
+
601
+ Requires `TELEGRAM_BOT_TOKEN`.
602
+
603
+ Same commands as Discord (`/predict`, `/scan`, `/trends`, `/track`, `/price`, `/audit`, `/ico`, `/agent_create`). Any text message triggers AI chat.
547
604
 
548
605
  ---
549
606
 
@@ -557,9 +614,11 @@ pnpm install
557
614
  pnpm dev # Dev mode (tsx)
558
615
  pnpm build # Build (tsup)
559
616
  pnpm lint # ESLint
617
+ pnpm format:check # Prettier check
560
618
  pnpm typecheck # TypeScript strict
561
619
  pnpm test # Vitest
562
620
  pnpm test:coverage # With coverage
621
+ pnpm test:integration # Integration tests (needs API keys)
563
622
  ```
564
623
 
565
624
  ### Tech Stack
@@ -573,7 +632,7 @@ pnpm test:coverage # With coverage
573
632
  | Blockchain | viem (EVM), Solana, Sui, Aptos, TON adapters |
574
633
  | Dashboard | Next.js 15, React 19, Tailwind CSS 4 |
575
634
  | Database | better-sqlite3 + PostgreSQL (pg) |
576
- | ML Sidecar | Python FastAPI, scikit-learn, PyTorch |
635
+ | ChronoVisor Engine | Python FastAPI, scikit-learn, PyTorch |
577
636
  | API | Fastify + Swagger/OpenAPI |
578
637
  | Bots | discord.js, grammY |
579
638
  | Build | tsup |
@@ -0,0 +1,31 @@
1
+ [project]
2
+ name = "vizzor-ml-sidecar"
3
+ version = "0.14.5"
4
+ description = "ML sidecar for Vizzor — LSTM, RF, Isolation Forest, Rug Detection, Wallet Classification, Sentiment NLP, Trend Scoring, TA Interpretation, Regime Detection, Strategy Bandit, Project Risk, Portfolio Optimization, Intent Classification"
5
+ requires-python = ">=3.11"
6
+ dependencies = [
7
+ "fastapi>=0.115.0",
8
+ "uvicorn[standard]>=0.34.0",
9
+ "torch>=2.5.0",
10
+ "scikit-learn>=1.6.0",
11
+ "psycopg2-binary>=2.9.10",
12
+ "numpy>=2.1.0",
13
+ "pandas>=2.2.0",
14
+ "joblib>=1.4.0",
15
+ "transformers>=4.40.0",
16
+ "xgboost>=2.0.0",
17
+ "hmmlearn>=0.3.0",
18
+ ]
19
+
20
+ [project.optional-dependencies]
21
+ dev = [
22
+ "pytest>=8.0.0",
23
+ "httpx>=0.28.0",
24
+ ]
25
+
26
+ [build-system]
27
+ requires = ["hatchling"]
28
+ build-backend = "hatchling.build"
29
+
30
+ [tool.hatch.build.targets.wheel]
31
+ packages = ["src"]
File without changes
File without changes