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

Building a Persistent Personal OS for Claude: Psychology Profile, Goals, and Live Context Injection via Notion + Shortcuts
A developer built a persistent Personal OS in Notion that injects a compressed 800-word psychological profile, goals, relationships, and live context (location, time, calendar, weather) into every Claude API call via iOS Shortcuts, with a nightly debrief loop to keep context fresh.

OpenClaw Reference Setup: 6-Week Production Use Case with Security Architecture
An industrial engineer built a personal AI agent on a Mac Mini M4 that handles morning briefings, invoice scanning, voice transcription, and file sync with a custom security system. The setup includes Claude Sonnet, MiniMax, and Qwen local models, runs 12 cron jobs daily, and costs $30-50/month.

OpenClaw AI Agent Manages LinkedIn Ads Workflow with 2.65% CTR
A developer built an AI agent named Patrick using OpenClaw to handle their entire LinkedIn Ads workflow, including data pipeline creation, ad copy generation, and approval via a custom review tool. One AI-generated ad achieved a 2.65% click-through rate, outperforming all manual ads.

OpenClaw Implementation for Logistics Company: Email Parsing and Status Updates
A developer configured OpenClaw for a small logistics company to automate email parsing, spreadsheet cross-referencing, and status updates, saving the owner 2-3 hours daily with minimal code.