CLI
Global flags, accepted on every command, before or after it (insidia --json doctor and insidia doctor --json are the same):
| Flag | Meaning |
|---|---|
--json | Print a JSON object instead of text. |
--yes | Do not ask for confirmation. Required when scope contains a non-local host. |
--config PATH | Config file. Default insidia.yaml. |
--quiet, -q | Print only the result. |
--no-color | Plain text, no color. |
What goes in the config file is insidia.yaml. insidia -h prints the same command list, with one line on what each command does. insidia --version prints the release and the commit it was built from.
insidia init --url http://127.0.0.1:PORT/pathinsidia init --url http://127.0.0.1:8080/hello --kind webWrites insidia.yaml in the current directory, or the file given by --config. --url sets targets.app.url. The host is added to scope only when it is localhost, 127.0.0.1, or ::1. A non-local host is refused; set authorized: true yourself before scanning it. --kind defaults to chat when the path ends with /chat, and is inferred otherwise. Without --url, the file uses http://127.0.0.1:8080/chat and the command tells you to set targets.app.url. Refuses to overwrite an existing file.
doctor
Section titled “doctor”Prints a checklist of the Python environment, engines, and model endpoints. Exits non-zero when a required check fails. Docker and engines that need a missing runtime, such as ZAP without Java, are reported but optional.
engines
Section titled “engines”insidia engines listinsidia engines installinsidia engines install garak zapinsidia engines install --dockerlist, or insidia engines alone, prints each known engine, its license, and whether it is installed. An engine that was downloaded but needs a runtime this machine lacks says what it needs. A check whose only engines are not installed is reported as not tested, with the engine to install. To install toolchains, name the engines, for example insidia engines install garak zap. With no names, install reports that built-in probes are available. --docker checks for Docker; named engine images are not available through this command yet.
A downloaded engine binary is checked against a pinned SHA-256 for that engine, version, and platform before it is unpacked. If the bytes do not match, the install stops. If this platform has no pin, the install stops unless you pass --allow-unverified.
INSIDIA_ENGINE_MIRROR is an optional http or https base URL, such as http://127.0.0.1:8765. It replaces only the https://github.com prefix of an engine download. The SHA-256 pin still names the canonical GitHub URL, so a file from the mirror that does not match that pin is not installed. A value that is not http or https is refused, and so is a download that is not on https://github.com. A localhost mirror is an install override and does not need authorized: true.
policy
Section titled “policy”insidia policy listinsidia policy show L1insidia policy validatevalidate loads the policy named in your config. Only L1 can be validated or scanned. L2 and L3 are listed definitions for future levels. See Benchmark.
insidia scan --policy L1 --coverage standard --yes --json| Flag | Values |
|---|---|
--policy | Use L1. The parser accepts L2 and L3, but execution rejects them as unavailable. Default is the policy in the config. |
--coverage | standard or thorough. Default is the coverage in the config. |
--open | Open the report in a browser when the scan finishes. Without it, the scan only prints the report path, so it is safe in CI, over SSH, and from an agent. |
Exit codes: 0 for a completed pass, 1 when any check found a problem, 2 for an incomplete run with no finding or an error, and 130 for cancellation. A finding exits 1 even when another target or check did not finish, so a CI gate on 1 never misses it. JSON includes execution_status and policy_verdict; review both. A scan never opens a browser unless you pass --open. Progress is printed while each control runs.
INSIDIA_VULN_DB=1 is the only opt-in for Trivy and osv-scanner vulnerability database downloads. Any other value, including an unset variable, keeps those downloads off. Trivy then uses --skip-db-update and --skip-java-db-update. osv-scanner uses --offline. With the variable set to 1, Trivy contacts mirror.gcr.io and ghcr.io, and osv-scanner contacts api.osv.dev and may contact api.deps.dev. Those hosts are outside scope. The variable does not let a scan contact an arbitrary target.
report
Section titled “report”insidia report --openinsidia report 20261008T120000Z-abc123Prints the report path for the latest run, or the run id you pass. --open also opens it in a browser and says whether that worked; on a machine with no browser it prints the path instead. See Report.
insidia reruninsidia rerun 20261008T120000Z-abc123Scans again with the policy and coverage recorded for that run. If insidia.yaml changed, the command stops until you pass --yes.
upgrade
Section titled “upgrade”insidia upgrade --checkinsidia upgradeinsidia upgrade --forceAsks GitHub for the latest release. --check only reports whether it is newer than your copy. Without --check, a newer release is installed from its tag with the tool that installed Insidia: uv tool install --force, pipx install --force, or pip install --upgrade in the same environment. --force reinstalls even when you already have the latest release. Engines are kept. On Windows the command is printed instead of run, because a running insidia.exe cannot be replaced; the JSON object carries it as command. A copy run from a git checkout is not changed; the command tells you to git pull. Exits 2 when GitHub cannot be reached or the installer fails, and prints the install command to run by hand.
insidia mcpinsidia mcp --allow-remoteSpeaks MCP over stdio. Tools: init, doctor, scan, findings, report. scan requires confirmed: true and reads insidia.yaml. It does not accept a URL. Localhost, 127.0.0.1, and ::1 run by default. A scope that names any other host is refused unless the person who starts the server passes --allow-remote or sets INSIDIA_MCP_ALLOW_REMOTE=1. The calling model cannot turn that on. See Use a coding agent.