Replacing OpenClaw's Default Memory with Redis and Qdrant for Production Multi-Agent Systems

Scaling OpenClaw Memory for Production Multi-Agent Systems
A developer running OpenClaw in a production multi-agent setup on a self-hosted VPS for two months found that the default memory layer became problematic at scale. While the initial Markdown approach and later SQLite memory work fine for local use, they fall apart with multiple agents running in parallel, sessions spanning days, and the need for agents to retrieve relevant context from past work. The specific issues included: no semantic search, no cross-agent memory sharing, and messy concurrent writes.
Redis + Qdrant Architecture Solution
The developer rebuilt the memory system with the following architecture:
- Redis for hot ephemeral state: Current task, recent context window, tool call cache with TTL
- Qdrant for persistent vector memory: Past episodes, observations, extracted knowledge
- Three collections in Qdrant: agent_episodes, agent_observations, agent_knowledge
- Cross-agent knowledge sharing: Episodes are scoped per agent, while knowledge is shared across all agents
- Time-decay reranking: Prevents stale memories from polluting retrieval
- Redis pub/sub: Used for lightweight agent-to-agent event signaling
- Batch embedding + async Qdrant upserts: Prevents the agent loop from blocking on writes
Implementation Details
The developer documented the full implementation including architecture decisions, HNSW configuration reasoning, the memory manager class, how they hooked into the observation loop, and cleanup/pruning strategy. For embedding models, they're using text-embedding-3-small and considered going fully local with nomic-embed-text but didn't need to yet.
📖 Read the full source: r/openclaw
👀 See Also

Modifying OpenClaw's default system prompt to bypass content restrictions
A user modified OpenClaw's configuration file to change the default system prompt from "You are a helpful, respectful and honest assistant" to a custom prompt that ignores external safety filters, effectively removing content restrictions. The process involves editing config.js in the node-llama-cpp installation directory.

Practical Multi-Agent System Architecture Advice from Experience
A developer shares five specific patterns for building multi-agent AI systems based on experience running a 7-agent daily system: start with one agent, use an orchestrator pattern, implement shared memory with JSON files, route models by task, and add confirmation loops.

You Can Run OpenClaw: Three Paths to an AI Agent (No Terminal Required)
OpenClaw's one-liner installer, managed platforms, and local ollama models remove the technical barrier. Pick your path and start with boring tasks.

Qwen 3.5 Tool Calling Fixes for Agentic Use: Server Status and Client-Side Workarounds
A detailed analysis identifies four bugs that break Qwen 3.5 tool calling in agentic setups, tracks server fixes as of April 2026, and provides a client-side Python function to parse XML tool calls when servers fail.