Quick Start
1
One restart
2
Via env var (crash loops / supervisors)
How It Works
The CLI flag setsPRAISONAI_NO_PLUGINS=1 for the gateway process and forwards safe_mode=True to the handler; the server then skips inbound hook registration and logs the SAFE MODE: line before it listens.
The flag has three equivalent names β --safe-mode, --pure, --no-plugins β matching the aliases already used by praisonai run / chat / code. The env var PRAISONAI_NO_PLUGINS=1 is equivalent and useful where editing CLI args is awkward.
What Is Suppressed vs. Kept
Safe mode suppresses only extensions β the core agent and your configured channels keep serving traffic.Safe mode never modifies config files and does not touch built-in gateway features such as forensics, memory-watchdog, scale-to-zero, or config reload β each keeps its own existing toggle.
When To Use It
Reach for safe mode first when you cannot tell whether a fault lives in the gateway core or in an extension.Common Patterns
Bisect a fault β if a safe-mode boot is green, the problem is a plugin or hook; if it is still red, it is the gateway core:start (not restart):
Best Practices
Prefer the CLI flag over the env var in bug reports
Prefer the CLI flag over the env var in bug reports
The flagβs intent is explicit in the command line, so a reproduction is unambiguous.
Watch for the SAFE MODE: log line
Watch for the SAFE MODE: log line
That
WARNING line is the single source of truth that safe mode is active and names how many inbound hooks were disabled.Remember restart stays in safe mode
Remember restart stays in safe mode
praisonai gateway restart replays the persisted safe-mode posture β exit with a fresh gateway start without the flag.Safe mode is not a security posture
Safe mode is not a security posture
It is a triage switch, not authorization β use proper channel and token controls to secure the gateway.
Related
Pure Mode
One-shot plugin suppression on
run / chat / codeGateway Inbound Hooks
The inbound HTTP triggers safe mode suppresses
Gateway Troubleshooting
Diagnose a misbehaving gateway
Plugins
Write, load, and configure plugins

