Skip to main content
OpenCode IDE showing Qwen3-Coder support on Linux, macOS, and Windows via config.json file.

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

Updated: 2 min read

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.

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.

LIVE12:30Nonprofit Avoids AI Funding to Preserve Independence