Multiple Gateways (same host)
Most setups should use one gateway because a single gateway can already handle multiple messaging connections and agents. If you need stronger isolation or redundancy, such as a rescue profile, run separate gateways with isolated profiles and ports.Isolation checklist (required)
FASED_CONFIG_PATH— per-instance config fileFASED_STATE_DIR— per-instance sessions, creds, cachesagents.defaults.workspace— per-instance workspace rootgateway.port(or--port) — unique per instance- Derived browser ports must not overlap
Recommended: profiles (--profile)
Profiles auto-scope FASED_STATE_DIR + FASED_CONFIG_PATH and suffix service names.
Rescue-bot guide
Run a second Gateway on the same host with its own:- profile/config
- state dir
- workspace
- base port plus derived browser ports
How to install (rescue bot)
Port mapping (derived)
Base port =gateway.port (or FASED_GATEWAY_PORT / --port).
- browser control service port = base + 2 (loopback only)
- extension relay CDP port = browser control + 1
- Browser profile CDP ports auto-allocate from
browser.controlPort + 9 .. + 108 - canvas host is served on the Gateway HTTP server (same port as
gateway.port)
Browser/CDP notes (common footgun)
- Do not pin
browser.cdpUrlto the same values on multiple instances. - Each instance needs its own browser control port and CDP range (derived from its gateway port).
- If you need explicit CDP ports, set
browser.profiles.<name>.cdpPortper instance. - Remote Chrome: use
browser.profiles.<name>.cdpUrl(per profile, per instance).