# Set up another machine or reinstall

What carries over when you reinstall the plugin or add a second machine, and when you need to connect again.

You don't repeat most of the first time setup. Your connection is saved in your user config folder, outside the plugin, so reinstalls and updates on the same machine keep it.

## Reinstalling on the same machine

- **The marketplace stays registered.** Adding it again is harmless.
- **Codex keeps its hook trust** for the same version. If an update changes the hooks, Codex asks you to trust them again, and LeoPrevent doesn't run in Codex until you do.

## A new machine

A new machine is a new connection. Install the plugin there and run the login.

## Cloud sessions

Claude Code on the web rebuilds the machine, so a browser login is lost each time. Use the `LEOPREVENT_LICENSE_KEY` environment variable in the environment settings instead. See [Install in Claude Code on the web](https://help.leotrace.io/install-claude-code-web/).

## Check it worked

Whatever you changed, the check is the same: finish a real turn in a git repository, then confirm your agent shows **Live** in **Plugin setup**. See [Check it's working](https://help.leotrace.io/check-its-working/).

Source: https://help.leotrace.io/set-up-another-machine/ (updated 2026-11-18)
