Setting up OpenCode with Ollama and sbx on Mac

How to get started with running Ollama local models with Opencode and Docker Sandboxes.
Viable local LLM development is here. With powerful models like Qwen 3.8 and Gemma4 we can now finally use these models to build out web applications. I'm using a Apple Macbook pro m5 48GB model. I think this is the sweet spot for local development as it allows you to run 30B models with a decent sized context.
Why I use Ollama . To be frank it's just easy. It has mlx now, so it's fast on Apple silicon. It has a pretty good model directory. It is also very stable and won't crash.
Why Opencode . Well, we need to start somewhere with this blog and opencode is a great harness.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in