Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
Most setups should use one Gateway because a single Gateway can handle multiple messaging connections and agents. If you need stronger isolation or redundancy (e.g., a rescue bot), run separate Gateways with isolated profiles/ports.
For most users, the simplest rescue-bot setup is:
--profile rescue19789This keeps the rescue bot isolated from the main bot so it can debug or apply config changes if the primary bot is down. Leave at least 20 ports between base ports so the derived browser/canvas/CDP ports never collide.
Use this as the default path unless you have a strong reason to do something else:
bash# Rescue bot (separate Telegram bot, separate profile, port 19789) openclaw --profile rescue onboard openclaw --profile rescue gateway install --port 19789
If your main bot is already running, that is usually all you need.
During
openclaw --profile rescue onboardrescueIf onboarding already installed the rescue service for you, the final
gateway installThe rescue bot stays independent because it has its own:
For most setups, use a completely separate Telegram bot for the rescue profile:
--profile rescue onboardopenclaw --profile rescue onboardIn practice, that means the rescue bot gets its own:
~/.openclaw/workspace-rescueThe prompts are otherwise the same as normal onboarding.
The rescue-bot layout above is the easiest default, but the same isolation pattern works for any pair or group of Gateways on one host.
For a more general setup, give each extra Gateway its own named profile and its own base port:
bash# main (default profile) openclaw setup openclaw gateway --port 18789 # extra gateway openclaw --profile ops setup openclaw --profile ops gateway --port 19789
If you want both Gateways to use named profiles, that also works:
bashopenclaw --profile main setup openclaw --profile main gateway --port 18789 openclaw --profile ops setup openclaw --profile ops gateway --port 19789
Services follow the same pattern:
bashopenclaw gateway install openclaw --profile ops gateway install --port 19789
Use the rescue-bot quickstart when you want a fallback operator lane. Use the general profile pattern when you want multiple long-lived Gateways for different channels, tenants, workspaces, or operational roles.
Keep these unique per Gateway instance:
OPENCLAW_CONFIG_PATHOPENCLAW_STATE_DIRagents.defaults.workspacegateway.port--portIf these are shared, you will hit config races and port conflicts.
Base port =
gateway.portOPENCLAW_GATEWAY_PORT--portgateway.portbrowser.controlPort + 9 .. + 108If you override any of these in config or env, you must keep them unique per instance.
browser.cdpUrlbrowser.profiles.<name>.cdpPortbrowser.profiles.<name>.cdpUrlbashOPENCLAW_CONFIG_PATH=~/.openclaw/main.json \ OPENCLAW_STATE_DIR=~/.openclaw \ openclaw gateway --port 18789 OPENCLAW_CONFIG_PATH=~/.openclaw/rescue.json \ OPENCLAW_STATE_DIR=~/.openclaw-rescue \ openclaw gateway --port 19789
bashopenclaw gateway status --deep openclaw --profile rescue gateway status --deep openclaw --profile rescue gateway probe openclaw status openclaw --profile rescue status openclaw --profile rescue browser status
Interpretation:
gateway status --deepgateway probemultiple reachable gateways detected© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine