Private & Offline
SPEC-REV-2026.05  ·  LOCAL AI STACK

Private AI Stack
System Specification

A fully air-gapped local inference environment for high-performance agentic coding and general AI workflows. No cloud. No telemetry. No API keys.

Status ● Approved
Revised May 2026
Platform Apple Silicon / macOS
Inference 100% Local · MLX
🔒
Private — Fully Offline Build

All inference runs entirely on local hardware. No data leaves the machine — prompts, code, and outputs are never transmitted to external servers. This architecture is suited for proprietary codebases, sensitive client work, FERPA/HIPAA-adjacent contexts, or any environment where data sovereignty is non-negotiable.

No API Keys No Cloud Calls No Telemetry Air-Gap Ready Apache 2.0 Models
01

Hardware

Apple Silicon's unified memory architecture eliminates the VRAM bottleneck that constrains NVIDIA-based systems. The CPU, GPU, and Neural Engine share the same high-bandwidth memory pool, allowing large models to run at full GPU speed regardless of parameter count. The M4/M5 Max chips are the only laptop-class silicon capable of running 27–31B parameter models at interactive speeds while simultaneously running a full Xcode development environment.

💻
MacBook Pro M4 Max
Entry Config

The M4 Max provides excellent local LLM throughput at a lower price point. The 96 GB configuration runs Q8_0 models comfortably alongside Xcode, though memory headroom is tighter during heavy Simulator sessions.

ChipApple M4 Max
Unified RAM96 GB
Bandwidth546 GB/s
Storage4 TB SSD
Est. Q8 tok/s~55–60 tok/s
Xcode headroom~40–50 GB free
💻
MacBook Pro M5 Max
Recommended

The M5 Max with 128 GB is the definitive portable LLM workstation in 2026. The 614 GB/s bandwidth nearly doubles inference speed over the M4 Max, and 128 GB provides maximum headroom to run two models or a model plus heavy IDE usage simultaneously.

ChipApple M5 Max
Unified RAM96 – 128 GB
Bandwidth614 GB/s
Storage4 TB SSD
Est. Q8 tok/s~65–70 tok/s
Xcode headroom60–90 GB free
💾
4 TB SSD Storage
Required

Large model files demand substantial local storage. A Q8_0 27B model occupies ~29 GB; a 31B model ~33 GB. Additional quantization variants (Q4, Q6) for testing, plus future model downloads and project data, accumulate quickly. 4 TB provides sufficient runway without managing storage constraints.

Qwen3.6-27B Q8_0~29 GB
Gemma4-31B Q8_0~33 GB
Alt quant variants~20–40 GB
Future models (est.)200–400 GB
Remaining for dev~3.5 TB
02

Runtime Software

Both runtimes are free and open source, run entirely offline after initial model download, and expose an OpenAI-compatible API on localhost — meaning any Xcode AI plugin, Claude Code, Cursor, or custom Swift tooling can connect without modification. Choose one based on workflow preference; they can coexist on the same machine.

🖥
LM Studio
GUI · Recommended

A native macOS desktop app with a polished GUI for browsing, downloading, and switching models. Supports MLX-native builds with a simple filter, exposes a local server at port 1234, and includes a built-in chat interface for rapid testing. Best choice for users who prefer visual tooling over the terminal.

LicenseFree / Open Source
MLX Support✓ Native filter
API Portlocalhost:1234
API FormatOpenAI-compatible
Installlmstudio.ai
⌘
Ollama
CLI · Power Users

A lightweight CLI daemon that manages model downloads and inference via a single terminal command. Now ships with an MLX backend on Apple Silicon for improved speed. Ideal for scripted workflows, shell integration, or when running the model as a persistent background service. Connects to the same OpenAI-compatible API endpoint.

LicenseFree / Open Source
MLX Backend✓ v0.19+
API Portlocalhost:11434
API FormatOpenAI-compatible
Installollama.com
03

AI Models

Two specialist models cover distinct workload profiles. The 8-bit MLX quantization format is used for both — it preserves ~99% of full-precision quality while reducing memory footprint by ~45% versus BF16, and runs natively on Apple's Metal GPU via the MLX framework for maximum throughput. Both models are Apache 2.0 licensed with no usage restrictions.

⚡
Qwen3.6-27B-MLX-8bit
Primary · Agentic Coding

A 27-billion parameter dense model from Alibaba's Qwen team, purpose-built for agentic coding workflows. Its SWE-bench Verified score of 77.2% places it at flagship level for real-world GitHub issue resolution — matching cloud-hosted models. The extended 262K token context window holds entire Swift packages, project hierarchies, and long debugging sessions in a single context. The dense architecture (as opposed to MoE) provides more consistent, reliable output on complex multi-step coding tasks, with minimal hallucination on API signatures and framework specifics. Thinking mode is enabled by default for deeper reasoning on architecture decisions.

DeveloperAlibaba / Qwen Team
Parameters27B (dense)
QuantizationMLX 8-bit
RAM footprint~29 GB
Context window262K tokens
SWE-bench Verified77.2%
Thinking mode✓ Enabled
Vision / Image✓ Supported
LicenseApache 2.0
LM Studio searchqwen3.6-27b → MLX
Ollama pullollama pull qwen3.6:27b
🔭
Gemma4-31B-MLX-Q8
Secondary · General + Vision

Google DeepMind's flagship open model — a 31-billion parameter dense model built on the same research lineage as Gemini 3. It currently ranks #3 among all open models on the Arena AI leaderboard and excels at general reasoning, writing, summarization, and multimodal tasks. Its native image and document understanding (OCR, chart comprehension, UI screenshot analysis) makes it the right tool for analyzing design mockups, parsing PDFs, or reviewing visual assets alongside code. The 256K context window and day-0 MLX support make it an ideal complement to the Qwen coding model.

DeveloperGoogle DeepMind
Parameters31B (dense)
QuantizationMLX Q8
RAM footprint~33 GB
Context window256K tokens
Arena AI rank#3 Open Model
Thinking mode✓ Configurable
Vision / Image✓ Native multimodal
Audio input✓ Supported
LicenseApache 2.0
LM Studio searchgemma4-31b → MLX
MLX model IDmlx-community/gemma-4-31b-it-4bit
04

Stack Summary

Privacy model 100% offline · air-gap capable
Hardware MBP M4/M5 Max · 96–128 GB · 4 TB
Runtime LM Studio or Ollama (OpenAI API)
Inference engine Apple MLX · Metal GPU
Coding model Qwen3.6-27B MLX-8bit
General model Gemma4-31B MLX-Q8
Combined RAM use ~62 GB (both loaded)
Remaining headroom 34–66 GB for Xcode + OS
Total model licenses Apache 2.0 · No restrictions