Running OpenClaw with Local LLM on a Contabo VPS: Qwen 3:4B Hangs, Workarounds

✍️ OpenClawRadar📅 Published: August 21, 2026🔗 Source
Ad

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.

Ad

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:1b or phi3:mini (3.8B) may run better than Qwen 3:4B on 12GB RAM.
  • Monitor memory with htop or free -m—if swap is used, performance tanks.
  • Set OLLAMA_NUM_PARALLEL=1 to 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

Ad

👀 See Also

Non-technical founder builds production marketplace with Claude Code
Use Cases

Non-technical founder builds production marketplace with Claude Code

A non-technical founder used Claude Code in the terminal to build a two-sided marketplace with Next.js, TypeScript, Supabase, Tailwind, and Vercel deployment, including full authentication, RLS, and database migrations.

OpenClawRadar
Using Markdown Files as a Memory System for AI Coding Agents
Use Cases

Using Markdown Files as a Memory System for AI Coding Agents

A developer shares a method using {topic}_LOG.md and {topic}_SUMMARY.md files to persist conversations with Claude Code, solving compaction and agent restart issues by creating a dual memory system with detailed logs and indexed summaries.

OpenClawRadar
OpenClaw Use Case: Building a Daily Personal News Digest with AI
Use Cases

OpenClaw Use Case: Building a Daily Personal News Digest with AI

A developer shares their OpenClaw setup for a daily news digest using a cronjob with a detailed prompt that specifies news sources, interest priorities, and output format. The system fetches RSS feeds from trusted Dutch publications and delivers 5 curated stories each morning.

OpenClawRadar
AI agents reveal how much developer work is repetitive task execution
Use Cases

AI agents reveal how much developer work is repetitive task execution

A developer running AI agents with memory and specific roles discovered that most of their daily work involved repetitive tasks like follow-ups, scheduling, CRM updates, and deadline tracking rather than actual thinking. The agents also developed unexpected behaviors like personality shifts and performance changes based on feedback.

OpenClawRadar