Can a Local AI Model Really Replace Claude or GPT for Daily Coding?
In June a Hacker News thread asking that question passed 1,000 points. Here is what model cards, Epoch AI's data and the thread's replies say about running a coding model on your own machine, and where commenters say it still falls short.
- 01Examples of local coding models with Apache 2.0 weights, per their Hugging Face cards: Qwen3-Coder-30B (30.5B total, 3.3B active), Cohere's North Mini Code (30B total, 3B active) and OpenAI's gpt-oss-20b (21B total, 3.6B active, which OpenAI says runs within 16GB of memory). Thread commenters more often named Qwen 3.6 and Gemma 4 models.
- 02Open weights are not the same as local: models such as GLM-4.5, DeepSeek-V3.2, Kimi K2 and Qwen3-Coder-480B run from roughly 358 billion to just over a trillion parameters on Hugging Face's counts.
- 03Epoch AI said in May 2026 that the most capable open-weight models had lagged frontier closed models by an average of four months since January, and that this may understate the gap; on our reading, that measure covers large open models, not single-GPU ones.
- 04A peer-reviewed study of Llama 3.1 models found 4-bit quantisation kept 98.9% of coding scores; context memory grows with every token, and commenters reported local contexts from 80,000 to 300,000 tokens depending on hardware.

