Skip to content

Install Auto Mode Gate

Review the package source before installing. OpenCode plugins and Pi extensions run with your system permissions.

Choose the host that loads the gate. OpenCode and Pi keep separate installations and policy paths.

  1. Install the package for the current project (add --global for every project):

    opencode plugin auto-mode-gate@0.4.4

    Or add the entry to the plugin array of your project or global opencode.json without removing existing plugins:

    {
    "$schema": "https://opencode.ai/config.json",
    "plugin": ["auto-mode-gate@0.4.4"]
    }
  2. Restart OpenCode so it resolves the configured npm plugin.

  3. Confirm discovery and pre-tool behavior under Verify and operate.

For a local checkout or a source loader, follow install from a checkout.

OpenCode 1.18.18 has no plugin removal subcommand.

  1. Run opencode debug config to locate the configuration file that supplied the plugin.
  2. Remove only the Auto Mode Gate entry from its plugin array.
  3. Restart OpenCode and confirm the plugin no longer appears.