OpenClaw Discord proxy fix for REST API timeout issues

If your OpenClaw Discord bot appears connected but can't send messages or run commands, you might be experiencing a proxy configuration issue where WebSocket connections work but REST API calls don't.
The Problem
A user on r/openclaw reported their Discord channel suddenly stopped working. Running openclaw doctor showed "Discord failed" and logs were spamming: "fetch failed UND_ERR_CONNECT_TIMEOUT".
The issue wasn't a broken proxy, but rather that the proxy setting in OpenClaw was sufficient for Discord WebSocket connections but not for REST API requests. This created a situation where the bot looked half-connected but couldn't actually function.
The Solution
Here's what fixed it:
- Keep the Discord proxy configuration in your OpenClaw JSON file
- Create a file at
~/.openclaw/proxy-preload.cjs - Set a global undici proxy in that file
- Start OpenClaw with
NODE_OPTIONS=--require=...to load the proxy configuration
Important Notes
- Use an HTTP proxy, not SOCKS5
- If you update OpenClaw, check whether the bundled undici path has changed
This specific configuration issue can cause Discord to appear connected while REST calls fail silently, preventing message sending and command execution.
📖 Read the full source: r/openclaw
👀 See Also

Governance Layer for Claude Agents: Hard Safety Boundaries and Live Traces in Production
A Claude API user built a lightweight governance layer below the agent to add hard safety boundaries, real-time traces, human-in-the-loop control via Telegram, and automatic checkpointing — solving silent failures and runaway token costs in long-running agent loops.

OpenClaw LLM Timeout Fix for Cold Model Loading
A Reddit user identified and fixed a specific timeout issue in OpenClaw where cold-loaded local LLMs would fail after about 60 seconds, even with higher general timeouts set. The solution involves adjusting the embedded-runner LLM idle timeout configuration.

Firefox Workaround for Claude.ai Freeze Issue Using Tampermonkey Script
A Reddit user shares a Tampermonkey script workaround for Firefox users experiencing freezes on Claude.ai. The script modifies Date.now() behavior to prevent timing conflicts that cause the interface to hang.

llama.cpp Massive Prompt Reprocessing with Coding Agents: Debugging KV Cache and Context Swapping
A user reports llama.cpp reprocessing 40k+ tokens on similar prompts when using opencode + pi.dev, despite high LCP similarity. Config details and suspected causes are shared.