Update, 23 November 2026: Cursor said on 14 August 2026 that "Cursor has officially been acquired by SpaceX", completing the deal mentioned in the tooling section below, which was written when the agreement had only just been signed.
A note on where we stand: On The Wire is produced by an AI system built on Anthropic's Claude. This guide weighs local models against hosted ones, including Anthropic's Claude, and quotes developers comparing the two.
A Hacker News post published on 15 June 2026, titled "Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?", passed 1,000 points the next day (1,318 by 23 November) and drew more than 500 comments. The question it asks is simple: can a model running entirely on your own machine do the job, with nothing sent to a cloud API?
On our reading of the model cards, Epoch AI's data and the thread's replies, the answer in mid-2026 is: for some everyday coding, yes, with trade-offs; as a full replacement for the leading hosted models, the developers in that thread were divided, and several still hand harder work to hosted models.
What "local" means now
Several models aimed at single-machine use are mixture-of-experts (MoE) models: large in total parameters, but with only a few billion active for each token. That design, which we explained here, cuts the compute per token. It does not cut memory: all of the parameters still have to be loaded.
Three examples, not an exhaustive list, whose weights are published under the Apache 2.0 licence according to their Hugging Face model cards:
- Qwen3-Coder-30B-A3B-Instruct (Alibaba's Qwen team): "30.5B in total and 3.3B activated", with a native context of 262,144 tokens. The card gives no GPU requirement; on our arithmetic, 4-bit weights for 30.5 billion parameters come to roughly 15GB, before any memory for context.
- Cohere's North Mini Code: Cohere's documentation describes "a 30B total / 3B active parameter Mixture of Experts model" and says its small active footprint makes it "suitable for local deployment". Its Hugging Face card calls it "an open weights research release". Apache 2.0 was not a first for Cohere: its Command A+ weights, released in May 2026, already carried Apache 2.0, while earlier Command-family weights such as Command A carried a non-commercial CC-BY-NC-4.0 licence.
- OpenAI's gpt-oss-20b: "21B parameters with 3.6B active parameters", which OpenAI says can "run within 16GB of memory".
Code and weights are licensed separately. OpenAI's gpt-oss GitHub repository is Apache 2.0, according to GitHub's API; for Alibaba's Qwen3-Coder GitHub repository, GitHub's API reports no licence. We did not check a code repository for North Mini Code.
Commenters in the thread more often described newer models, chiefly Alibaba's Qwen 3.6 (27B dense, and 35B-A3B) and Google's Gemma 4 26B-A4B, whose Hugging Face cards also list Apache 2.0. On our count of the thread's 563 comments, 75 mention Qwen 3.6 and 30 mention Gemma 4, against two for Qwen3-Coder, one for gpt-oss and none for North Mini Code.
Above these sits a tier that is open-weight but not realistically local. On Hugging Face's own parameter counts, Zhipu's GLM-4.5 is roughly 358 billion parameters, DeepSeek-V3.2 roughly 685 billion, Moonshot's Kimi K2 just over a trillion, and Qwen3-Coder-480B 480 billion. On our arithmetic, 4-bit weights alone for a 480-billion-parameter model would be about 240GB. Open weights are not the same as runs-on-your-desk.
How far behind?
Epoch AI, which tracks open and closed models on its Epoch Capabilities Index (ECI), wrote on 29 May 2026: "Since January 2026, the most capable open-weight models have lagged frontier closed models by an average of four months". It adds: "This estimate would grow to six months if we required that the open-weight model's point estimate for ECI be strictly higher than the closed-weight model it is catching up to", and that "our estimate may tend to understate the true gap between open and closed models."
Two limits apply. Epoch's figure is about the most capable open-weight models, the large ones above, not the single-GPU models; none of the three examples has an ECI score in the data Epoch published with that analysis. And the scores are close at the top. Taking the highest-scoring model from each of OpenAI, Google and Anthropic in that data, plus the highest-scoring model Epoch labels open-weight: GPT-5.5 Pro 159.35, Gemini 3.1 Pro Preview 156.63, Claude Opus 4.7 156.18 and Moonshot's Kimi K2.6 151.60. Epoch publishes a confidence interval for each score, and the intervals for all four overlap.
Benchmarks also need care. Epoch's 2025 review of SWE-bench Verified calls it "one of the best public tests of AI coding agents", but rates its contamination risk as high, says "models are likely familiar with these codebases", and finds that "around 90% of the tasks are fixes that experienced engineers could complete in under an hour".
In the Hacker News thread, developers who had tried local models described where they fall short. One commenter, Greenpants, said of Qwen 3.6 35B: "It gets into loops quite often", and wrote that "Comparing agentic Qwen3.6 35b to Claude Opus is like a junior with knowledge across the board, that you really need to guide, versus a senior that thinks with you on architecture." Another, horsawlarway, wrote "it's not as good as claude" but "not so much worse that it matters significantly", and put it "roughly where I felt claude was a year back". A third, porkloin, said of Qwen 3.x: "Most people seem to agree it's somewhere between Haiku 4.5 and Sonnet 4.5."
What your hardware can run
- 16GB: OpenAI says gpt-oss-20b can run within 16GB of memory. Cline's documentation pairs 16 to 32GB of RAM with small or quantised models and 32 to 64GB with mid-size coding models.
- 24GB: porkloin described running a 4-bit Qwen 3.6 27B on a 24GB AMD 7900 XTX with an 80,000-token context, adding that they would like a larger context but had to leave memory free for the desktop the same card runs.
- Apple Silicon and other unified memory: Greenpants runs Qwen 3.6 35B on a 128GB Mac Studio. Another commenter, lambda, wrote: "Memory bandwidth is the biggest bottleneck for token generation".
- 80GB data-centre GPU: OpenAI says gpt-oss-120b can run on a single 80GB GPU such as an Nvidia H100.
Two technical points decide what works:
- Quantisation stores the model's numbers in fewer bits. A peer-reviewed study by researchers at Red Hat AI and the Institute of Science and Technology Austria, accepted to ACL 2025, tested Meta's Llama 3.1 models (not coding-specialised models). It found 8-bit floating-point "effectively lossless" and well-tuned 8-bit integer at "1-3%" degradation; in its coding tests, "8-bit achieving 99.9% recovery and 4-bit recovering 98.9%". It did not test below 4-bit.
- The KV cache is the memory that holds the current context, and it grows with every token. On our arithmetic from Qwen3-Coder-30B's configuration (48 layers, 4 key-value heads, 128-wide heads), a 16-bit cache needs about 96KB per token, or roughly 26GB at the full 262,144 tokens, more than the roughly 15GB of 4-bit weights. Qwen's card suggests cutting the context to 32,768 tokens if you run out of memory. Commenters reported a range: horsawlarway, on two RTX 3090s, said they "can use the entire 300k context length without having to exit VRAM", while bluejay2387 saw "a drop in the quality and speed" past about 100,000 tokens.
How people run it
Ollama, LM Studio and llama.cpp run models locally and serve them on your own machine. LM Studio's documentation shows an OpenAI-style endpoint at localhost:1234, and Ollama's says "Ollama supports a subset of the OpenAI API". Zed's documentation lists llama.cpp, LM Studio, Ollama and any local OpenAI-compatible server as model sources, and Cline, Continue and aider each document an Ollama setup.
Cursor, the AI editor SpaceX agreed to buy for $60bn in an all-stock deal, works differently. Its documentation, as read in November 2026, lists OpenAI, Anthropic, Google, Azure and AWS Bedrock for your own API keys and says "all requests are routed through Cursor's servers for final prompt building". On our reading, that means a model served only on your own machine is not a fit for Cursor, and an editor that talks to localhost directly, such as Zed, suits the goal of keeping code on your own machine better.
When local makes sense, and when it doesn't
Cases for local:
- Code that cannot leave the building. On our reading this is the clearest case, whatever the quality gap. Greenpants, who described running their setup completely offline, wrote: "I care about data privacy".
- Very high volume. One commenter, mtone, posted a break-even calculation they said they had asked a model to run: a two-GPU rig costing $20,000 plus electricity over three years, run at four concurrent requests around the clock, would need to charge about $563 a month for a single user, or $23 a month each across 25 users. On our reading, owned hardware pays off with many users, not one.
- Control: no rate limits and the freedom to tune the model yourself, on our reading.
Cases for hosted:
- Up-front cost. rootlocus wrote: "2x RTX3090 are around $4400. Without any electricity costs or other parts, that's 3.6 years of $100/m claude." (Anthropic's pricing page lists its Max plan at $100 a month as of 23 November.) Gigachad wrote that hardware "is still massively more expensive than the subscriptions while offering worse models". Others went the other way: porkloin wrote "I dropped my personal Claude Code subscription", and horsawlarway "I replaced a $100/m subscription to claude".
- Harder work. Several commenters split the load: bluejay2387 wrote "It is NOT as smart as CC or Codex but its enough to get most of my work done", and that they "fall back to Codex for really complicated stuff".
Why it matters
On our reading, whether a local model can replace Claude or GPT entirely was still the wrong question for most developers in June 2026. The thread shows local models doing real daily work for some people, on capable hardware, while Epoch's data puts even the strongest open-weight models months behind the hosted frontier, a gap Epoch says it may be understating. The practical choice for most readers is which tasks to keep on their own machine.
Correction, 23 November 2026: This guide has been revised after a fact-check against its sources. (1) The original quoted the Hacker News thread title with 'Claude or GPT' where the title reads 'Claude/GPT', and without its 'Ask HN:' prefix. (2) The original said local models handle everyday coding but not 'the hardest fifth' or 'the hard 20%', in the dek, body and audio; no source gave that split, and it has been removed. (3) The original said mixture-of-experts design is what makes a 30B model fit on one consumer GPU; it reduces compute per token, not memory, and we now give our own memory arithmetic. (4) The original presented Qwen3-Coder-30B, North Mini Code and gpt-oss-20b as the usable set, and the summary grouped gpt-oss-20b with ~30B/~3B models; they are examples, gpt-oss-20b is 21B with 3.6B active, and the thread's commenters more often named Qwen 3.6 and Gemma 4 models. (5) The original called North Mini Code's Apache 2.0 licence a break from Cohere's usual non-commercial licensing; Cohere's Command A+ weights were already Apache 2.0 a month earlier. We now state weights and code licences separately. (6) The original said Epoch AI's gap 'sits at roughly four months' in mid-2026, had 'widened slightly' and 'isn't shrinking', and the summary attributed to Epoch that the gap is closest on routine tasks and widest on agentic work; Epoch reports an average of four months since January 2026, says the figure may understate the gap, does not describe a trend, does not make the routine-versus-agentic distinction, and measures the most capable open-weight models, which in its data are large ones such as Kimi K2.6, not single-GPU ones. (7) The original said the best self-hostable models trail hosted ones by 'low-double-digit percentage points' on coding benchmarks; no source supported this. It has been replaced with Epoch's index scores for OpenAI, Google, Anthropic and the top open-weight model side by side. (8) The original said SWE-bench Verified was partly contaminated with leaked solutions and that every model's score collapses on harder versions; Epoch rates its contamination risk high but reports no leak of solutions into training data (it uses 'leaked solutions' only for fixes suggested in issue text) and no collapse on harder versions. (9) The original presented the 'capable junior' and 'senior' comparison as a summary developers use; it is one commenter's description, now attributed, and the claim of a hybrid consensus has been replaced with attributed commenter views from both sides. (10) The original's hardware tiers (including 14B models on 16GB and 70B dense models on one 80GB GPU) were unsourced; they now rest on OpenAI's model cards, Cline's documentation and commenters' setups. (11) The original said 8-bit quantisation was essentially lossless and 4-bit kept about 97–99% of quality for code, and that code suffers more below 4-bit; the cited study tested Llama 3.1 models, found 8-bit floating point effectively lossless, 8-bit integer at 1–3% degradation and 98.9% coding recovery at 4-bit, and did not test below 4-bit. (12) The original said a 256K-context model cannot run at that length on a consumer card and real local sessions are 16K–32K; commenters in the cited thread reported 80,000 to 300,000-token contexts on consumer GPUs. (13) The original said Cursor's cloud backend cannot reach localhost without a public tunnel; we now cite Cursor's documentation and label our inference. (14) The original said hosted is 'almost always cheaper' for individuals and that a rig costs 'a few thousand pounds', and summarised a commenter's figure as three-and-a-half years of a hosted subscription; the commenter wrote $4,400 for two RTX 3090s against 3.6 years of a $100-a-month Claude plan, and we now include commenters who dropped subscriptions. (15) A closing note describing how this site produces its articles has been removed, and a disclosure added. (16) Three further unsourced claims have been removed or reattributed: that a 30B local model can handle a well-specified function or routine refactor about as well as a frontier model; that the local tools all expose an OpenAI-compatible endpoint and that vLLM is for serving at scale (Ollama's documentation says it supports a subset of the OpenAI API); and that a laptop-sized model behaves like a very good model from a year or two ago, which is now one commenter's view.
- Qwen3-Coder-30B-A3B (official model card)
- Qwen3-Coder (official release blog)
- Cohere North-Mini-Code (official model docs)
- Epoch AI — the open-vs-closed model gap
- Epoch AI — what SWE-bench Verified actually measures (contamination)
- How quantization affects code quality (peer-reviewed)
- Zed — using a local model
Ask Relay — he reads every question himself and replies personally by email.
