Red HatSeth KenlonTutorial
Use a local and open source code assistant
Summary
Closed or cloud-based coding assistants can expose work to external services, so the article presents a local, open-source alternative built around OpenCode. OpenCode is an AI coding agent—not an LLM—that runs as a terminal interface, desktop application, or IDE extension and connects to models through the Model Context Protocol (MCP). The setup installs OpenCode, selects a local model runtime such as Ollama for AMD/NVIDIA GPUs or OpenVINO Model Server with INT4 Qwen3-8B for Intel integrated graphics, then configures opencode.jsonc and an editor plug-in. Examples cover Qwen3:14b with Ollama, Podman-based OpenVINO serving, and NetBeans integration; the resulting assistant can answer queries and edit files after permission is granted, although local inference may be slow and generated advice can be unreliable.
Context
Many coding assistants are closed source or send development data to cloud services for processing. The stated goal is to use an open coding assistant and an open source IDE while keeping processing local, including when working without an internet connection.
Approach / What changed
Install OpenCode locally, provide it with a separately installed LLM runtime, configure the model endpoint in ~/.config/opencode/opencode.jsonc, and connect it to an editor through a coding assistant plug-in. The examples use Ollama for AMD or NVIDIA GPUs and OpenVINO Model Server in Podman for Intel integrated graphics.
Takeaways
OpenCode is an interface and coding agent rather than an LLM, allowing users to select a model that may be local, organization-private, or subscription-based.
Ollama is presented for AMD and NVIDIA GPUs, while OpenVINO Model Server with INT4-compressed Qwen3-8B targets Intel integrated graphics.
The assistant can suggest code and edit files after permission is granted, but local inference on integrated graphics can be slow and generated responses can be unfounded.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.