<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa" -->

---
title: Use a local and open source code assistant | daily.dev
description: Setting up OpenCode, an open source AI coding assistant that works via MCP with editors like VS Code, Cursor, or as a standalone CLI, paired with a local open...
canonical: https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Use a local and open source code assistant | daily.dev
og:description: Setting up OpenCode, an open source AI coding assistant that works via MCP with editors like VS Code, Cursor, or as a standalone CLI, paired with a local open...
og:url: https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa
og:image: https://api.daily.dev/og/posts/RFdaBKwQa.png
og:image:alt: Use a local and open source code assistant
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use a local and open source code assistant

**[Red Hat Developer](https://daily.dev/sources/rhdev)** · 7 min read · 0 upvotes · 0 comments

## Summary

Setting up OpenCode, an open source AI coding assistant that works via MCP with editors like VS Code, Cursor, or as a standalone CLI, paired with a local open source LLM instead of a cloud-based proprietary model. Covers installing OpenCode on Linux, macOS, and Windows, choosing between Ollama (for AMD/NVIDIA GPUs) and OpenVINO (for Intel integrated graphics), running an Apache-licensed model like Qwen3:14b, configuring opencode.jsonc to point at the local model server, and wiring the assistant into the Netbeans IDE via its Coding Assistant plugin.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.redhat.com/articles/2026/09/09/use-local-and-open-source-code-assistant>

## Questions this post answers

### How do I set up OpenCode to use a local Ollama model instead of its default cloud LLM?

Configure the OpenCode config file at ~/.config/opencode/opencode.jsonc with a provider entry pointing to the Ollama server, typically at http://127.0.0.1:8001/v1, using the @ai-sdk/openai-compatible npm package. Specify the model name (for example qwen-7b-ov) and its capabilities (chat, completion, code), then create an opencode.json symlink pointing to opencode.jsonc since some integrations expect that exact filename.

_daily.dev collects practical guides like this for developers wiring local models into their coding workflow._

### Which open source LLM works well for local AI coding assistants on a GPU?

Qwen3:14b, released under the Apache license, works well with Ollama for local coding assistance on AMD or NVIDIA GPUs. Other Apache-licensed alternatives include Granite and Olmo. Run it by starting an Ollama server with 'ollama serve' and then pulling and running it with 'ollama run qwen3:14b'.

_daily.dev surfaces comparisons of open source LLMs for developers choosing a local coding assistant model._

### Can AI coding assistants run on Intel integrated graphics without a dedicated GPU?

Yes, using OpenVINO with a model like OpenVINO/Qwen3-8B-int4-ov, which compresses weights to INT4 for lower-memory inference on Intel integrated graphics via Podman. Performance is limited, though: even a simple prompt like 'say hello' can generate thousands of tokens, making integrated-graphics setups slow compared to a dedicated GPU running Ollama.

_daily.dev helps developers weigh hardware trade-offs before committing to a local AI coding setup._

## Similar posts on daily.dev

- [Your security team blocked Cursor and Claude Code—time to switch to OpenCode](https://daily.dev/posts/your-security-team-blocked-cursor-and-claude-code-time-to-switch-to-opencode-ittvb0ato) · LogRocket · 2 upvotes · 0 comments
- [Local AI Coding Assistant: Complete VS Code \+ Ollama \+ Continue Setup](https://daily.dev/posts/local-ai-coding-assistant-complete-vs-code-ollama-continue-setup-5hoo7jcgh) · SitePoint · 0 upvotes · 1 comments
- [My favorite Claude Code alternative isn't Codex or Cursor: it's something way more powerful and open-source](https://daily.dev/posts/my-favorite-claude-code-alternative-isn-t-codex-or-cursor-it-s-something-way-more-powerful-and-open-cqjmtwhy0) · XDA Developers · 0 upvotes · 0 comments
- [OpenCode: A model-neutral AI coding assistant for OpenShift Dev Spaces](https://daily.dev/posts/opencode-a-model-neutral-ai-coding-assistant-for-openshift-dev-spaces-kmzpucsqr) · Red Hat Developer · 1 upvotes · 0 comments
- [How to integrate VS Code with Ollama for local AI assistance](https://daily.dev/posts/how-to-integrate-vs-code-with-ollama-for-local-ai-assistance-4jv2t1xde) · The New Stack · 0 upvotes · 0 comments

---

Tags: [#local-ai](https://daily.dev/tags/local-ai), [#ollama](https://daily.dev/tags/ollama), [#opencode](https://daily.dev/tags/opencode)

[View this post on daily.dev](https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Use a local and open source code assistant","url":"https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa"},"datePublished":"2026-09-09T14:32:45.547Z","dateModified":"2026-09-09T21:32:22.587Z","description":"Setting up OpenCode, an open source AI coding assistant that works via MCP with editors like VS Code, Cursor, or as a standalone CLI, paired with a local open...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","isAccessibleForFree":true,"articleSection":"Red Hat Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Red Hat Developer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2a8895f3216c4900bdc455585a4ad3e4","url":"https://daily.dev/sources/rhdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"local-ai,ollama,opencode","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Red Hat Developer","item":"https://daily.dev/sources/rhdev"},{"@type":"ListItem","position":3,"name":"Use a local and open source code assistant"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/use-a-local-and-open-source-code-assistant-rfdabkwqa#faq","mainEntity":[{"@type":"Question","name":"How do I set up OpenCode to use a local Ollama model instead of its default cloud LLM?","acceptedAnswer":{"@type":"Answer","text":"Configure the OpenCode config file at ~/.config/opencode/opencode.jsonc with a provider entry pointing to the Ollama server, typically at http://127.0.0.1:8001/v1, using the @ai-sdk/openai-compatible npm package. Specify the model name (for example qwen-7b-ov) and its capabilities (chat, completion, code), then create an opencode.json symlink pointing to opencode.jsonc since some integrations expect that exact filename. daily.dev collects practical guides like this for developers wiring local models into their coding workflow."}},{"@type":"Question","name":"Which open source LLM works well for local AI coding assistants on a GPU?","acceptedAnswer":{"@type":"Answer","text":"Qwen3:14b, released under the Apache license, works well with Ollama for local coding assistance on AMD or NVIDIA GPUs. Other Apache-licensed alternatives include Granite and Olmo. Run it by starting an Ollama server with 'ollama serve' and then pulling and running it with 'ollama run qwen3:14b'. daily.dev surfaces comparisons of open source LLMs for developers choosing a local coding assistant model."}},{"@type":"Question","name":"Can AI coding assistants run on Intel integrated graphics without a dedicated GPU?","acceptedAnswer":{"@type":"Answer","text":"Yes, using OpenVINO with a model like OpenVINO/Qwen3-8B-int4-ov, which compresses weights to INT4 for lower-memory inference on Intel integrated graphics via Podman. Performance is limited, though: even a simple prompt like 'say hello' can generate thousands of tokens, making integrated-graphics setups slow compared to a dedicated GPU running Ollama. daily.dev helps developers weigh hardware trade-offs before committing to a local AI coding setup."}}]}
```

