A reproducible recipe for a fully on-device coding agent on Apple Silicon: an MLX-served LLM exposed through an OpenAI-compatible endpoint, driving OpenCode in the terminal. Nothing leaves the machine — which is the point if you care about privacy, latency, or offline work.
Source / inspiration: Apple WWDC26 Session 232 — Run local agentic AI on the Mac using MLX (). The snippets below are