Skip to main content
VectorLint reads configuration from environment variables at runtime. You can set them in two places:
  • ~/.vectorlint/config.toml: global defaults that apply across all projects
  • .env in your project root: project-level overrides that take precedence over the global config
In CI, pass them directly as pipeline environment variables or secrets. See CI Integration for examples.
Never commit API keys to version control. Add .env to your .gitignore.

LLM provider

Search provider

Required only for rules that use the technical-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):
  1. Shell / CI environment variables
  2. Project .env file
  3. Global ~/.vectorlint/config.toml
  4. Built-in defaults