Install in Claude Code
Have your agent install and connect LeoPrevent in the Claude Code terminal, or do it yourself with four commands.
In the Claude Code terminal, LeoPrevent installs from its public marketplace. Have Claude Code do it for you, or run the commands yourself.
Before you start#
- Claude Code is installed and signed in. Connecting LeoPrevent does not sign you in to Claude.
- You have a LeoPrevent account.
- You work in a git repository.
Set it up with your agent#
Your agent installs the plugin and opens your browser to connect it. The same prompt is in the dashboard under Plugin setup, with Copy.
Start Claude Code in your terminal and send this prompt:
Install LeoPrevent for this project from https://github.com/leotrace-hq/leoprevent-plugin. Use the claude CLI: `claude plugin marketplace add leotrace-hq/leoprevent-plugin`, then `claude plugin install leoprevent@leotrace`. Reload plugins with `/reload-plugins` or restart Claude Code, then run `/leoprevent:login` in Claude Code. If you cannot invoke it, tell me to run it. Keep login running until it prints "LeoPrevent · Connected". Never print or ask me for a licence key. Tell me what I need to approve or restart myself. Verify with a real turn, not by running the hook by hand.Approve the commands it asks for and choose Link installation when the browser opens. There is no licence key to copy.
Manual setup#
Run these one at a time, since each opens its own prompt.
- 1Add the marketplace
/plugin marketplace add leotrace-hq/leoprevent-plugin - 2Install the plugin
/plugin install leoprevent@leotrace - 3Reload, only if it did not activate itself
If
/leoprevent:loginis not recognised, reload or start a new session./reload-plugins - 4Connect to LeoPrevent
Run this, then choose Link installation on the page it opens in your browser. Keep it running until it prints LeoPrevent · Connected.
/leoprevent:login
Check it worked#
Paste this into your agent and let it reply. The finished turn is what checks in.
Hello! I just installed LeoPrevent. Say hi back so this turn finishes.The installation then shows as Live in Plugin setup. See Check it's working.
Already installed this before?#
Run only the install command. The marketplace stays registered and your connection survives.
Update#
Open /plugin, refresh the leotrace marketplace, then update leoprevent. Your connection survives the update.
For automatic updates, open /plugin, go to Marketplaces, select leotrace and enable auto update. It is off by default for third party marketplaces.
Remove#
Open /plugin, find leoprevent under Installed plugins, and uninstall it. See Uninstall LeoPrevent.