Install Threatlint
Use the interface that fits your work. You can inspect a sample report or run the built-in security scanner before configuring a model provider.
Before you start
| Interface | What you need |
|---|---|
| Hosted web app | A permitted sign-in account; organization membership for a company profile |
| Installed desktop app | The app and access to the repository you want to inspect |
| CLI from source | Git and Python 3.9 or later |
| Workbench from source | Node.js 22.12 or later and npm; Python for CLI workflows and Word export |
Desktop and the local Workbench do not require a Threatlint sign-in. Model-provider and integration credentials are needed only for the services you choose.
Open the web app
- Open app.threatlint.dev, or the company link supplied by your administrator.
- Sign in with an available provider.
- Open a repository accessible to your web profile, or choose See a sample findings report.
Your web profile saves its own settings and history. It cannot browse your laptop's folders or reuse your desktop CLI logins. See Profiles.
Install from this checkout
git clone https://github.com/h0p3sf4ll/threatlint.git
cd threatlint
Install in a virtual environment so you do not need to modify a managed system Python. On macOS or Linux:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
threatlint --help
On Windows PowerShell:
py -3 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .
.\.venv\Scripts\python.exe -m threatlint --help
$env:THREATLINT_PYTHON = (Resolve-Path '.venv\Scripts\python.exe').Path
Use the same environment for later commands. If it is not activated, replace threatlint with the environment's Python followed by -m threatlint. The Windows setting above also selects that interpreter for local Workbench CLI workflows and Word conversion.
For the local browser Workbench:
npm --prefix web ci
npm --prefix web start
Open http://127.0.0.1:3000. To launch the desktop interface from the same checkout instead:
npm --prefix web run desktop
Desktop chooses an available local port and starts its backend. An installed desktop app can be opened through its usual shortcut.
Choose your workspace
Run client installers from the repository you want to review:
| Client | Command and first action |
|---|---|
| Claude Code | threatlint install --local -y; restart the client, then try /security-review or /threat-model src/auth |
| GitHub Copilot | threatlint install --copilot --local -y; reload a trusted VS Code workspace and choose an AppSec agent |
| Codex | threatlint install --codex --local -y; start a new chat and request $appsec-threat-modeler |
Omit --local for a user-level install. Copilot's user-level discovery depends on the client. Its installer copies agents and skills, not the checkout's optional prompt files. Re-run the installer rather than copying individual helper scripts. Remove a Codex installation with threatlint uninstall --codex --local -y from the same repository.
For a terminal review with a running local model:
threatlint run threat-model --provider lmstudio
threatlint run security-review --base HEAD~1 --head HEAD
threatlint run fp-review --findings ./results.sarif
Use --model MODEL_ID, --base-url URL, or --output-dir ./reports when needed. See Model providers for local and cloud setup.
Cloud providers
Configure Settings → Model provider before starting a model review. Choose a provider approved for the source and evidence you will send. Native Claude Code, Codex, and Copilot CLI workflows use their own sign-ins; API providers use their configured keys. Follow Model providers.
Models
Choose an available model in Settings or pass --model. The model guide explains defaults and the THREATLINT_SCAN_MODEL / THREATLINT_GENERAL_MODEL overrides. Installing Threatlint does not grant model access.
Where scanned repositories are cloned
Repository storage is optional. By default, automatic checkouts use the normal temporary location. To use another disk for Workbench downloads, AVIT reviews, or runtime working copies, mount the disk and create the destination folder first. Set THREATLINT_REPO_STORE, or the repoStore key in your local ~/.threatlint/org.json:
{"repoStore": "/path/to/mounted-drive/repositories"}
Replace the example with an existing folder on your machine. The environment setting takes precedence. Threatlint checks that it can write there before downloading; a missing, disconnected, read-only, or otherwise unwritable destination falls back to the normal temporary location. It does not create a missing optional storage path.
On macOS and Linux, paths beneath /Volumes, /mnt, /media, or /run/media must have an active mounted volume at or below that parent; a leftover unmounted folder is not enough. Ordinary custom folders are also supported. For a custom mount location, confirm that its disk is mounted before starting.
Each checkout gets a separate directory. That actual path is retained for later reads and saved Workbench sessions; changing the setting does not relocate an existing workspace. Disconnecting a disk during active work can still cause an I/O error. Reconnect it before reopening a workspace stored there.
Temporary review copies are normally removed afterward. Cleanup errors are reported without changing a completed review's result. Automatic AVIT cleanup removes only checkouts marked as created by Threatlint; existing unmarked user repositories are preserved. Use --keep-checkout in workflows that support it to retain a managed copy. Keep this machine-specific setting outside the repository. In the web app, it refers to storage available inside your server profile, not a disk attached to your laptop.
Check the result
You should be able to open the Workbench or run threatlint --help. A sample report is labelled synthetic; it is not a scan of your code. A real review should name inspected evidence and distinguish completed checks from proposed tests.
For a missing command, use the installation interpreter. For missing native commands, restart the client after installation. For missing credentials, run threatlint setup --check and follow AWS Parameter Store or the relevant integration guide. For missing exports, see No Word file.
Next steps
- Follow the Quickstart for a small first review.
- Use the Workbench or run a security scan.
- Read and share your Reports.