Skip to main content
The gateway diffs gateway.yaml against the running config and restarts only affected agents or channels. The WebSocket server keeps running.

Quick Start

1

Run the gateway

praisonai gateway run gateway.yaml
2

Edit live

Change agent instructions or a single channel token in gateway.yaml and save. The watcher applies a selective reload within ~5 seconds (1s debounce).

Restart Scope

Changed sectionEffect
agents.*Recreate agents only — channels keep running
channels.<name>.*Restart only that channel
provider.*, guardrails.*Recreate agents
scheduler.*, routes.*, routing.*Full channel restart
Entire channels sectionFull channel restart
Invalid YAML on saveKeep last-known-good config
Full restart stops and starts all channels but does not restart the WebSocket server — connected clients stay connected.

Tuning

SettingDefaultDescription
Poll interval5.0sHow often the watcher checks the file
Debounce1.0sWait after last write before applying

Best Practices

Changing agents.* avoids dropping live Telegram/Discord sessions.
Edit one channel block to restart only that platform.
Invalid saves are ignored — the previous config keeps running.

Bot Gateway

Gateway server overview

Gateway Channel Supervision

Self-healing channels