Install Auto Mode Gate
Review the package source before installing. OpenCode plugins and Pi extensions run with your system permissions.
Install from npm
Section titled “Install from npm”Choose the host that loads the gate. OpenCode and Pi keep separate installations and policy paths.
-
Install the package for the current project (add
--globalfor every project):opencode plugin auto-mode-gate@0.4.4Or add the entry to the
pluginarray of your project or globalopencode.jsonwithout removing existing plugins:{"$schema": "https://opencode.ai/config.json","plugin": ["auto-mode-gate@0.4.4"]} -
Restart OpenCode so it resolves the configured npm plugin.
-
Confirm discovery and pre-tool behavior under Verify and operate.
Version 0.4.4 requires Pi 0.84.2 for persistent judge controls and explicit
secondary-model thinking.
-
Install globally (add
-lfor a project-local installation):pi install npm:auto-mode-gate@0.4.4 -
Confirm the package entry and runtime state under Verify and operate.
For a local checkout or a source loader, follow install from a checkout.
Remove an installation
Section titled “Remove an installation”OpenCode 1.18.18 has no plugin removal subcommand.
- Run
opencode debug configto locate the configuration file that supplied the plugin. - Remove only the Auto Mode Gate entry from its
pluginarray. - Restart OpenCode and confirm the plugin no longer appears.
Remove the package with the same scope used to install it:
pi remove npm:auto-mode-gatepi remove npm:auto-mode-gate -l