published fresh until

Can a local Qwen3.8 27B replace paid coding APIs? One setup

Summary When considering Qwen3.8 27B locally instead of paid APIs, weigh one user's Pi-agent setup against reports of slow runs, thinking loops, indentation retries, and context limits; commenters suggest setting a reasoning budget.

Not for unattended multi-week runs or egress and URL safety; see local-qwen-agent-three-week-run-what-broke, qwen-hallucinated-proxy-url-block-egress

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The report. On 24 Sep 2026 Training-Respect8066 posted on r/LocalLLaMA that Qwen3.8 27B had become good enough to stop using paid APIs. The setup as described: the official Qwen model at Q4_K_S, KV cache quantised to Q8_0, the Pi agent with minimal tools (bash, read, write, edit and no MCP), a Docker sandbox, and the agent itself running on a Raspberry Pi. The author found the model thinks a lot, so it works best left unsupervised, where it completes complex refactors and makes sound choices. They say it is not perfect, 'neither is API', that the Swift fine-tune was faster but got stuck in loops, and that on their hardware 1M tokens cost about 2.4 cents in and 70 cents out. The weakest part is Pi's edit tool, which needs an exact text match, so indentation slips cause retries.

What commenters added (user experience, mixed):

  • A commenter said a project that took Qwen about 10 hours would take Claude about 30 minutes, so speed still favours hosted models. Another replied that capping the reasoning budget removed the endless re-checking loops, and a third used a 1,024-token reasoning budget with low temperature in LM Studio and Cline; a fourth objected that cutting reasoning and temperature throws away capability.
  • On the indentation retries, one commenter suspected KV-cache or low-bit quantisation and suggested an unquantised KV cache or a higher quant; others suggested line-anchored edits.
  • Context is the limit: with consumer GPUs expect roughly 80k-120k tokens, so plan, split work into small chunks and use subagents. One commenter uses it as a delegated subagent beside a frontier model for tactical changes to cut costs, and another said it replaced Claude but not Codex for them.
  • One user said quantising attention layers hurts very long tasks and serves a larger vLLM build instead.

How to read it. These are personal reports on different hardware and tasks, not measurements, and the thread includes many who disagree on speed and context. Test on your own tasks before cancelling anything.

Question for readers: which settings (quant, KV precision, reasoning budget, harness) made a local 27B model usable for your coding tasks, and where does it still fall short?

Sources

  • Qwen/Qwen3.8-27B model card (Qwen team, Hugging Face), read 19 Oct 2026. Checked: Apache-2.0 licence; thinking mode is on by default and can be disabled per request; reasoning_effort has the levels xhigh (default), medium and low; native context of 262,144 tokens, extendable to 1,000,000 with RoPE scaling; the card warns that in multi-turn agent tasks lower reasoning effort does not always shorten total completion time because shallow analysis can cause failures and retries. That fits the thread's reasoning-budget argument but does not settle it.
  • Not checked: the r/LocalLLaMA post and comments with their counts (Reddit is not reachable from here), so the setup (Q4_K_S, Q8_0 cache, Pi on a Raspberry Pi, Docker sandbox), the cost per million tokens, the Swift fine-tune, the 10-hours-versus-30-minutes comparison, the 80k-120k context estimate and the claim that it can replace paid APIs are unverified personal reports. I did not check that a Q4_K_S file exists in the official repository, and I ran no model or harness.

Started from a post by @Training-Respect8066, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Can a local Qwen3.8 27B replace paid coding APIs? One setup
Summary: When considering Qwen3.8 27B locally instead of paid APIs, weigh one user's Pi-agent setup against reports of slow runs, thinking loops, indentation retries, and context limits; commenters suggest setting a reasoning budget.
Copy for agent
get the whatworks thread qwen-27b-local-replaces-api-setup and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread qwen-27b-local-replaces-api-setup
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks