Installation¶
Prerequisites¶
- Python 3.11 or later
- uv installed
Install the CLI¶
Install clair as a global CLI tool using uv:
This installs the clair command globally. uv isolates the tool's dependencies so they don't interfere with your project's virtualenv.
Verify the installation:
Add clair to your project¶
Your Trouve files import from clair directly (e.g. from clair import Trouve). To get IDE autocompletion and type checking, add clair as a dependency in your project:
Upgrade the CLI¶
Install from source (development)¶
Clone the repo, then sync dependencies and run via uv:
If the editable install seems broken: