Editorial illustration for OpenCode now supports Qwen3-Coder via config.json on Linux, macOS, Windows
OpenCode Adds Qwen3-Coder Model Across Major Platforms
OpenCode now supports Qwen3-Coder via config.json on Linux, macOS, Windows
OpenCode now quietly offers the one feature that matters: local AI. The Qwen3-Coder model runs on your own machine through Ollama, and a few lines in a config.json file will connect it to the editor. No cloud calls, no subscriptions, just your terminal talking to a model you control. The setup is the same on Linux, macOS, and Windows.
By the end of this tutorial, you will have a complete understanding of how to run Qwen3-Coder locally with Ollama and integrate it into your workflow using OpenCode.
That's the entire process. There is no grand architecture. You point the editor at a local endpoint, and it works.
The result is a coding assistant that suggests, reasons, and uses tools without ever leaving your machine. This isn't a demo. It's a functional shift for anyone who prefers their tools to be silent, fast, and entirely theirs.
Try it before the cloud vendors figure out how to monetize the air around your keyboard.
Common Questions Answered
How do I configure Qwen3-Coder in OpenCode across different operating systems?
The configuration process involves editing the config.json file located in different directories based on your OS. On Linux and macOS, the file is found in ~/.config/opencode/, while on Windows, it's located in %APPDATA%\opencode\config.json. You'll need to add the specific JSON configuration for the Ollama provider to activate the Qwen3-Coder model.
What text editors can I use to modify the OpenCode config.json file?
You can use a wide variety of text editors to modify the config.json file, including VS Code, Notepad++, nano in the terminal, and other plain-text editing tools. The key requirement is to accurately input the JSON configuration for the Qwen3-Coder model without introducing syntax errors.
Can I run the Qwen3-Coder model in OpenCode without an internet connection?
Yes, the Qwen3-Coder model can be run locally in OpenCode without an internet connection. By configuring the config.json file to point to a local Ollama provider at http://localhost:11434/v1, users can launch and use the AI coding model entirely offline, without any subscription fees.
Further Reading
- Qwen3-Coder-Next: The Complete 2026 Guide to Running Powerful AI Coding Agents Locally — Dev.to
- How to Setup OpenCode on Mac/MacOS | Zero API Costs, Full AI Coding Power — YouTube
- Qwen3-Coder-Next: How to Run Locally — Unsloth Documentation
- OpenCode - Ollama's documentation — Ollama Documentation