Skip to main content
Pure Mode skips external-plugin discovery for a single run without touching your saved enable/disable state.
Running the long-lived gateway? --pure / --no-plugins also work on praisonai gateway start, where they persist across restart and additionally disable inbound YAML hooks. See Gateway Safe Mode.

Quick Start

1

Use the CLI flag

2

Or set the env var


How It Works

The CLI flag sets PRAISONAI_NO_PLUGINS only for the current run, then restores the prior value on return. The @scopes_no_plugins decorator wraps each command, so suppression is restored on return and never leaks into a later in-process call. The run emits one log line: β€œRunning without external plugins (β€”pure / PRAISONAI_NO_PLUGINS)”.
Pure Mode only changes whether entry-point plugins are discovered β€” it does not change precedence. Even in a normal (non-pure) run, entry-point plugins never override a shipped built-in: since PR #4176 the base PluginRegistry skips any entry point whose name (case-insensitive) collides with a built-in. See Plugin Precedence.

Configuration

Three surfaces suppress plugins. A constructor disabled=True wins; otherwise the env var decides. The env var accepts true, 1, or yes (case-insensitive). Pure Mode never mutates .praisonai/config.yaml or any persisted enable/disable state. Python parity forces suppression regardless of the env var:

Common Patterns

Reproduce a CI failure without whatever plugin your machine has enabled:
Debug a plugin regression by comparing a normal run with a plugin-free one:
Reuse in a notebook β€” one cell runs pure, the next picks plugins back up automatically:

Best Practices

Attach the plugin-free reproduction alongside the normal one β€” it makes obvious whether a plugin is involved.
The flag’s scope is guaranteed β€” it always restores the prior value on return.
A persistent export defeats the one-shot contract and hides real plugin behaviour from every command.
praisonai plugins doctor tells you whether plugins are suppressed for the current process.

Plugins CLI

List, enable, disable, and diagnose plugins

Plugins

Write, load, and configure plugins

Gateway Safe Mode

The same suppression for the long-lived gateway process