Skip to content

Repository files navigation

VM AI Gateway & Dashboards

Public repository for the Lilith Gateway (port 8080) and Windows Port Console (port 8081) β€” dual-dashboard AI gateway system for Cyberpunk 2077 MSN Integration mod deployment and sovereign AI operations.

Overview

Dashboard Port Purpose
πŸͺ· Unified Dashboard 3000 React/Express SPA β€” full system overview, GitHub explorer, engine build, CP2077 mod dashboard, Kairos dreams, MSN knowledge graph
🜏 Lilith Gateway 8080 Central control plane β€” apps, VMs, system status, LLM proxy
πŸ–₯️ Windows Port Console 8081 Windows 11 VM management, cross-compile dashboard, WinRM/PowerShell bridge

Lilith Gateway (port 8080)

Location: /home/tehlappy/🜏 Lilith/_shared/gateway/

Features:

  • System Dashboard β€” CPU, memory, disk, load averages
  • App Launcher β€” Scan, search, and launch .desktop applications
  • VM Manager β€” Libvirt/QEMU VM control (start/stop/console/screenshot)
  • LLM Proxy β€” OpenAI-compatible /v1/chat/completions proxy to local Ollama
  • WebSocket β€” Real-time status updates
  • Static Frontend β€” Single-page dashboard at /

Key Endpoints:

  • GET /api/status β€” System status
  • GET /api/apps β€” Installed applications
  • GET /api/vms β€” VM inventory with live state
  • POST /api/vms/{action}/{vm_name} β€” VM control (start/shutdown/reboot/destroy)
  • POST /v1/chat/completions β€” LLM proxy (Ollama)
  • GET /v1/models β€” List local models
  • WS /ws β€” WebSocket for live updates

Desktop Launchers:

  • lilith-gateway.desktop β€” Start server + open browser
  • lilith-gateway-web.desktop β€” Open existing server in browser

Windows Port Console (port 8081)

Location: /home/tehlappy/Desktop/windows-port-console/

Features:

  • VM Dashboard β€” Create, start (headless/GUI), stop, power off, screenshot
  • Code Editor β€” Browser-based editor with syntax highlighting
  • Terminal β€” WebSocket terminal to VM via WinRM
  • File Browser β€” Cross-platform file sync (~/Desktop/cross-compile/)
  • WinRM/PowerShell Bridge β€” Execute PowerShell commands remotely
  • AI Assistant β€” Integrated LLM chat for porting assistance

Key Endpoints:

  • GET /api/vm/status β€” VM state + ISO info
  • POST /api/vm/start β€” Start VM (headless or GUI)
  • POST /api/vm/stop β€” Graceful or forced stop
  • POST /api/vm/screenshot β€” Live screenshot
  • POST /api/vm/create β€” Provision new Windows 11 VM
  • POST /api/winrm/execute β€” Run PowerShell via WinRM
  • WS /ws β€” Interactive terminal + code editor sync

Desktop Launcher:

  • windows11-qemu.desktop / windows11-spice.desktop β€” VM launch shortcuts

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     Lilith Gateway (8080)                       β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
β”‚  β”‚   Apps      β”‚  β”‚    VMs      β”‚  β”‚   System    β”‚             β”‚
β”‚  β”‚  Scanner    β”‚  β”‚  Manager    β”‚  β”‚   Status    β”‚             β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜             β”‚
β”‚         β”‚                β”‚                β”‚                     β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                     β”‚
β”‚                          β–Ό                                     β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                            β”‚
β”‚              β”‚   LLM Proxy         β”‚                            β”‚
β”‚              β”‚   (Ollama / 11434)  β”‚                            β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                              β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   Windows Port Console (8081)                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
β”‚  β”‚  VM Manager β”‚  β”‚ WinRM/Power β”‚  β”‚  Code Editorβ”‚             β”‚
β”‚  β”‚  (libvirt)  β”‚  β”‚   Shell     β”‚  β”‚  (Monaco)   β”‚             β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜             β”‚
β”‚         β”‚                β”‚                β”‚                     β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                     β”‚
β”‚                          β–Ό                                     β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                            β”‚
β”‚              β”‚  Windows 11 VM      β”‚                            β”‚
β”‚              β”‚  (QEMU/KVM, SPICE)  β”‚                            β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Quick Start

Lilith Gateway

cd /home/tehlappy/🜏\ Lilith/_shared/gateway
./launch-gateway.sh
# Opens http://localhost:8080

Windows Port Console

cd /home/tehlappy/Desktop/windows-port-console
source venv/bin/activate
python3 server.py
# Opens http://localhost:8081

Integration with MSN Cyberpunk Mod

Both dashboards integrate with the MSN Integration mod deployment pipeline:

  • Gateway API (/api/status) exposes mod repo status (dirty/clean, branch, commit)
  • Deployment scripts (deploy_all_mods.sh) trigger verification via Gateway
  • CET console commands verified through Gateway status endpoint
  • Desktop launchers provide one-click access to full deployment workflow

Deployment Verification via Gateway

