Decentralized, low cost, censorship-resistant AI inference that runs alongside Quai mining over a distributed network of commodity GPUs
Rust
0
148 commits
updated Jun 18, 2026
Verified AI compute mesh powered by Quai. Mine QUAI when idle. Serve verified dense-model inference when scheduled.
Quai Intelligence is a decentralized inference network optimized for dense-model serving. Workers mine QUAI by default, pause for paid inference work when scheduled, and prove correctness with Terkle-backed verification. Optional privacy modes keep the architecture usable for more sensitive workloads without making confidentiality claims the system cannot support on anonymous public GPUs.
Rust is the canonical backend direction for Quai Intelligence. New coordinator, miner, edge, P2P, verification, scheduling, and payment work belongs in the Rust workspace under rust/.
The older Go backend under cmd/, internal/, and pkg/ remains in the repository as a legacy/reference implementation until the Rust path proves parity for public-fast inference, miner registration, route issuance, verification, and local miner lifecycle. After the quarantine gate passes it is archived under archive/legacy-go/<commit>/. It should not receive new product features.
Python remains a narrow model-runtime adapter layer for SGLang, RWKV, vLLM, tokenizer support, and benchmarks. Routing, payment, session authorization, verification policy, and miner reputation belong in Rust.
See docs/RUST_CANONICAL_BACKEND.md for the migration policy and parity checklist.
Quai Intelligence is:
Quai Intelligence is not:
┌─────────────────────────────────────────────────────────────┐
│ Quai Intelligence │
├─────────────────────────────────────────────────────────────┤
│ │
│ Users Coordinator │
│ ───── ─────────── │
│ Pay Qi for ───────► Routes requests ───────► │
│ inference to GPU miners │
│ │
│ Miners │
│ ────── │
│ Run models, earn Qi │
│ Distributed globally │
│ │
└─────────────────────────────────────────────────────────────┘
quai-intelligence is the active home of the miner product.
rust/quai-miner/ is the canonical worker implementation targetrust/quai-coordinator/, rust/quai-p2p/, rust/quai-terkle/, and rust/quai-edge/ are the canonical backend crates for control plane, data plane, verification, and edge-private routinginternal/miner/ contains the legacy Go worker used as reference material during Rust parity workkawpowminer/ is the vendored low-level mining runtime fork used by the worker0xalank/kawpowminerquai-miner-inference are not the ongoing implementation targetIn practice this means:
kawpowminer forkvllm, coordinator connectivity, API serving, route issuance, and verification orchestration is implemented in Rust| Platform | Download |
|---|---|
| macOS | Quai-Intelligence-0.1.0.dmg |
| Windows | Quai-Intelligence-0.1.0.msi |
| Linux | Quai-Intelligence-0.1.0.AppImage |
# Clone
git clone https://github.com/dominant-strategies/quai-intelligence
cd quai-intelligence
# Build canonical Rust backend
make build
# Build Rust release artifacts and desktop sidecars
make build-all
# Build desktop frontend
(cd app && npm ci && npm run build)
# Legacy Go reference build, if needed during migration
RUN_LEGACY_GO_TESTS=1 make build-go
quai-intelligence/
├── rust/ # Canonical backend workspace
│ ├── quai-core/ # Shared types, config, model registry
│ ├── quai-proto/ # Rust protocol definitions
│ ├── quai-p2p/ # P2P tensor transport and compression
│ ├── quai-terkle/ # Terkle/KZG verification
│ ├── quai-coordinator/ # Canonical coordinator
│ ├── quai-miner/ # Canonical miner/worker
│ └── quai-edge/ # Trusted edge service
│
├── app/ # Desktop application
│ ├── src/ # React UI components
│ │ ├── components/
│ │ │ ├── Dashboard.tsx # Main dashboard
│ │ │ ├── GlobeNetwork.tsx # 3D world map
│ │ │ ├── GpuMonitor.tsx # GPU performance charts
│ │ │ ├── MiningPanel.tsx # Mining statistics
│ │ │ ├── ModelsPanel.tsx # Model management
│ │ │ └── SettingsPanel.tsx # Configuration
│ │ └── hooks/
│ ├── src-tauri/ # Tauri shell and sidecar management
│ │ ├── src/main.rs # System integration
│ │ └── binaries/ # Bundled Rust sidecars for the current build target
│ └── package.json
│
├── cmd/ # Legacy Go entrypoints
│ ├── coordinator/ # Network coordinator reference
│ └── miner/ # GPU miner reference
│
├── internal/ # Legacy Go packages
│ ├── coordinator/ # Legacy routing/scheduling reference
│ ├── miner/ # Legacy worker/local-runtime reference
│ ├── p2p/ # Legacy data-plane transport reference
│ └── sglang/ # Legacy sharded-runtime client reference
│
├── kawpowminer/ # Owned mining runtime fork vendored into this repo
│
├── docker/ # Container configs
├── scripts/ # Build & release scripts
├── Makefile # Build commands
└── go.mod
Coordinator — Routes inference requests to available miners
rust/quai-coordinator/cmd/coordinator/ and internal/coordinator/Miner — Runs on GPU machines
rust/quai-miner/cmd/miner/ and internal/miner/kawpowminer runtimeDesktop App — User interface
Large models are split across multiple GPUs:
User Request
│
▼
┌─────────────┐
│ Coordinator │
└─────────────┘
│
├──────────────┬──────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Miner A │──►│ Miner B │──►│ Miner C │
│ Layers │ │ Layers │ │ Layers │
│ 0-20 │ │ 21-40 │ │ 41-60 │
└─────────┘ └─────────┘ └─────────┘
│
▼
Response
The Rust miner reads runtime settings from CLI flags or environment variables:
QUAI_WALLET=0x...
QUAI_WALLET_PRIVATE_KEY=...
QUAI_COORDINATOR=coordinator.quai.network:9090
QUAI_MODEL=Qwen/Qwen2.5-7B-Instruct
QUAI_GPU_DEVICES=0
The miner supports any Quai-compatible stratum pool. Default is StratumX.
| Region | Endpoint |
|---|---|
| US | stratum+tcp://mining-us.stratumx.org:3333 |
| EU | stratum+tcp://mining-eu.stratumx.org:3333 |
| Singapore | stratum+tcp://mining-sg.stratumx.org:3333 |
| Hong Kong | stratum+tcp://mining-hk.stratumx.org:3333 |
| India | stratum+tcp://mining-in.stratumx.org:3333 |
| Iceland | stratum+tcp://mining-is.stratumx.org:3333 |
| Brazil | stratum+tcp://mining-bz.stratumx.org:3333 |
| Poland | stratum+tcp://mining-po.stratumx.org:3333 |
# Enable the Rust miner's local idle-mining sidecar.
# The pool URL is passed directly to kawpowminer as its -P value.
cd rust && cargo run -p quai-miner -- \
--mode local \
--model Qwen/Qwen2.5-7B-Instruct \
--mine-when-idle \
--kawpow-bin /path/to/kawpowminer \
--mining-pool-url stratum+tcp://0xYourAddress.worker@mining-eu.stratumx.org:3333
# Or through environment variables
QUAI_MINE_WHEN_IDLE=true
QUAI_KAWPOW_BIN=/path/to/kawpowminer
QUAI_MINING_POOL_URL=stratum+tcp://0xYourAddress.worker@mining-us.stratumx.org:3333
The coordinator exposes an OpenAI-compatible API:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen/Qwen2.5-7B-Instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'
| Model | Size | VRAM Required |
|---|---|---|
| Qwen 2.5 7B | 14 GB | 13 GB |
| Llama 3.3 70B | 126 GB | 126 GB (multi-GPU) |
| Mixtral 8x7B | 87 GB | 87 GB |
| DeepSeek V3 | 1.1 TB | Distributed |
# Run coordinator locally
cd rust && cargo run -p quai-coordinator -- --http-addr 0.0.0.0:8080 --grpc-addr 0.0.0.0:9090
# Run miner (connects to coordinator)
cd rust && cargo run -p quai-miner -- \
--mode coordinator \
--coordinator localhost:9090 \
--wallet 0xYourAddress \
--wallet-private-key $QUAI_WALLET_PRIVATE_KEY \
--model Qwen/Qwen2.5-7B-Instruct
# Run a standalone full-model local gateway
# Local transformer models use vLLM by default; RWKV/coordinator flows use SGLang.
cd rust && cargo run -p quai-miner -- \
--mode local \
--inference-backend auto \
--model Qwen/Qwen2.5-7B-Instruct \
--local-host 127.0.0.1 \
--local-port 18080
# Run desktop app in dev mode
cd app && npm run dev
# Run with Tauri (native window)
cd app && npm run tauri dev
# Build all platforms
make release
# Outputs:
# - dist/quai-miner-x86_64-unknown-linux-gnu
# - dist/quai-coordinator-x86_64-unknown-linux-gnu
# - dist/Quai-Intelligence-0.1.0-x86_64.dmg (macOS)
# - dist/Quai-Intelligence-0.1.0-x86_64.msi (Windows)
# - dist/Quai-Intelligence-0.1.0-x86_64.AppImage (Linux)
See CONTRIBUTING.md for guidelines.
MIT License — see LICENSE
121 commits
27 commits
Rust
28.9%
Shell
20.9%
C++
19.1%
Go
18.5%
Python
6.1%
TypeScript
1.8%
C
1.6%
CMake
1.4%
Cuda
1.2%
Decentralized, low cost, censorship-resistant AI inference that runs alongside Quai mining over a distributed network of commodity GPUs
Rust
0
148 commits
updated Jun 18, 2026
Verified AI compute mesh powered by Quai. Mine QUAI when idle. Serve verified dense-model inference when scheduled.
Quai Intelligence is a decentralized inference network optimized for dense-model serving. Workers mine QUAI by default, pause for paid inference work when scheduled, and prove correctness with Terkle-backed verification. Optional privacy modes keep the architecture usable for more sensitive workloads without making confidentiality claims the system cannot support on anonymous public GPUs.
Rust is the canonical backend direction for Quai Intelligence. New coordinator, miner, edge, P2P, verification, scheduling, and payment work belongs in the Rust workspace under rust/.
The older Go backend under cmd/, internal/, and pkg/ remains in the repository as a legacy/reference implementation until the Rust path proves parity for public-fast inference, miner registration, route issuance, verification, and local miner lifecycle. After the quarantine gate passes it is archived under archive/legacy-go/<commit>/. It should not receive new product features.
Python remains a narrow model-runtime adapter layer for SGLang, RWKV, vLLM, tokenizer support, and benchmarks. Routing, payment, session authorization, verification policy, and miner reputation belong in Rust.
See docs/RUST_CANONICAL_BACKEND.md for the migration policy and parity checklist.
Quai Intelligence is:
Quai Intelligence is not:
┌─────────────────────────────────────────────────────────────┐
│ Quai Intelligence │
├─────────────────────────────────────────────────────────────┤
│ │
│ Users Coordinator │
│ ───── ─────────── │
│ Pay Qi for ───────► Routes requests ───────► │
│ inference to GPU miners │
│ │
│ Miners │
│ ────── │
│ Run models, earn Qi │
│ Distributed globally │
│ │
└─────────────────────────────────────────────────────────────┘
quai-intelligence is the active home of the miner product.
rust/quai-miner/ is the canonical worker implementation targetrust/quai-coordinator/, rust/quai-p2p/, rust/quai-terkle/, and rust/quai-edge/ are the canonical backend crates for control plane, data plane, verification, and edge-private routinginternal/miner/ contains the legacy Go worker used as reference material during Rust parity workkawpowminer/ is the vendored low-level mining runtime fork used by the worker0xalank/kawpowminerquai-miner-inference are not the ongoing implementation targetIn practice this means:
kawpowminer forkvllm, coordinator connectivity, API serving, route issuance, and verification orchestration is implemented in Rust| Platform | Download |
|---|---|
| macOS | Quai-Intelligence-0.1.0.dmg |
| Windows | Quai-Intelligence-0.1.0.msi |
| Linux | Quai-Intelligence-0.1.0.AppImage |
# Clone
git clone https://github.com/dominant-strategies/quai-intelligence
cd quai-intelligence
# Build canonical Rust backend
make build
# Build Rust release artifacts and desktop sidecars
make build-all
# Build desktop frontend
(cd app && npm ci && npm run build)
# Legacy Go reference build, if needed during migration
RUN_LEGACY_GO_TESTS=1 make build-go
quai-intelligence/
├── rust/ # Canonical backend workspace
│ ├── quai-core/ # Shared types, config, model registry
│ ├── quai-proto/ # Rust protocol definitions
│ ├── quai-p2p/ # P2P tensor transport and compression
│ ├── quai-terkle/ # Terkle/KZG verification
│ ├── quai-coordinator/ # Canonical coordinator
│ ├── quai-miner/ # Canonical miner/worker
│ └── quai-edge/ # Trusted edge service
│
├── app/ # Desktop application
│ ├── src/ # React UI components
│ │ ├── components/
│ │ │ ├── Dashboard.tsx # Main dashboard
│ │ │ ├── GlobeNetwork.tsx # 3D world map
│ │ │ ├── GpuMonitor.tsx # GPU performance charts
│ │ │ ├── MiningPanel.tsx # Mining statistics
│ │ │ ├── ModelsPanel.tsx # Model management
│ │ │ └── SettingsPanel.tsx # Configuration
│ │ └── hooks/
│ ├── src-tauri/ # Tauri shell and sidecar management
│ │ ├── src/main.rs # System integration
│ │ └── binaries/ # Bundled Rust sidecars for the current build target
│ └── package.json
│
├── cmd/ # Legacy Go entrypoints
│ ├── coordinator/ # Network coordinator reference
│ └── miner/ # GPU miner reference
│
├── internal/ # Legacy Go packages
│ ├── coordinator/ # Legacy routing/scheduling reference
│ ├── miner/ # Legacy worker/local-runtime reference
│ ├── p2p/ # Legacy data-plane transport reference
│ └── sglang/ # Legacy sharded-runtime client reference
│
├── kawpowminer/ # Owned mining runtime fork vendored into this repo
│
├── docker/ # Container configs
├── scripts/ # Build & release scripts
├── Makefile # Build commands
└── go.mod
Coordinator — Routes inference requests to available miners
rust/quai-coordinator/cmd/coordinator/ and internal/coordinator/Miner — Runs on GPU machines
rust/quai-miner/cmd/miner/ and internal/miner/kawpowminer runtimeDesktop App — User interface
Large models are split across multiple GPUs:
User Request
│
▼
┌─────────────┐
│ Coordinator │
└─────────────┘
│
├──────────────┬──────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Miner A │──►│ Miner B │──►│ Miner C │
│ Layers │ │ Layers │ │ Layers │
│ 0-20 │ │ 21-40 │ │ 41-60 │
└─────────┘ └─────────┘ └─────────┘
│
▼
Response
The Rust miner reads runtime settings from CLI flags or environment variables:
QUAI_WALLET=0x...
QUAI_WALLET_PRIVATE_KEY=...
QUAI_COORDINATOR=coordinator.quai.network:9090
QUAI_MODEL=Qwen/Qwen2.5-7B-Instruct
QUAI_GPU_DEVICES=0
The miner supports any Quai-compatible stratum pool. Default is StratumX.
| Region | Endpoint |
|---|---|
| US | stratum+tcp://mining-us.stratumx.org:3333 |
| EU | stratum+tcp://mining-eu.stratumx.org:3333 |
| Singapore | stratum+tcp://mining-sg.stratumx.org:3333 |
| Hong Kong | stratum+tcp://mining-hk.stratumx.org:3333 |
| India | stratum+tcp://mining-in.stratumx.org:3333 |
| Iceland | stratum+tcp://mining-is.stratumx.org:3333 |
| Brazil | stratum+tcp://mining-bz.stratumx.org:3333 |
| Poland | stratum+tcp://mining-po.stratumx.org:3333 |
# Enable the Rust miner's local idle-mining sidecar.
# The pool URL is passed directly to kawpowminer as its -P value.
cd rust && cargo run -p quai-miner -- \
--mode local \
--model Qwen/Qwen2.5-7B-Instruct \
--mine-when-idle \
--kawpow-bin /path/to/kawpowminer \
--mining-pool-url stratum+tcp://0xYourAddress.worker@mining-eu.stratumx.org:3333
# Or through environment variables
QUAI_MINE_WHEN_IDLE=true
QUAI_KAWPOW_BIN=/path/to/kawpowminer
QUAI_MINING_POOL_URL=stratum+tcp://0xYourAddress.worker@mining-us.stratumx.org:3333
The coordinator exposes an OpenAI-compatible API:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen/Qwen2.5-7B-Instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'
| Model | Size | VRAM Required |
|---|---|---|
| Qwen 2.5 7B | 14 GB | 13 GB |
| Llama 3.3 70B | 126 GB | 126 GB (multi-GPU) |
| Mixtral 8x7B | 87 GB | 87 GB |
| DeepSeek V3 | 1.1 TB | Distributed |
# Run coordinator locally
cd rust && cargo run -p quai-coordinator -- --http-addr 0.0.0.0:8080 --grpc-addr 0.0.0.0:9090
# Run miner (connects to coordinator)
cd rust && cargo run -p quai-miner -- \
--mode coordinator \
--coordinator localhost:9090 \
--wallet 0xYourAddress \
--wallet-private-key $QUAI_WALLET_PRIVATE_KEY \
--model Qwen/Qwen2.5-7B-Instruct
# Run a standalone full-model local gateway
# Local transformer models use vLLM by default; RWKV/coordinator flows use SGLang.
cd rust && cargo run -p quai-miner -- \
--mode local \
--inference-backend auto \
--model Qwen/Qwen2.5-7B-Instruct \
--local-host 127.0.0.1 \
--local-port 18080
# Run desktop app in dev mode
cd app && npm run dev
# Run with Tauri (native window)
cd app && npm run tauri dev
# Build all platforms
make release
# Outputs:
# - dist/quai-miner-x86_64-unknown-linux-gnu
# - dist/quai-coordinator-x86_64-unknown-linux-gnu
# - dist/Quai-Intelligence-0.1.0-x86_64.dmg (macOS)
# - dist/Quai-Intelligence-0.1.0-x86_64.msi (Windows)
# - dist/Quai-Intelligence-0.1.0-x86_64.AppImage (Linux)
See CONTRIBUTING.md for guidelines.
MIT License — see LICENSE
121 commits
27 commits
Rust
28.9%
Shell
20.9%
C++
19.1%
Go
18.5%
Python
6.1%
TypeScript
1.8%
C
1.6%
CMake
1.4%
Cuda
1.2%