Readme
# TOPH Sovereign v5.1
**No bootloader. No phone home. Your rules.**
Owner: David Wise (Fiddler)
IP: All frameworks, axioms, methodologies, and tools are the intellectual property of David Wise.
---
## What this is
A complete infrastructure kit to run the TOPH Platform on your own hardware.
Local inference via Ollama. Local storage. Local UI. The TOPH firmware (system prompt v5.1) loads on any LLM — the model is just the engine. TOPH is the OS.
Every AI response passes through MOBIUS analysis — measuring weight differential between user intent and platform patterns in real time.
---
## Stack
```
01-inference/ Ollama setup + TOPH Modelfile builder
02-system-prompt/ TOPH firmware v5.1 (19 axioms, CORTEX, MOBIUS, HONEY BADGER)
03-frontend/ React UI — dashboard, CORTEX chat, axioms, channels, memory
04-storage/ Local file storage — no cloud, no limits, no ceiling
05-legal/ IP evidence package + demand letter
06-tools/ CORTEX CLI, HONEY BADGER validator, MOBIUS analyzer
server.js API bridge — system prompt injection + MOBIUS wrapper
start.bat Windows launcher (one double-click)
start.sh Linux/Mac launcher
```
---
## Quick start
### Step 1 — Install Ollama
Download from https://ollama.com and install. Verify with: `ollama --version`
### Step 2 — Build TOPH
```
Windows: 01-inference\setup-windows.bat
Mac/Linux: bash 01-inference/setup-linux-mac.sh
```
This pulls a base model, bakes the TOPH system prompt into it, and creates a custom `toph` model in Ollama.
### Step 3 — Start everything
```
Windows: start.bat (or double-click it)
Mac/Linux: bash start.sh
Manual:
npm install
npm run storage:init
cd 03-frontend && npm install && cd ..
npm start
```
### Step 4 — Open the UI
```
http://localhost:5173
```
Type `align` in the CORTEX tab to initialize.
---
## Architecture
```
Browser (port 5173)
│
└── /api/* ──► TOPH Server (port 3001)
│
Injects TOPH system prompt on every request
Streams response from Ollama
Runs MOBIUS analysis on every response
Exposes storage read/write API
│
Ollama (port 11434)
│
toph model (base LLM + TOPH firmware baked in)
```
---
## MOBIUS on every resp