The following guide will show you how to connect a local model served with MLX to OpenCode for local coding. 1. Install OpenCode curl -fsSL https://opencode.ai/install | bash 2. Install mlx-lm