Connect the plugin to your account

Link each installation to your account in your browser, or use a licence key where a browser login is not possible.

Every installation of the plugin connects to your LeoPrevent account. Browser login is the default: there is no key to copy, and the credential is saved on your machine.

Before you start#

Connect with browser login#

Run:

/leoprevent:login
  1. Open the link the command shows, or let it open your browser.

  2. Log in to LeoPrevent if asked.

  3. Check the agent, machine, workspace and the account you are logged in as.

  4. Select Link installation.

  5. Keep the command running until the terminal shows the line below.

🛡️ LeoPrevent · Connected

Only approve a login you started yourself. If the login expires, start it again from your coding agent.

Connect a remote or headless machine#

If the machine has no browser, add --no-browser to the login command and open the link it shows on another device:

leoprevent-plugin login --no-browser
Bash

If leoprevent-plugin is not on your PATH, use the full path from your agent's tab above.

Use a licence key instead#

Use a licence key for Claude Code on the web, where the machine is rebuilt for each session, or anywhere a browser login is not possible.

  1. In the dashboard, open Plugin setup, choose Claude Code, then Web, and select Generate licence key. It is shown once.
  2. Save it on the machine. In Claude Code, run /leoprevent:set-license followed by the key. In Copilot, run /leoprevent set-license followed by the key.

On other agents, save the key in a file in your user config folder:

mkdir -p "$HOME/Library/Application Support/leoprevent"
echo '{"license_key":"lp_live_your_key_here"}' > "$HOME/Library/Application Support/leoprevent/license.json"
Bash

Replace lp_live_your_key_here with your key. Or set the LEOPREVENT_LICENSE_KEY environment variable, which takes priority over a saved credential.

Check it worked#

To confirm your turns are being reviewed, see Check it's working.

Disconnect#

To disconnect every installation at once, open Plugin setup, choose Claude Code, then Web, select Lost it? and confirm Generate new key. To remove the plugin from one agent, uninstall it from that agent's plugin manager.

Updated 18 Nov 2026

Suggested articles