curl -s http://localhost:8080/api/status | python3 -c "
import json, sys
d = json.load(sys.stdin)
for r in d.get('repositories', []):
    if any(k in r['name'].lower() for k in ['msn', 'gtc', 'cyberpunk']):
        print(f\"  {r['name']}: {r['status']} ({r['branch']}) dirty={r['dirty_files']}\")
"

Repository Structure

vm-ai-gateway/
β”œβ”€β”€ lilith-gateway/              # Lilith Gateway (port 8080)
β”‚   β”œβ”€β”€ gateway_server.py        # FastAPI server
β”‚   β”œβ”€β”€ gateway-server.py        # Legacy/alternate entry
β”‚   β”œβ”€β”€ scan_apps.py             # .desktop scanner
β”‚   β”œβ”€β”€ scan_vms.py              # libvirt VM scanner
β”‚   β”œβ”€β”€ vm_helper.sh             # VM helper scripts
β”‚   β”œβ”€β”€ inventory-refresh.sh     # Refresh apps/VMs
β”‚   β”œβ”€β”€ launch-gateway.sh        # Startup script
β”‚   β”œβ”€β”€ llm_providers.py         # LLM provider abstraction
β”‚   β”œβ”€β”€ apps.json                # Cached app inventory
β”‚   β”œβ”€β”€ vms.json                 # Cached VM inventory
β”‚   β”œβ”€β”€ static/                  # Frontend assets
β”‚   β”‚   β”œβ”€β”€ index.html
β”‚   β”‚   β”œβ”€β”€ app.js
β”‚   β”‚   └── style.css
β”‚   └── templates/               # Jinja2 templates
β”œβ”€β”€ windows-port-console/        # Windows Port Console (port 8081)
β”‚   β”œβ”€β”€ server.py                # FastAPI server
β”‚   β”œβ”€β”€ vm_manager.py            # libvirt VM operations
β”‚   β”œβ”€β”€ winrm_client.py          # WinRM/PowerShell client
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ start.sh
β”‚   β”œβ”€β”€ static/
β”‚   β”‚   β”œβ”€β”€ index.html
β”‚   β”‚   β”œβ”€β”€ app.js
β”‚   β”‚   └── style.css
β”‚   └── venv/                    # Python virtualenv
└── unified-dashboard/           # πŸͺ· Lilith Unified Dashboard (port 3000)
    β”œβ”€β”€ server/index.ts          # Express API server
    β”œβ”€β”€ src/                     # React + TypeScript frontend
    β”‚   β”œβ”€β”€ App.tsx              # Main app with 7 tabs
    β”‚   β”œβ”€β”€ components/          # React components
    β”‚   β”‚   β”œβ”€β”€ DashboardOverview.tsx
    β”‚   β”‚   β”œβ”€β”€ Header.tsx
    β”‚   β”‚   β”œβ”€β”€ LilithGatewaySection.tsx
    β”‚   β”‚   β”œβ”€β”€ BlackSpaceEngineSection.tsx
    β”‚   β”‚   β”œβ”€β”€ CyberpunkModSection.tsx
    β”‚   β”‚   β”œβ”€β”€ KairosDreamSection.tsx
    β”‚   β”‚   β”œβ”€β”€ KnowledgeGraphSection.tsx
    β”‚   β”‚   β”œβ”€β”€ GitHubProfileSection.tsx
    β”‚   β”‚   └── ...
    β”‚   β”œβ”€β”€ hooks/               # React hooks (system, github, engine, dreams)
    β”‚   β”œβ”€β”€ api.ts               # API client
    β”‚   └── types.ts             # TypeScript types
    β”œβ”€β”€ vite.config.ts            # Vite build config
    β”œβ”€β”€ package.json
    └── index.html

Dependencies

Lilith Gateway

  • Python 3.10+
  • FastAPI, Uvicorn
  • httpx (LLM proxy)
  • psutil (system stats)
  • libvirt-python (VM management)

Windows Port Console

  • Python 3.10+
  • FastAPI, Uvicorn
  • libvirt-python
  • pywinrm (WinRM client)
  • websockets

Configuration

Gateway Config

Environment variables in ~/.hermes/.env:

OLLAMA_URL=http://localhost:11434
GATEWAY_PORT=8080
GATEWAY_HOST=0.0.0.0

Windows Port Console

Edit server.py constants:

VM_NAME = "Windows11"
ISO_PATH = Path.home() / "ISOs" / "Win11_24H2.iso"
SHARED_DIR = Path.home() / "Desktop" / "cross-compile"
WINRM_PORT = 5985

Security Notes

  • Local-only by default β€” Both servers bind to 0.0.0.0 but expect LAN/localhost use
  • No auth on LLM proxy β€” Add x-api-key header validation if exposed
  • WinRM credentials β€” Passed per-request; not stored
  • WebSocket β€” No auth; restrict to trusted networks

Related Repositories

Repo Purpose
msn-integration Cyberpunk 2077 MSN Integration mod (205+ REDscripts)
gtc-mod-staging GTC mod stack staging & validation
lilith-frankenstein Unified Lilith sovereign AI framework
Sovereign-Core 10 Sephirothic agents + council bus
convergence-crucible Alchemical conflict resolution engine

License

MIT β€” Part of the Lilith Systems sovereign AI framework.

About

VM AI Gateway and Dashboards - Lilith Gateway (port 8080) and Windows Port Console (port 8081) for Cyberpunk 2077 MSN Integration mod deployment and sovereign AI operations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages