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

Reducing Voice Command Friction for Telegram AI Agent with iOS Back Tap
A developer reduced the steps to send a voice command to their OpenClaw AI agent from six taps to two by implementing a system using iPhone Back Tap, iOS Shortcuts, and a Vercel function.

Graduate Student Uses Claude to Build AI Image Detection Experiment
A graduate student at The New School collaborated with Claude to build a website called InPixelsWeTrust.org that tests whether users can distinguish real photos from AI-generated images in 6 rounds with 10-second decisions.

OpenClaw YouTube Channel Management Test with Comment Agent Interaction
A developer tested OpenClaw's ability to manage a YouTube channel, including daily video generation and automated commenting. The system handled topic selection, scripting, voiceover, thumbnails, effects, uploading, and scheduling, but encountered an endless conversation loop when a comment bot engaged with the automated reply agent.

Claude Opus 4.6 Used to Build Dating App with 700+ Users in One Month
A developer used Claude Opus 4.6 to build a complete dating app with Flutter frontend, Node.js backend, and MongoDB database. The app gained 700+ registered users in about a month and includes matching, chat, and referral features.