Running OpenClaw with Local LLM on a Contabo VPS: Qwen 3:4B Hangs, Workarounds
A user on r/openclaw is testing OpenClaw with a local LLM on a Contabo VPS to cut token costs. Their setup: 6 CPU cores, 12 GB RAM, 200 GB SSD, no GPU, Ubuntu. They installed Ollama and used Codex to get the heartbeat running with a tiny model, but Qwen 3:4B keeps hanging after a compaction error. Here's what they found.
Hardware constraints
The VPS has no GPU, so model size is limited. The user's Contabo box: 6 vCPUs, 12 GB RAM, 200 GB NVMe. That's enough for small Ollama models, but Qwen 3:4B (4B parameters) is pushing it—especially during inference where memory spikes.
Qwen 3:4B issues
- First error: compaction error—likely from memory pressure or filesystem issues.
- After resolving that, the model just hangs—no output, no crash.
- Codex (the AI coding agent) said Qwen should work on the server, but it's unstable in practice.
The user gave up and went back to Grok as the default LLM because they have a good deal on it—but they want a reliable local option.
What works
The tiny Ollama model (likely tinyllama or phi3:mini) runs fine and handles the heartbeat without external API calls. The user suggests using a local model for basic reasoning and reserving cloud LLMs like Grok or Claude for complex tasks.
Practical tips
- Start with a smaller model:
llama3.2:1borphi3:mini(3.8B) may run better than Qwen 3:4B on 12GB RAM. - Monitor memory with
htoporfree -m—if swap is used, performance tanks. - Set
OLLAMA_NUM_PARALLEL=1to reduce memory usage. - Consider adding a swap file if you haven't:
fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile.
The thread is a reminder that local LLMs on low-end VPSs are possible but require careful model selection. If you're a non-programmer (like the original poster, a mortgage guy), the learning curve is steep, but the community is willing to help.
📖 Read the full source: r/openclaw
👀 See Also

Developer builds complex system in 20 hours using Claude AI without writing code
A developer with 28 years of experience used Claude AI to build a nearly complete product in one week and 20 hours without writing any code, describing the AI as a "wingman" that helps identify hazards and blind spots during development.

Fine-tuning llama3.2 3B for personalized health coaching using Apple Watch data and MLX
A developer fine-tuned llama3.2 3B on a Mac using MLX in 15 minutes to create a health coach LLM that analyzes personal Apple Health and Whoop data. The model provides specific health insights instead of generic advice, running locally with a 2GB memory footprint.

OpenClaw YouTube Channel Management Test with Comment Agent Interaction
A developer tested OpenClaw's ability to manage a YouTube channel, including daily video generation and automated commenting. The system handled topic selection, scripting, voiceover, thumbnails, effects, uploading, and scheduling, but encountered an endless conversation loop when a comment bot engaged with the automated reply agent.

Autonomous Magazine Pipeline with Claude Code: Agentic Architecture Breakdown
A seven-step pipeline using Claude Code as an editorial team produces up to five fact-checked, multilingual articles per headline. The system includes five sub-agents, institutional memory via embeddings, and automated fact-checking against a growing database.