# Install in the Claude desktop app

Have your agent install LeoPrevent in the Claude desktop app, or add it from the plugin Directory yourself and restart.

In the Claude desktop app, have Claude install LeoPrevent with the claude CLI, or add it yourself from the plugin Directory. Plugins load when the app starts, so either route ends with a restart.

## Before you start

- The Claude desktop app is installed and signed in.
- 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 a new Code session in the Claude app and send this prompt:

```text
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.
```

On the setup screen you see when you first sign in, **Open in Claude Code** starts the session with the prompt filled in.

Approve the commands it asks for, choose **Link installation** when the browser opens, and restart the app when it tells you to.

## Manual setup

**Open the plugin Directory**

In the message box, open the **+** menu and select **Add plugins…**.

**Add the marketplace**

Select **+** in the Directory's toolbar and paste the repository address. A trust warning is expected for a third party marketplace.

```text
https://github.com/leotrace-hq/leoprevent-plugin
```

**Install leoprevent**

Open the **Code** tab, find **leoprevent** and install it.

**Restart the app**

Plugins only load at startup.

**Connect to LeoPrevent**

Run this after the restart, then choose **Link installation** on the page it opens in your browser. Keep it running until it prints **LeoPrevent · Connected**.

```text
/leoprevent:login
```

## Check it worked

Paste this into your agent and let it reply. The finished turn is what checks in.

```text
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](https://help.leotrace.io/check-its-working/).

## Already installed this before?

Install from the **Code** tab, then restart. The marketplace is already there and your connection survives.

## Update

Open **Customize > Plugins > Browse > Code**, open the `leotrace` menu and select **Check for updates**. Auto update is in the same menu, and is off by default for third party marketplaces. Your connection survives the update.

## Remove

Open **Customize > Plugins**, find **leoprevent**, and uninstall it.

Source: https://help.leotrace.io/install-claude-desktop/ (updated 2026-11-19)
