# Run OpenCode with local Ollama models in Docker sandboxes on Mac

Original title: Setting up OpenCode with Ollama and sbx on Mac

> Hacker News story 49652122 · language: en · submitted 2026-09-11
> Web version: https://zeli.app/story/49652122
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 31 · by [etoxin](<https://news.ycombinator.com/user?id=etoxin>) · 💬 14
[original](<https://tensorsandtokens.com/posts/opencode-ollama/>) · [HN discussion](<https://news.ycombinator.com/item?id=49652122>)

## Summary

A practical guide to running OpenCode with Ollama and Docker sandboxes on an M5 MacBook Pro. It covers installing the tools, pulling Qwen 3.8 and Gemma 4 models, and configuring an sbx kit to connect OpenCode to Ollama on the host. The author argues that local LLM development is now viable, with 30B models handling web app builds, and recommends sandboxing to contain potential hallucinations.

## Key quote

> Viable local LLM development is here.

## HN discussion (14 comments)

### [manapause](<https://news.ycombinator.com/item?id=49652858>)

> If you have both ollama and llama.cpp installed on your MBP, and are interested in utilizing your local model as a cost-saving preprocessor for your frontier models, consider using https://github.com/Standard-Pentest/kultivait!
>
> "kultivait init --setup" to evaluate your machine's hardware, access to frontier cli-tools, download models, and create a proxy for ollama to get started.  works great with opencode!

### [hkchad](<https://news.ycombinator.com/item?id=49652856>)

> Friends don't let friends use Ollama

### [darthcircuit](<https://news.ycombinator.com/item?id=49653001>)

> I’ve been using OMLX on 48gb Mac. It’s a lot smoother setup than Ollama and has a  built in model sizer and all that in a nice ui. Also will pre configure and launch opencode, pi, Hermes, codex and Claude out of the box with no fuss. I’ve been really happy with it.

---

## Cite

- Page: https://zeli.app/story/49652122
- Date: 2026-09-11
- Source: tensorsandtokens.com (https://tensorsandtokens.com/posts/opencode-ollama/)
- Hacker News: https://news.ycombinator.com/item?id=49652122

## Other languages

- zh: https://zeli.app/zh/story/49652122 · markdown: https://zeli.app/zh/story/49652122.md
- ja: https://zeli.app/ja/story/49652122 · markdown: https://zeli.app/ja/story/49652122.md
- ko: https://zeli.app/ko/story/49652122 · markdown: https://zeli.app/ko/story/49652122.md
- de: https://zeli.app/de/story/49652122 · markdown: https://zeli.app/de/story/49652122.md
- es: https://zeli.app/es/story/49652122 · markdown: https://zeli.app/es/story/49652122.md
- ru: https://zeli.app/ru/story/49652122 · markdown: https://zeli.app/ru/story/49652122.md
