Starts Nov 23Live Cohort 3 of Vibe Coding & AI Agents (Nov 23, 18:30 MSK): 3 weeks, 9 live hands-on sessionsCohort 3 (Nov 23) →
ReleaseAPI / Product · ActionableHabr AI→ original

Vibe Coding Without the Cloud: Qwen3-Coder on an RTX 5070 Laptop Wrote Snake on the Third Try

Vibe coding means an AI agent writes code from your description, usually in the cloud and on an ever-pricier subscription. The author ran Qwen3-Coder locally on a laptop with an RTX 5070 (8 GB of VRAM) and 24 GB of RAM via the Strata app. The Snake game only worked on the third attempt: the model first reported it was ready, even though the game ended on the first tick. The conclusion: local is possible, but you need a detailed spec and verification of every step.

AI-processed from Habr AI; edited by Hamidun News
Vibe Coding Without the Cloud: Qwen3-Coder on an RTX 5070 Laptop Wrote Snake on the Third Try
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Strata provides a local API at 127.0.0.18080 for OpenCode and Claude Code
Key metric #2Qwen3 8B builds a cylinder and a sphere in Blender via MCP, but cannot hold a long chain of actions
Key metric #3During hours of generation the CPU reached 70–80 °C, with no throttling

Vibe coding means an AI agent writes code from your description, while you mostly formulate the task and check the result. It usually requires cloud Claude, GPT, or Gemini: subscriptions are getting more expensive, limits are being cut, and working code and keys from configs end up on someone else's servers. The author of the Habr review tested whether it's possible to do without the cloud on an ordinary gaming laptop with an RTX 5070 (8 GB of VRAM) and 24 GB of RAM. He ran the local Qwen3-Coder model, connected an agent to it, and asked it to write a Snake game. A working version only appeared on the third iteration, that is, after two unsuccessful fix attempts.

What the hardware is and how it all works

The test machine is a Maibenben X18A with a Ryzen 9 8945HX processor, an RTX 5070 graphics card, and 24 GB of RAM. That's modest for large models, so the author chose not to use Ollama or vLLM, and instead used the Strata app. It can split a model between system RAM and VRAM and detects the hardware automatically.

The idea is simple. Qwen3-Coder-30B-A3B in Q4_K_M compression weighs about 19 GB. It doesn't fit entirely into the 8 GB graphics card, but together with system RAM (24 + 8 = 32 GB) there's enough room. If system RAM isn't enough to hold all of the model's "experts," Strata enables low-RAM mode and reads the missing parts from the SSD. The app recommends leaving about 20% of memory free for other work.

Strata runs a local server with an API compatible with OpenAI and Anthropic at 127.0.0.1:8080. OpenCode, Codex CLI, and Claude Code can connect to it. For Claude Code, it's enough to set the ANTHROPIC_BASE_URL variable. The same agent can be switched between the local model and a paid subscription.

What happened in practice

The first test was Snake in a single HTML file. The model reported that everything was ready, but the game ended right after launch. The starting direction was {0, 0}, and the head ran into itself on the first tick. The second iteration brought four targeted fixes: the snake started moving, but it hit the wall before the player could press a key, and the "Restart" button disappeared. A working version with score, high score, and restart appeared in the third iteration. For that, the author rewrote the requirements as a list in a new session.

The second test was Blender via MCP. This is a protocol that lets a model call external tools: create an object, execute Python code, take a screenshot. The chain Qwen3 8B → blender-mcp → Blender built a cylinder with a radius of 1 m and a height of 2 m, with a 0.6 m sphere on top, on the first call. The author's practical rules:

  • Q4_K_M (about 5 GB for an 8-billion-parameter model) is a reasonable minimum for tool calling; Q5_K_M (about 5.8 GB) is more accurate.
  • Give the model one action per request: first "create an object," then "assign a material." The model does not hold long chains.
  • Watch the context: Blender tools add a couple of thousand tokens to the prompt, and 24K runs out quickly.

The third test was CAD tasks. The model built an enclosure for the ESP32-C3 (internal dimensions 56 × 32 × 20 mm, a cutout for USB-C, four standoffs, and a lip for the lid) with a FreeCAD script and no hints. A version in OpenSCAD was also produced. Gears were harder: calculating the involute tooth profile is difficult, and a small model either writes its own math with errors or confuses the library parameters. The author had to suggest the MCAD library right away. He also recommends running a separate verification prompt that checks the result against the task.

Heat, upgrades, and limitations

During hours of generation the processor reached 70–80 °C, the rear panel 50–55 °C, and the keyboard stayed cool. The author noticed no throttling. The RAM is a single stick, so you can add a second 24 GB module for 48 GB total. The author also installed a separate SSD for models and projects.

For large models he mentions the --n-cpu-moe flag in llama.cpp. Attention and shared layers stay on the graphics card, while the CPU processes the experts. This is how Qwen3-Coder-30B-A3B runs even on 8 GB of VRAM.

The limitations should be stated plainly. This is a single personal experiment on small tasks. It includes no measurements of generation speed in tokens per second and no quality comparison with cloud models. The author himself admits that Claude, GPT, and Gemini are still smarter. The model twice confidently reported a finished result that did not work, so verification remains the human's job.

The practical takeaway: local vibe coding suits firmware, simple enclosures, small 3D models, and scripts, especially when the code can't be sent outside. It requires a detailed spec, breaking tasks into steps, and manual checking. If you work under an NDA or fear a subscription being cut off, try the Strata and OpenCode combo on your own hardware. That way you'll see for yourself where the limits of what's possible lie.

Story

Key Questions Answered

What the hardware is and how it all works?

The test machine is a Maibenben X18A with a Ryzen 9 8945HX processor, an RTX 5070 graphics card, and 24 GB of RAM. That's modest for large models, so the author chose not to use Ollama or vLLM, and instead used the Strata app. It can split a model between system RAM and VRAM and detects the hardware automatically. The idea is simple. Qwen3-Coder-30B-A3B in Q4_K_M compression weighs about 19 GB. It doesn't fit entirely into the 8 GB graphics card, but together with system RAM (24 + 8 = 32 GB) there's enough room.

What happened in practice?

The first test was Snake in a single HTML file. The model reported that everything was ready, but the game ended right after launch. The starting direction was {0, 0}, and the head ran into itself on the first tick. The second iteration brought four targeted fixes: the snake started moving, but it hit the wall before the player could press a key, and the "Restart" button disappeared. A working version with score, high score, and restart appeared in the third iteration.

What are the key details on Heat, upgrades, and limitations?

During hours of generation the processor reached 70–80 °C, the rear panel 50–55 °C, and the keyboard stayed cool. The author noticed no throttling. The RAM is a single stick, so you can add a second 24 GB module for 48 GB total. The author also installed a separate SSD for models and projects. For large models he mentions the --n-cpu-moe flag in llama.cpp. Attention and shared layers stay on the graphics card, while the CPU processes the experts. This is how Qwen3-Coder-30B-A3B runs even on 8 GB of VRAM.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…