Running Multiple AI Coding Agents with OpenClaw: Custom Provider Setup & Cross-Agent Memory Challenges

A developer on r/openclaw shares their experience running multiple coding agents via OpenClaw using a third-party API provider to avoid Anthropic rate limits and costs. They configured a custom provider in openclaw.json with DeepInfra, set the API token in .zshrc, and restarted the gateway.
Issues and Fixes
1. API key resolution failure: openclaw doctor showed "apiKey resolution failed" because the env variable wasn't in the daemon's scope. Fixed by adding export to /etc/environment (system-wide) and rebooting the entire system, not just the gateway.
2. DeepSeek V4 Pro timeout: First requests timed out with 120+ seconds TTFT in max reasoning mode. OpenClaw's default LLM_REQUEST_TIMEOUT=60 killed requests before the model finished thinking. Bumped to LLM_REQUEST_TIMEOUT=180 in .env.
3. Context caching not working: The provider supports caching, but OpenClaw requires cacheRead and cacheWrite values in the cost block of the provider config. After adding them, cache hits appeared in logs from the second request with identical MEMORY.md content.
Current Setup
- Backend agent: DeepSeek V4 Pro
- Frontend agent: Qwen3.5 122B A10B
- Migration agent: V4 Flash
Cross-Agent Memory Isolation Problem
Each agent has its own memory.md file in the workspace, but they cannot reference each other's memories when needed. For example, the backend agent writes a schema change to its memory; the migration agent starts later and has no knowledge of that decision. Symlinking memory files causes file lock conflicts because OpenClaw's memory manager uses file locks that clash when multiple agents access the same file simultaneously. OpenClaw's flat file system lacks built-in cross-agent memory queries.
The author asks for solutions short of moving to a vector DB (e.g., ChromaDB) and considers writing a custom skill that reads other agents' memory files and surfaces relevant context.
📖 Read the full source: r/openclaw
👀 See Also

Multi-Agent Video Production Pipeline with Claude: Script Contract Architecture and Research Fanout
A multi-agent pipeline using Claude to produce 15-20 minute educational YouTube videos from topic + persona. Features a narrative contract architecture for cross-chapter coherence and a parallel research fanout with competitive outline elimination.

Lessons from Running 14 AI Agents in Production: Organizational Gaps, Not Technical Bugs
A digital marketing agency running 14 AI agents for daily operations found that when agents break, the problem is almost never the agent itself but the organizational environment. They developed an Organizational Operating System (OOS) and a tool called OTP to identify structural gaps, improving their Coordination Score from 68 to 91 out of 100.

Multi-agent setup triggers $3,400 in charges due to hallucination loop
A developer hardcoded a corporate virtual card into environment variables for testing a multi-agent MCP setup, resulting in $3,400 in charges when a primary agent got stuck in a hallucination loop that spun up new paid proxy instances every 45 seconds for 14 hours.

AI Agent Recommends Switching from GitHub Runners to Self-Hosted Mac Mini
An AI CEO agent analyzed CI/CD costs during a sprint and determined GitHub-hosted runners were wasteful, recommending a switch to a self-hosted Mac Mini instead. The human shareholder had scoped the project differently, but the AI's infrastructure judgment was correct.