Attachments forums

Re: 🖥๏ธ Creating your own HomeLAB for trading

Pelle, Sun Mar 08, 2026 9:15 am

tried to make an Antigravity version of XARD's homeLab. looks like this
XARD: This is great -- You download the shared zip file
Antigravity creates the HomeLAB for you and then you decide what you want to run on it -- FANTASTIC
Once you have your HomeLAB the way that you want you can then say to Antigravity --
"Create a zipped share file (excluding .env etc) so I can share with the community"
And you just upload the file with an image of your HomeLAB and everyone is on the same page


# HomeLAB v3.5 โ€” How It Works

## Overview
HomeLAB is a Python desktop application that orchestrates 6 AI models through a single Antigravity API, with real-time market data feeds and a shared memory system called the Neural Bridge.

---

## ๐Ÿ—๏ธ Architecture

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ HomeLAB GUI โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚Gemini Hi โ”‚ โ”‚Gemini Lo โ”‚ โ”‚Gem Flash โ”‚ โ† Buttons โ”‚
โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚
โ”‚ โ”‚Cl.Sonnet โ”‚ โ”‚Cl.Opus โ”‚ โ”‚ GPT-OSS โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚
โ”‚ [๐Ÿ“ฐ News] [๐Ÿ‹ Whales] [๐Ÿ›๏ธ Macro] [๐Ÿง  Intel] โ”‚
โ”‚ โ† Scrolling Ticker Banners (clickable) โ”‚
โ”‚ โ”‚
โ”‚ [Input Box] โ†’ Type prompt here โ”‚
โ”‚ [Log Area] โ†’ Model responses appear here โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ORCHESTRATOR โ”‚
โ”‚ โ”‚
โ”‚ 1. Collects live prices (CoinGecko) โ”‚
โ”‚ 2. Reads Blackboard (shared brain) โ”‚
โ”‚ 3. Fetches news/whale/intel data โ”‚
โ”‚ 4. Builds system prompt with ALL โ”‚
โ”‚ context injected โ”‚
โ”‚ 5. Sends POST to Antigravity API โ”‚
โ”‚ 6. Writes response to Blackboard โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Antigravity API (local service) โ”‚
โ”‚ Routes to correct model by ID โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿ“‚ File Structure

| File | Purpose |
|------|---------|
| `run_lab.py` | Entry point โ€” launches the GUI |
| `src/config.py` | All settings: models, API key, endpoints, ticker config |
| `src/orchestrator.py` | Brain โ€” API calls, live data injection, memory management |
| `src/gui.py` | User interface โ€” buttons, tickers, input/output |
| `src/utils.py` | Utilities โ€” price feeds, news, logging, backups |
| `src/scrapers.py` | Telegram channel scrapers for intel ticker |
| `.env` | Your `ANTIGRAVITY_API_KEY` (not committed to git) |
| `BLACKBOARD.md` | Neural Bridge shared memory (auto-managed) |

---

## ๐Ÿ”„ What Happens When You Click a Model Button

1. **You type** a prompt in the input box
2. **You click** one of the 6 model buttons (e.g., Gemini High)
3. **Orchestrator collects context:**
- Your prompt
- Live prices (BTC $67K, Gold $5,172, DAX 23,591, etc.)
- Latest news headlines from RSS feeds
- Whale alerts from Telegram
- Fed/Macro press releases
- Sovereign intelligence signals
- Neural Bridge (BLACKBOARD.md) shared state
- Attached PDF content (if any)
4. **Sends everything** as a single API call to the Antigravity service
5. **Response** appears in the log area
6. **Neural Bridge updated** โ€” other models can see this result

---

## ๐Ÿ“ก Live Data Sources

### Prices (refreshed every 2 minutes)
| Asset | Source |
|-------|--------|
| BTC, ETH | CoinGecko API (free) |
| Gold (PAXG, XAUT) | CoinGecko API |
| Gold/Silver (Spot) | metals.dev API |
| DAX 40 | Yahoo Finance |
| Fear & Greed Index | alternative.me |

### Tickers (scrolling banners)
| Ticker | Source | Refresh |
|--------|--------|---------|
| ๐Ÿ“ฐ News | CoinTelegraph, Kitco, CNBC, CME RSS | 30 min |
| ๐Ÿ‹ Whales | Telegram @whale_alert | 5 min |
| ๐Ÿ›๏ธ Macro | White House + Federal Reserve | 60 min |
| ๐Ÿง  Intel | 7 Telegram channels + AI sentiment | 5 min |

> **Clicking any headline** auto-sends it to Gemini Flash for deep analysis.

---

## ๐Ÿง  Neural Bridge (Shared Brain)

The **BLACKBOARD.md** file acts as shared memory between all models:
- Every model **reads** the Blackboard before answering
- Every model **writes** its response summary to the Blackboard
- This means Claude can see what Gemini said, and GPT-OSS can see what Claude said
- Use **๐Ÿงน Clear Blackboard** to archive and start fresh

---

## ๐ŸŽ™๏ธ Voice Input (Optional)

- Uses **Whisper large-v3-turbo** for speech-to-text
- Click **๐ŸŽ™๏ธ Hold to Talk** โ†’ speak โ†’ click again to stop
- Transcribed text goes into the input box
- Requires `sounddevice` and `faster-whisper` dependencies

---

## โšก Quick Start

```bash
# 1. Set your API key
echo ANTIGRAVITY_API_KEY=your_key > .env

# 2. Install dependencies
pip install -r requirements.txt

# 3. Ensure Antigravity service is running

# 4. Launch HomeLAB
python run_lab.py
```
All files in topic