~/.vectorlint/config.toml: global defaults that apply across all projects.envin your project root: project-level overrides that take precedence over the global config
Never commit API keys to version control. Add
.env to your .gitignore.LLM provider
Search provider
Required only for rules that use thetechnical-accuracy evaluator. If not set, rules that depend on external lookup return reduced-confidence results.
Review behavior
Lower values surface more findings (higher recall, more noise). Higher values surface fewer findings (higher precision, fewer false positives). See Handling false positives for guidance on when to adjust this.
Example configurations
OpenAI: global config.toml
Anthropic: project .env
With search provider
CI environment with higher confidence threshold
Precedence
When the same variable is set in multiple places, VectorLint resolves it in this order (highest precedence first):- Shell / CI environment variables
- Project
.envfile - Global
~/.vectorlint/config.toml - Built-in defaults
Related
- LLM Providers: configure your provider with full setup examples
- CI Integration: pass environment variables securely in pipelines
- Handling false positives: when and how to adjust
CONFIDENCE_THRESHOLD