# Phase — Open Verifiable Peer-to-Peer Compute (LUCID · LUMEN · PLASM) > Phase is an open, workload-neutral peer-to-peer verifiable compute substrate (Apache-2.0) with no accounts, no billing, and no vendor lock-in. It drives three cross-platform flagships running across macOS, Windows, and Linux from day one: LUCID (private, peer-to-peer AI inference and GPU pooling, AGPL-3.0-or-later), LUMEN (decentralized image generation and editing, in active qualification/preview), and PLASM (globally distributed, sandboxed WebAssembly compute, Apache-2.0). ## Architecture & Workloads - **Phase Substrate** (`Apache-2.0`, `#![deny(unsafe_code)]`, Rust edition 2021 / MSRV 1.89): Six publishable crates — `phase-identity` (persistent `0600` Ed25519 keys & PeerId binding), `phase-net` (`libp2p 0.57`, QUIC/TCP, Kademlia DHT, Circuit Relay v2, DCUtR, AutoNAT, optional fail-closed Tor SOCKS5), `phase-manifest` (generic `SignedManifest` with Ed25519 `verify_strict` + weak-key rejection), `phase-receipt` (generic `SignedReceipt` with `verify_strict`), `phase-protocol` (`Worker` trait, `JobSpec` including `Wasm`/`Inference`/`Embedding`/`ImageGen`, streaming `CommitmentAccumulator`), and `phase-artifact-server` (content-addressed HTTP Range server). The substrate is strictly workload-neutral; model, token, diffusion, and Ollama specifics stay out of `phase-*` crates. - **LUCID** (`AGPL-3.0-or-later`, `crates/lucidd` + `apps/lucid-desktop` Tauri v2 / Svelte 5): Primary managed engine and Desktop app for personal and Trusted-Circle AI inference. Runs open-weight GGUF and Apple Silicon MLX models locally or pooled across invited peers (`llama.cpp b12977`, Discrete Slice Quorum, trusted-source slice hydration, wire-deduplicated `/phase/shard-rpc/2.0.0`, slice-planned RPC pre-eviction), provides drop-in Ollama (`/api/*`) and OpenAI (`/v1/*`) APIs, Multimodal Vision, visual MCP `2026-07-28` host with cross-platform Chromium/Edge auto-launcher and optional SHA-256-pinned managed Node.js `v24.23.0` LTS, compact responsive Activity Monitor, and native Tor SOCKS5 / v3 `.onion` + TailsOS mode. Consuming capacity never requires contributing capacity; providing any workload is explicitly opt-in, workload-scoped, default-deny, and revocable. - **LUMEN** (`crates/lumend`, merged on `main` at `7e3547a` — Active Qualification / Preview): Decentralized, verifiable image generation and editing workload built on Phase (embedded in `lucidd` with default `share_images = false` while retaining the standalone `lumend` executable). Targets open diffusion pipelines (`SD 1.5`, `FLUX.3 Klein`, `Qwen-Image 2.1 Turbo`) and leased GPU diffusion (`/phase/shard-rpc/leased/1.0.0`, `SlotQueue::try_acquire_exclusive`), surfaced directly inside LUCID Desktop's clean UI. - **PLASM** (`Apache-2.0`, `crates/plasm`, `#![deny(unsafe_code)]`): Reference WebAssembly compute node (`plasmd` daemon with `plasmd compute` + `WasmtimeWorker` on Wasmtime 36 LTS + `phase-discover`, `phase-verify`, `phase-fetch` boot helpers), also embedded in `lucidd` on `main` (`7e3547a`) as a strictly local-only, default-disabled `wasm_engine` with an independent CPU pool and Tor fail-closed guards. Executes sandboxed `JobSpec::Wasm` workloads with signed Ed25519 `verify_strict` receipts. - **Phase Boot** (`boot/`, renewal track — no renewal release claimed yet): Dedicated portable, privacy-focused operating environment consuming the same verified Phase engine. ## Cross-Platform Support (Day One) - **macOS Apple Silicon (`aarch64`)**: Apple Developer ID notarized & stapled Desktop installer (`LUCID_0.2.0_aarch64.dmg`) + CLI (`scripts/install-lucid.sh --app` or CLI-only). GPU backends: Apple Silicon Metal (`llama.cpp b12977`) and native `MLX`. - **Windows (`x86_64`)**: Azure Artifact Signed per-user Desktop installer (`LUCID--x86_64-pc-windows-msvc-setup.exe`, zero UAC prompt, registers `lucid://` & `.lucidinvite`) + PowerShell CLI (`scripts/install-lucid.ps1`, compatible with Windows PowerShell 5.1 & PowerShell 7). GPU backends: NVIDIA CUDA and AMD Radeon / Intel Arc Vulkan. - **Linux (`x86_64` & `aarch64`)**: Desktop `.deb` packages + baseline `x86-64` CLI tarball (zero AVX2/BMI2 requirements; verified on 2012 Ivy Bridge) via `scripts/install-lucid.sh`. GPU backends: NVIDIA CUDA, AMD ROCm, Vulkan, and CPU. Unprivileged Cloud Relay setup via `scripts/setup-cloud-relay.sh`. - **Release Integrity**: Every GitHub Release publishes a unified `SHA256SUMS.txt` verified fail-closed before unpacking; in-app Software Updates and `lucidd update` verify SHA-256 and OS signatures. ## Current Maturity & Verification Boundaries - **Shipping today (`v0.2.0-rc42` beta) & merged on `main` (`df9df51`)**: All 6 Phase substrate crates, `plasm` (`plasmd` + Wasmtime 36 LTS + `plasmd compute`), `lumend` + `lucidd` multi-workload integration (`7e3547a`, 1,064 passing Rust tests: 989 workspace + 75 Desktop), and LUCID Desktop + CLI across macOS, Windows, and Linux — including default-deny Trusted Circles, Tier-1 Discrete Slice Quorum GPU pooling (`llama.cpp b12977`, trusted-source slice hydration, wire-deduplicated `/phase/shard-rpc/2.0.0`, slice-planned RPC pre-eviction), Multimodal Vision, MCP `2026-07-28` + browser auto-launcher + SHA-256-pinned Node.js `v24.23.0` LTS, compact Activity Monitor, native Tor SOCKS5 / v3 `.onion` mode, and verified physical runs (81 GB `deepseek-v4-flash:0731` across 3 heterogeneous Metal+CUDA+Metal GPUs at `94.5 MiB/s` wired CUDA weight transfer, `2.31-2.33 s` warm TTFT, `8.2-8.6 tok/s` decode; `126/126` remote peer-verified Ed25519 receipts; RTX 5060 Ti `50.9 tok/s` `c=2`; MLX `71.3 tok/s` over Cellular+VPN+Relay; physical two-Mac LUMEN `Qwen-Image 2.1 Turbo` `1024x1024`, `31+1` blocks, `255.445 s` with opt-in/revocation/re-enable recovery; local two-Mac WASM receipt parity). - **In active qualification / NOT yet in public release installers**: Signed LUMEN runtime distribution, cross-platform/Tor LUMEN qualification, distributed FLUX editing & fragment residency; Trusted Circle remote PLASM dispatch (integrated `wasm_engine` is strictly local-only and disabled by default); Phase Boot renewal; open/public peer pool & public rendezvous admission quotas (currently fail-closed); independent correctness-evidence validator seam; Tier-2 `UntrustedSpotChecked` sharding (fail-closed); Linux ARM64 VM qualification; multi-site relay redundancy; zero-push helper disk cache pre-seeding via `SignedFragmentManifest`. - **Exact cryptographic guarantees**: Signed Ed25519 receipts (`SignedReceipt` + streaming `CommitmentAccumulator` replay) prove **attributable transcript integrity** — that a specific `PeerId` signed the exact streamed bytes for a `SignedManifest`. - **Explicit non-claims & privacy limits**: Receipts do **not** prove absence of hidden weight quantization, model substitution, or hardware TEE/enclave isolation. Serving peers see plaintext prompts; callers requiring strict local secrecy must run locally (`X-Lucid-Local-Only: true`). Tier-1 Trusted-Circle GPU pooling carries SSH-equivalent trust among explicitly invited peers. ## Key Endpoints & Wire Protocols - **Local Loopback HTTP API**: `http://127.0.0.1:11435` (LUCID Desktop managed daemon default) or `http://127.0.0.1:11434` (standalone `lucidd` CLI default). Loopback-only by default. - **Ollama-Compatible Endpoints**: `/api/chat`, `/api/generate`, `/api/embed`, `/api/tags`, `/api/show`, `/api/ps`, `/api/version`. - **OpenAI-Compatible Endpoints**: `/v1/chat/completions` (streaming + native tool calling + vision), `/v1/embeddings`, `/v1/models`. - **Control & Telemetry API (Bearer-authenticated)**: `/api/lucid/*` (status, cluster rebalance & telemetry, peers, invites, policy, activity stream), five truthful `X-Lucid-Trust-Label` response values, and quorum-gated `503` + `Retry-After: 5`. - **MCP & Local Tools**: Visual Stdio MCP host implementing MCP `2026-07-28`, receipt-verified inline Tool Approval Cards, built-in Tor `.onion` DuckDuckGo Search & Fetch, Chromium/Edge CDP browser auto-launcher, and optional compile-time SHA-256-pinned Node.js `v24.23.0` LTS (disabled in Tor mode). - **Phase libp2p Wire Protocols** (Noise-encrypted over QUIC, TCP, Circuit Relay v2, DCUtR, or fail-closed Tor SOCKS5): `/phase/reachability/1.0.0`, `/phase/job-offer/1.0.0`, `/phase/job-relay/1.0.0`, `/phase/job-relay/2.0.0`, `/phase/blob/1.0.0`, `/phase/capacity-offer/1.0.0`, `/phase/shard-stage/1.0.0`, `/phase/shard-rpc/1.0.0`, `/phase/shard-rpc/2.0.0`, `/phase/shard-hydrate/1.0.0`. ## Full Documentation Bundle - [Complete Documentation Bundle (llms-full.txt)](https://phasebased.net/llms-full.txt): Single concatenated Markdown file combining canonical architecture/maturity facts, top-level page summaries, and the full raw Markdown of every documentation guide and protocol specification. ## Top-Level Pages - [Phase — Private AI on your own machines, shared compute when you need more](https://phasebased.net/): Install LUCID on your Mac, Windows PC, or Linux computer in a few clicks. Run private AI on hardware you own, pool GPUs with people you trust, create images with LUMEN, and run distributed compute with PLASM on the open Phase network. - [LUMEN — Private, Peer-to-Peer Image Generation & Editing · Phase](https://phasebased.net/lumen.html): Create and edit images privately on your own GPU or across trusted peers with SD 1.5, FLUX.3 Klein, and Qwen-Image 2.1 Turbo—built directly into LUCID on the Phase network. - [PLASM — Globally Distributed Sandboxed Compute · Phase](https://phasebased.net/plasm.html): Run simulations, parameter sweeps, and heavy sandboxed WebAssembly compute jobs across spare consumer machines worldwide with cryptographic receipts on the open Phase network. - [Get LUCID & Release Notes · Phase](https://phasebased.net/releases.html): Get LUCID for Mac, Windows, or Linux in under a minute. Signed installers, automatic safety checks, and full release notes. - [Research & Phase Boot · Phase](https://phasebased.net/research.html): Explore Phase's active research and upcoming tracks—including Phase Boot (a portable, privacy-focused bootable environment), safe open global compute pools, verifiable correctness, and distributed LUMEN and PLASM milestones. - [Security & Trust Model · Phase](https://phasebased.net/security.html): Plain-language privacy and safety overview for everyday users, followed by the exact technical enforcement details and honest limits for LUCID, LUMEN, and PLASM. - [Why Phase — Safe. Open. Global Compute.](https://phasebased.net/why.html): Why Phase exists: making powerful AI, image creation, and shared computing broadly accessible on everyday computers—without surrendering control of your data or hardware. - [Docs & Technical Reference](https://phasebased.net/help/): Searchable hub for all guides, API references, LUMEN, PLASM, and Phase wire protocols. ## Documentation (Raw Markdown & HTML) Each link below points directly to its pure raw Markdown mirror (`.md`) for zero-chrome ingestion; replace `.md` with `.html` for the rendered web page. ### Getting Started - [Install LUCID](https://phasebased.net/help/install.md): Download, verify, and auto-update LUCID v0.2.0-rc42 on macOS Apple Silicon (.dmg or CLI), Windows x86_64 (per-user signed CUDA/Vulkan Desktop setup + managed portable Node.js LTS, or PowerShell CLI), Linux x86_64 & aarch64 (.deb or baseline tarball), or build from source. (HTML: https://phasebased.net/help/install.html) - [Your first chat and joining a circle](https://phasebased.net/help/first-chat.md): Use the Chat-first Consumer UI with Multimodal Vision, offline Markdown/KaTeX/Mermaid/HTML rendering, opt-in local chat history (RAM-only in Tor/TailsOS), Tools & Skills Hub (MCP 2026-07-28, Web Browser auto-launcher, managed portable Node.js v24.23.0 LTS, Tor .onion search), compact resizable Activity Monitor with Pin toggle, Prompt Queue, and Context Window (8K–256K + q8_0). (HTML: https://phasebased.net/help/first-chat.html) - [Connect Open WebUI, Pi, OpenCode, Hermes & MCP](https://phasebased.net/help/apps-and-agents.md): Ready-to-paste setup for Open WebUI (native tool calling + Docker), Pi 1.6.1, OpenCode 2.4.2, Hermes Agent, and LUCID Desktop's MCP 2026-07-28 dual-era engine (persistent stdio + Streamable HTTP) and Web Browser MCP (Slim/Basic/All/Custom levels, Visible/Persistent/Attach/Headless modes). (HTML: https://phasebased.net/help/apps-and-agents.html) - [Models, Ollama import and sharing your GPU](https://phasebased.net/help/models-and-sharing.md): Read-only local GGUF discovery from Ollama and LM Studio, fast restarts with signed hash caching, permission-gated GPU sharing, verified P2P pulls with exact-offset resume, and pinning llama.cpp b12977. (HTML: https://phasebased.net/help/models-and-sharing.html) ### LUMEN & PLASM - [LUMEN: decentralized image generation and editing](https://phasebased.net/help/lumen.md): Active qualification preview of decentralized image generation and PNG reference-image editing on Phase (JobSpec::ImageGen, stable-diffusion.cpp sd-cli, SD 1.5 / FLUX.3 Klein / Qwen-Image 2.1 Turbo, SlotQueue exclusive GPU arbitration, and /phase/shard-rpc/leased/1.0.0). (HTML: https://phasebased.net/help/lumen.html) - [PLASM: globally distributed verifiable WebAssembly compute](https://phasebased.net/help/plasm.md): Apache-2.0 cross-platform WebAssembly compute daemon (plasmd, WasmtimeWorker on Wasmtime 36 LTS) enabling deterministic, sandboxed JobSpec::Wasm workloads with Ed25519 SignedManifests and SignedReceipts on consumer hardware. (HTML: https://phasebased.net/help/plasm.html) ### Operating & Pooling - [Operator policy and safety controls](https://phasebased.net/help/operator-policy.md): Complete reference for policy.toml and node.toml: hot-reload, SIGHUP, battery and thermal auto-pause, fair Prompt Queue concurrency caps, Slice Quorum and helper budget settings, and default-deny allowlists. (HTML: https://phasebased.net/help/operator-policy.html) - [Workers and GPU backends](https://phasebased.net/help/workers-and-backends.md): How llama.cpp b12977 (Metal, CUDA, ROCm, Vulkan, CPU), Apple Silicon MLX, and the echo dev worker isolate keys, strip co-tenant KV caches, run 180s prefill / 30s idle watchdogs, and report /api/ps residency. (HTML: https://phasebased.net/help/workers-and-backends.html) - [Pool GPUs across machines (Tier-1 Trusted-Circle)](https://phasebased.net/help/trusted-circle-sharding.md): Split large GGUF models automatically via Discrete Slice Quorum (~3 GiB uniform slices, quorum-gated availability, Auto/explicit helper budgets, idle repacking & Rebalance, Q8_0 KV cache) with trusted-source slice hydration and wire-dedup /phase/shard-rpc/2.0.0 over Noise. (HTML: https://phasebased.net/help/trusted-circle-sharding.html) - [Run a Cloud Relay and Tor/Tails guidance](https://phasebased.net/help/cloud-relay-and-privacy.md): Deploy an unprivileged Linux Circuit Relay v2 node on port 443 or 4001, see how roaming self-heals across QUIC, TCP, and relays, configure DNS TXT bootstrap, and run native fail-closed --tor-socks5 with v3 .onion relays and Tor DuckDuckGo .onion search. (HTML: https://phasebased.net/help/cloud-relay-and-privacy.html) ### APIs & CLI - [HTTP API reference](https://phasebased.net/help/http-api.md): Every Ollama /api/* and OpenAI /v1/* endpoint (including native tool calling, quorum 503 + Retry-After, and queue heartbeats), Bearer-authenticated /api/lucid/* control, cluster rebalance & telemetry endpoints, caps, and all five X-Lucid-Trust-Label values. (HTML: https://phasebased.net/help/http-api.html) - [CLI, subcommands and environment variables](https://phasebased.net/help/cli-and-env.md): Every lucidd subcommand (probe, models, peers, invite, join, update, bench, cluster), all daemon flags including --llama-kv-cache-q8, node.toml Slice Quorum keys, and runtime/desktop/signing environment variables. (HTML: https://phasebased.net/help/cli-and-env.html) ### Protocols & Architecture - [Phase network protocols and wire formats](https://phasebased.net/help/protocols.md): Wire specifications for all /phase/* libp2p protocols (including /phase/capacity-offer/1.0.0, slice hydration, and wire-dedup /phase/shard-rpc/2.0.0), fair FIFO SlotQueue heartbeats, self-healing roaming, Kademlia/Relay v2/DCUtR/Ping/AutoNAT behaviours, and all ten DHT key namespaces. (HTML: https://phasebased.net/help/protocols.html) - [Cryptography, receipts and verification](https://phasebased.net/help/cryptography-and-receipts.md): Ed25519 NodeIdentity and PeerId binding, SignedManifest, SignedReceipt, streaming CommitmentAccumulator replay, composite shard chains, DHT rollback and equivocation protection, and verification limits. (HTML: https://phasebased.net/help/cryptography-and-receipts.html) - [Workspace architecture, crates and Plasm](https://phasebased.net/help/architecture-and-crates.md): The Apache-2.0 Phase substrate powering three flagships (LUCID AGPL-3.0-or-later, LUMEN merged on main in active qualification, PLASM Apache-2.0) and Phase Boot renewal, all nine Rust crates (including lumend), #![deny(unsafe_code)], Wasmtime 36 LTS, Desktop security boundaries, and release signing. (HTML: https://phasebased.net/help/architecture-and-crates.html)