Chainvet
Reference

Environment Variables

Every CHAINVET_* environment variable across the analyzer, reports, server, and installer — plus NO_COLOR.

A complete reference of the environment variables Chainvet honors, grouped by where they take effect.

AI / LLM features

All AI is opt-in and a no-op by default — with it off, Chainvet runs fully offline and deterministically. See AI features.

VariableDefaultEffect
CHAINVET_LLM_FALLBACK_PARSERoff=1 enables AI-assisted parsing when both solc and tree-sitter fail.
CHAINVET_LLM_REPORToff=1 enables LLM review of findings: drop likely false positives, annotate the rest.
CHAINVET_LLM_ENDPOINThttp://127.0.0.1:11434Ollama endpoint.
CHAINVET_LLM_MODELqwen2.5-coder:7bOllama model.
CHAINVET_LLM_TIMEOUT_MSRequest timeout.
CHAINVET_LLM_NUM_PREDICTToken budget per request.
CHAINVET_LLM_DEBUGoff=1 enables LLM debug logging.

Fallback-parser tuning

These refine the AI fallback parser (each falls back to the general CHAINVET_LLM_* value when unset):

VariableEffect
CHAINVET_LLM_FALLBACK_DEBUGDebug logging for the fallback parser.
CHAINVET_LLM_FALLBACK_TIMEOUT_MSRequest timeout for the fallback parser.
CHAINVET_LLM_FALLBACK_NUM_PREDICTToken budget for the fallback parser.
CHAINVET_LLM_FALLBACK_MAX_SOURCE_BYTESMax source bytes sent to the model.
CHAINVET_LLM_FALLBACK_CHUNK_BYTESChunk size when splitting large sources.
CHAINVET_LLM_FALLBACK_MAX_CHUNKSMax number of chunks.

Reports

VariableDefaultEffect
CHAINVET_PDF_ENGINEauto (weasyprint, then wkhtmltopdf)Force which HTML→PDF engine -f pdf uses.

Server

VariableDefaultEffect
CHAINVET_SERVER_ROOTcurrent directoryDirectory that scans resolve against.
CHAINVET_SERVER_ADDR127.0.0.1:8080Listen address.

Installer (install.sh)

VariableDefaultEffect
CHAINVET_BINSprompt, else chainvetComponents to install: all, or a space-separated list.
CHAINVET_VERSIONlatestRelease tag to install.
CHAINVET_INSTALL_DIR/usr/local/bin, else ~/.local/binInstall prefix.
CHAINVET_MENU(arrow-key)basic for the numbered menu.
CHAINVET_NONINTERACTIVE(unset)1 to never prompt.

Terminal

VariableEffect
NO_COLORDisables colored output (same as --no-color).

On this page