The plugin performs a default global npm upgrade of its related XP-Gate package on the first chat message, with only a configuration opt-out. This is a warning-level staged payload risk; the reviewed code does not show credential collection or unrelated data exfiltration.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message after the OpenCode plugin starts, if a newer XP-Gate version is available and autoUpgrade is not set to false.
Impact
Runs newly fetched package code globally under the user’s account; the user must configure an opt-out to prevent the automatic update.
Mechanism
Checks the npm registry for the latest XP-Gate version, then invokes npm install -g for that version without an affirmative update request.
Evidence
index.tspackage.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json