OpenClaw Multiple Agents Conflicting — How to Separate Instances (2026)

Fix conflicts when running multiple OpenClaw agents. Learn how to properly isolate instances with separate ports, configs, and data directories.

Why Multiple Agents Conflict

Running multiple OpenClaw instances on the same server causes conflicts when they share resources. The most common issues are port conflicts, Telegram bot token conflicts (409 errors), shared data corruption, and competing for the same webhook endpoints.

Docker Compose Setup for Multiple Agents

version: "3.8"

services:
  # Agent 1: Customer Support Bot
  openclaw-support:
    image: ghcr.io/openclaw/openclaw:latest
    container_name: openclaw-support
    ports:
      - "3001:3000"
    volumes:
      - ./support/openclaw.json:/app/openclaw.json:ro
      - ./support/data:/app/data
    environment:
      - OPENCLAW_INSTANCE_NAME=support-bot
    restart: unless-stopped

  # Agent 2: Sales Bot
  openclaw-sales:
    image: ghcr.io/openclaw/openclaw:latest
    container_name: openclaw-sales
    ports:
      - "3002:3000"
    volumes:
      - ./sales/openclaw.json:/app/openclaw.json:ro
      - ./sales/data:/app/data
    environment:
      - OPENCLAW_INSTANCE_NAME=sales-bot
    restart: unless-stopped

  # Agent 3: Internal Assistant
  openclaw-internal:
    image: ghcr.io/openclaw/openclaw:latest
    container_name: openclaw-internal
    ports:
      - "3003:3000"
    volumes:
      - ./internal/openclaw.json:/app/openclaw.json:ro
      - ./internal/data:/app/data
    environment:
      - OPENCLAW_INSTANCE_NAME=internal-bot
    restart: unless-stopped

Key Isolation Requirements

1. Separate Ports

Each instance must listen on a different port:

# Instance 1: port 3001
# Instance 2: port 3002
# Instance 3: port 3003

2. Separate Bot Tokens

Each Telegram/WhatsApp bot needs its own token. Never share tokens between instances:

# support/openclaw.json
{ "telegram": { "botToken": "TOKEN_FOR_SUPPORT_BOT" } }

# sales/openclaw.json
{ "telegram": { "botToken": "TOKEN_FOR_SALES_BOT" } }

3. Separate Data Directories

mkdir -p support/data sales/data internal/data

4. Reverse Proxy Routing

# Nginx config for multiple agents
server {
    listen 443 ssl;
    server_name support.your-domain.com;
    location / { proxy_pass http://127.0.0.1:3001; }
}
server {
    listen 443 ssl;
    server_name sales.your-domain.com;
    location / { proxy_pass http://127.0.0.1:3002; }
}

Frequently Asked Questions

Can I run multiple OpenClaw agents on one server?

Yes, but each instance needs its own port, data directory, and configuration file. They should also use separate bot tokens if connected to Telegram or WhatsApp to avoid 409 Conflict errors.

Why are my OpenClaw instances conflicting?

Conflicts occur when instances share the same port, bot token, data directory, or API endpoint. Each instance must be fully isolated with its own resources to avoid interference.

How much resources do multiple instances need?

Each OpenClaw instance typically needs 256-512MB RAM and minimal CPU. Three instances on a 2GB RAM server should work fine. Monitor memory usage and scale up if needed.

Related Articles

Multi-Agent Made Simple

Deploy isolated OpenClaw agents with proper routing and separation — automatically managed.

Deploy Multiple Agents