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#
- The plugin is installed in your coding agent. See Supported agents and environments.
- You can sign in to the dashboard at prevent.leotrace.io.
Connect with browser login#
Run:
/leoprevent:loginAsk Codex to run the LeoPrevent login. If it cannot find it, run this yourself, replacing <version> with the installed version:
~/.codex/plugins/cache/leotrace/leoprevent/<version>/bin/leoprevent-plugin loginSend this to Copilot chat:
Run LeoPrevent login using the installed plugin binary and wait for completion.Run this in a terminal:
~/.cursor/plugins/local/leoprevent/bin/leoprevent-plugin login --agent=cursorOn Windows, in PowerShell:
& "$HOME\.cursor\plugins\local\leoprevent\bin\leoprevent-plugin.exe" login --agent=cursorSend this to Devin chat:
Run the installed LeoPrevent binary with login --agent=devin and wait for completion.Run this in a terminal:
~/.hermes/leoprevent/bin/leoprevent-plugin login --agent=hermes-
Open the link the command shows, or let it open your browser.
-
Log in to LeoPrevent if asked.
-
Check the agent, machine, workspace and the account you are logged in as.
-
Select Link installation.
-
Keep the command running until the terminal shows the line below.
🛡️ LeoPrevent · ConnectedOnly 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-browserIf 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.
- In the dashboard, open Plugin setup, choose Claude Code, then Web, and select Generate licence key. It is shown once.
- Save it on the machine. In Claude Code, run
/leoprevent:set-licensefollowed by the key. In Copilot, run/leoprevent set-licensefollowed 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"mkdir -p "$HOME/.config/leoprevent"
echo '{"license_key":"lp_live_your_key_here"}' > "$HOME/.config/leoprevent/license.json"New-Item -ItemType Directory -Force "$env:AppData\leoprevent" | Out-Null
'{"license_key":"lp_live_your_key_here"}' | Out-File -Encoding ascii "$env:AppData\leoprevent\license.json"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.