Active Mirror / Sovereign Mode

🔒 Sovereign Mode

True privacy. AI runs entirely on your device via WebLLM. Your conversations never leave your browser.

⟡ This is real sovereignty. Not "we promise to delete your data" — your data literally never leaves your device.

How It Works

  1. Toggle to Sovereign Mode — Click the mode toggle in the header
  2. Download Model (~2GB) — One-time download of Phi-3.5 Mini
  3. Run Locally — Model runs in your browser via WebGPU/WebLLM
  4. Zero Network — After download, works completely offline

Technology Stack

Component Technology
Model Phi-3.5-mini-instruct-q4f16_1-MLC
Runtime WebLLM (MLC AI)
Acceleration WebGPU (falls back to WASM)
Model Size ~2GB (quantized 4-bit)
Context Window 4096 tokens

Cloud vs Sovereign

Aspect ☁️ Cloud Mode 🔒 Sovereign Mode
Model Llama 3.3 70B Phi-3.5 Mini (3.8B)
Quality Higher (larger model) Good (optimized small model)
Speed Fast (~1-2s) Slower (~5-10s)
Privacy Data sent to Groq 100% local
Internet Required Not required (after download)
First Load Instant ~2GB download
Cost Free (Groq API) Free (your hardware)

Requirements

Implementation

// WebLLM Engine Singleton
class SovereignEngine {
    constructor() {
        this.engine = null;
        this.isReady = false;
    }

    async init(onProgress) {
        const webllm = await import('@mlc-ai/web-llm');
        this.engine = await webllm.CreateMLCEngine(
            'Phi-3.5-mini-instruct-q4f16_1-MLC',
            {
                initProgressCallback: (progress) => {
                    this.loadProgress = progress.progress || 0;
                    onProgress?.(progress);
                }
            }
        );
        this.isReady = true;
    }

    async generate(systemPrompt, userMessage) {
        const response = await this.engine.chat.completions.create({
            messages: [
                { role: 'system', content: systemPrompt },
                { role: 'user', content: userMessage }
            ],
            temperature: 0.7,
            max_tokens: 200
        });
        return response.choices[0]?.message?.content || '';
    }
}

Privacy Guarantees

In Sovereign Mode:

  • No API calls to any server
  • No telemetry or analytics
  • No conversation logging
  • Model runs in browser sandbox
  • Works completely offline

The only network request is the initial model download from the WebLLM CDN. After that, everything runs locally.

⟡ Try Sovereign Mode: activemirror.ai/twins → Toggle to "Sovereign"