Opening GitHub…Opening Discord…

    How to Run a Local LLM for Coding (Ollama, LM Studio)

    June 2026~6 min readDeep Dive

    A local LLM for coding is a language model that runs on your own computer, through a model server such as Ollama or LM Studio, so your code and prompts never leave the machine. Atlarix connects to either one and runs the whole coding workflow on it: planning, edits, commands and code search, with nothing uploaded. For proprietary or regulated work, that is the difference between a risk and none. Here's how to set it up, and why local models actually perform in Atlarix where they often don't elsewhere.

    How it works

    Atlarix connects to Ollama or LM Studio through their local API endpoints. The app finds a running Ollama or LM Studio on its own, or you add it once under Settings → Models & providers, and your local model appears alongside every other provider. Set it as default or switch per chat. Because retrieval in Atlarix is local too — bundled ripgrep (grep + glob), no index and no embeddings — a fully local setup means nothing about your code leaves the machine, not even a vector representation of it.

    Why local models actually perform here

    Most harnesses are tuned for frontier cloud models and treat local ones as an afterthought, which is why they underperform. Atlarix does two specific things for them. It carries tool calls and results as provider-native tool_use/tool_result blocks instead of flattening them into prose, so smaller models get clean structure and multi-step prompt caching holds. And for models without native function-calling, an XML/text tool-call fallback lets them drive tools anyway. That's the difference between a local model that flails and one that gets real work done.

    The open-weight frontier

    The open-weight labs have closed much of the gap: DeepSeek, Qwen, Kimi and MiniMax are the frontier you can pull locally through Ollama or LM Studio. Atlarix Core itself is a small curated lineup — currently GPT-6.1 Terra, Claude Sonnet 5.5, GPT-6.2 Sol, Claude Opus 5.5, GPT-6.2 Astra and Claude Fable 5.2 — chosen for the harness rather than for provenance, and it changes without an app update. Run a smaller distilled variant for fast edits and Ask-mode, and a larger one for planning and multi-step builds — all on your hardware, or your own endpoint via Hugging Face / OpenRouter when you want more headroom without giving up BYOK control.

    What local is great for

    Privacy-sensitive and client work where code can't go to a third-party model; coding on a local model, where prompts and code go only to that model; architecture questions answered from fast local search; and review or explanation passes that never touch a third-party API. You keep the full approval queue and per-OS write sandbox regardless of which model is driving.

    Local AI coding stopped being a compromise once open-weight models caught up and a harness actually treated them as first-class. Atlarix is that harness: open-weight Core, native tool history and XML fallback so local models perform, and no-embeddings retrieval that stays on your machine. Your code is your IP — with Atlarix it can stay that way.