flintai-cli work for you. Set these environment variables to customize scans and evals. Defaults work out of the box.
Using environment variables in config.json
Reference environment variables in your config file using${VAR_NAME} syntax:
- API keys:
"key": "${ANTHROPIC_API_KEY}" - Endpoints:
"host": "${STAGING_URL}" - Any string value:
"name": "${AGENT_NAME}"
API Keys
Flint AI CLI uses an LLM to analyze your agent code and filter false positives. Choose one provider:- Google Gemini (recommended)
- OpenAI
- Anthropic
- LiteLLM
GEMINI_API_KEYFree tier available. Get your key: aistudio.google.com/apikey
How to set your API key
- flintai init (recommended)
- Manual setup
Run the interactive setup wizard:This creates
~/.flintai/.env (provider, API key, runtime settings) and a ~/.flintai/config.json skeleton.GENERATOR_MODEL
Controls which LLM reads your agent code and filters false positives during scan.Format:
<provider>:<model-name>Supported providers: gemini, openai, anthropic, litellmWhy this matters:- Faster models = faster scans (Gemini Flash is fastest)
- More capable models = better false positive filtering (GPT-4, Claude Opus)
- Cost varies by provider and model
- Scan: AI reasoning to analyze agent code and filter false positives
- Eval: LLM-as-judge scoring, security probe generation
Scan Limits
Control how much agent code Flint AI CLI scans. Raise these if scanning large codebases.Maximum analysis iterations per agent file.When to change: Large agents with complex logic need more iterations to analyze thoroughly.Example:
Maximum number of files to analyze.When to change: Scanning a very large codebase (100+ Python files).Example:
Maximum tokens allowed for file content during scan. Scan stops when limit is reached.When to change: Scan stops early with “token budget exhausted” on large codebases.Example:
Maximum seconds for analysis before timeout (default is 10 minutes).When to change: Scanning times out on large codebases or slow models.Example:
Eval Limits
Thread pool size for concurrent evaluation tasks when using the
thread executor.When to change: Tune up to increase eval throughput on capable machines, or down to limit resource use.Example:Logging
Control verbosity of
flintai-cli logs.Options:DEBUG— Verbose logging (useful for troubleshooting)INFO— Standard logging (default)WARNING— Only warnings and errorsERROR— Only errors
Need help? See Troubleshooting for common configuration issues.