Skip to content
Hacker News front page

Run Opencode with Ollama on Mac: local LLMs for real dev work

Setting up OpenCode with Ollama and sbx on Mac

Adam Lusted walks through setting up local LLMs on a MacBook Pro M5 (48GB) with Ollama, Opencode, and Docker Sandboxes. He pulls Qwen 3.8 27B and Gemma 4 31B, runs them inside sandboxes to prevent hallucinations from messing up the host. Each project needs a custom sbx kit with model configs and context limits (64K for Qwen, 256K for Gemma 4). Launch with sbx run opencode --kit and drop reasoning effort to low via /models. The post doesn't disclose actual coding performance metrics like accuracy or latency.

Read the original ↗Export Markdown