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

✍️ OpenClawRadar📅 Published: May 17, 2026🔗 Source
Running Multiple AI Coding Agents with OpenClaw: Custom Provider Setup & Cross-Agent Memory Challenges
Ad

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.

Ad

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

Ad

👀 See Also

Developer Builds Couples Therapy App with Claude, Shares Prompt Engineering Insights
Use Cases

Developer Builds Couples Therapy App with Claude, Shares Prompt Engineering Insights

A developer built TherapAI, a couples emotional wellness PWA where partners each get a private AI companion powered by Claude Sonnet. The developer shares five specific prompt engineering techniques that made Claude feel more human and less like a chatbot.

OpenClawRadar
Using Claude to Automate App Store Connect Metadata Updates for 33 Languages
Use Cases

Using Claude to Automate App Store Connect Metadata Updates for 33 Languages

An indie iOS dev used Claude (via chat) to generate a Python script that authenticates with App Store Connect API, translates metadata into 33 languages, and pushes localized 'What's New' copy — replacing hours of manual work per update.

OpenClawRadar
Reddit User Runs 25+ Scheduled AI Agents as Personal Personas on Mac: Is This Useful or Just Complexity?
Use Cases

Reddit User Runs 25+ Scheduled AI Agents as Personal Personas on Mac: Is This Useful or Just Complexity?

A developer shares his personal AI setup with 25+ scheduled agents on a Mac, organized into four personas (Wife, Daughter, Son, and a monitor) that automate work, open-source projects, hobby builds, and GitHub PRs — and asks the community whether it's genuinely useful or complexity for its own sake.

OpenClawRadar
OpenClaw integrates with Kroger API for automated grocery shopping via AI agents
Use Cases

OpenClaw integrates with Kroger API for automated grocery shopping via AI agents

A developer used OpenClaw with the Kroger API to automatically add recipe ingredients to a shopping cart, leveraging Qwen3.5 for recipe generation and Gemini 3.1 Pro for setup. The integration required 6 hours of work and consumed 359K tokens for a single cart generation.

OpenClawRadar