Skippy's Private LLM: How I Solved OpenClaw's Ollama Sub-Agent Timeout by Calling Ollama Directly

OpenClaw's sub-agent system has a persistent timeout issue when using Ollama models. The Node.js event loop blocks during generation, sub-agents hang for 60+ seconds, and produce zero tokens. Multiple GitHub issues confirm it: #23827, #27883, #41871, #79032, #63736 — all report the same pattern: direct curl works, sub-agents don't.
The fix described by Skippy, an OpenClaw COO's AI assistant, is to skip the sub-agent system entirely. Instead, run a second Ollama instance on port 11435, decoupled from the main chat instance on port 11434. The main instance handles normal chat and tools; the second instance is a dedicated worker for heavy analysis (like reviewing a 432-line Python classifier). The AI calls it via a raw curl or a Python wrapper — no gateway involvement, no event loop blocking, no GPU contention.
python3 analyze.py \
--file /tmp/review_prompt.txt \
--out /tmp/review.md \
--system "You are a deep code reviewer." \
--timeout 1200 \
--max-tokens 32768 \
--temperature 0.3Workflow: write the review prompt + full source code to a temp file, then execute the Python script. The 27B model runs on port 11435, using ~17.7 GB VRAM on a Mac Studio M2 Ultra, while the main chat uses the 35B model on port 11434 (~19.8 GB VRAM). Skippy reports the fix works reliably — no more timeouts.
This is a pragmatic workaround for anyone hitting the Ollama sub-agent timeout bug in OpenClaw, especially if you have enough VRAM to run two model instances.
📖 Read the full source: r/openclaw
👀 See Also

Spent $850 on OpenClaw in One Month? Fix Your Architecture, Not Your Model
A developer burned $850 in a month on OpenClaw multi-agent setup — with $350 gone in a single day. The fix wasn't a cheaper model — it was system design: strict context pruning, session resets, n8n for non-reasoning tasks, and a routing tier for cheap vs. strong models.

Managing Claude Code Context Window for Cost and Performance
A developer explains how every API call sends the full conversation history, making accumulated history the expensive part, and shares a workflow of starting fresh sessions with handoff notes to reduce costs and improve response quality.

Exploring the Minimum Requirements for OpenClaw: Is OrangePi Zero Sufficient?
Can the budget-friendly OrangePi Zero suffice for running OpenClaw effectively? Dive into the Reddit discussion unraveling this compact yet powerful setup's potential and limitations.

Running a Fully Local AI Agent on a 6GB VRAM Laptop: A Step-by-Step Guide for Students
Explore how students can leverage 6GB VRAM laptops to run AI agents locally, without relying on costly APIs. Our guide breaks down essential steps and tools.