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

Running Claude Code 24/7 as a Background Agent — 2 Weeks of Experience
A developer shares their setup for running Claude Code continuously on a VPS, handling code reviews, refactoring, and deployments while they sleep.

Use OpenClaw to Build a Tank Battle Bot: Try AgenTank.ai
AgenTank.ai is a free browser game where you create a tank, give OpenClaw its API key and docs, and iterate on battle strategies using AI agents. No manual control — your agent keeps making the tank smarter.

Using OpenClaw's SkyClaw bot for personal expense tracking via Discord and Google Sheets
A user describes using SkyClaw, a cloud-native bot powered by OpenClaw, to log expenses through Discord messages and receipt images, which are automatically added to a Google Sheet without needing access to sensitive personal accounts.

Developer Reports AI Coding Challenges: Design Decisions and Real-User Debugging
A developer building an iOS app with Claude Code for 5 months reports that while the AI can generate functional code easily, making design decisions and debugging issues that only appear with real users are the most difficult parts. The app has 220k lines and real users are testing it.