Installation
OpenGrep not found
OpenGrep not found
Symptom: Warning message After installation, verify:See OpenGrep installation for manual installation or other options.
OpenGrep not found — skipping pattern scan when running flintai scanCause: OpenGrep is required for scan functionality but not installedFix: Install OpenGrep using the shell installer:- Linux / macOS
- Windows PowerShell
Which API key do I need?
Which API key do I need?
flintai scan uses an LLM to analyze your agent code. Run flintai init and provide an API key from one of these providers:- Google Gemini - Get your key from aistudio.google.com/apikey (free tier available)
- OpenAI - Get your key from platform.openai.com/api-keys
- Anthropic - Get your key from console.anthropic.com/settings/keys
Python version too old
Python version too old
Symptom:
pip install flintai-cli fails with an error that the package requires a different Python version.Cause: You’re running a Python version older than 3.11.Fix:- Install Python 3.11 or later from python.org
- Verify:
python3 --version - Reinstall Flint AI CLI:
pip install flintai-cli
ImportError naming the full extra
ImportError naming the full extra
Symptom: A command stops with an
ImportError such as garak is required for garak probes and detectors. Install it with: pip install flintai-cli[full], or the same message for transformers.Cause: Garak probes, toxicity detection, and HuggingFace models rely on machine-learning backends that aren’t part of the standard install. They live in the optional full extra, which keeps the default download roughly 2 GB smaller.Fix: Install the extra. Quote it — in zsh, the default shell on macOS, an unquoted [full] is a glob pattern and the command fails with no matches found:Command not found after install
Command not found after install
Symptom: Do this in each new terminal session before you run
flintai: command not found after installingCause: Most often, the virtual environment you installed into isn’t active — a new terminal session starts outside it. Less often, you installed outside a virtual environment and the install location isn’t on your PATH.Fix:If you installed in a virtual environment, reactivate it from the directory you created it in:flintai.If you installed outside a virtual environment, add the install location to your PATH:- Find where pip installed it:
pip show flintai-cli - Add that location to your PATH in
~/.bashrcor~/.zshrc: - Reload:
source ~/.bashrc(or restart terminal)
How do I view Flint AI CLI logs?
How do I view Flint AI CLI logs?
Every run writes a log file, To capture console output as well, redirect stderr:Increase verbosity with environment variable:
flintai_<timestamp>.log by default. Use --log to choose the path:Scan
No scannable targets found
No scannable targets found
Symptom: Scan stops immediately with an error reading
No scannable targets foundCause: Nothing under the path qualified for scanning. A file is picked up only if it’s a requirements.txt, or a .py file that imports a supported framework — framework imports are what put a file in scope, not just the extension.Fix:- Verify your agent code imports a supported framework
- Check you’re scanning the correct directory
- Make sure files have a
.pyextension.__init__.pyis always skipped, so scanning a package whose only file is__init__.pyfinds nothing
requirements.txt and framework-importing siblings.Framework not detected
Framework not detected
Symptom: Files scanned but framework shows as “unknown”Cause: Import pattern not recognizedFix: Check your import matches the supported frameworks list exactly
Missing API key: AI reasoning disabled
Missing API key: AI reasoning disabled
Symptom: Scan runs but no AI reasoning or findingsCause: No GENERATOR_MODEL API key configuredFix: Run
flintai init to configure your API keyTimeout errors: ADK_LOOP_TIMEOUT_SECS exceeded
Timeout errors: ADK_LOOP_TIMEOUT_SECS exceeded
Symptom: Scan fails with timeout errorCause: Large codebase or long AI reasoning timeFix: Increase timeout in your environment:Or use a faster GENERATOR_MODEL like
gemini:gemini-3.1-flash-lite in ~/.flintai/.envWhy aren't my files being scanned?
Why aren't my files being scanned?
Flint AI CLI only analyzes Python files that import one of the supported frameworks. Files without these imports are skipped.Check that your agent code:
- Uses Python (not TypeScript/JavaScript)
- Imports at least one supported framework
- Has valid Python syntax
How long does a scan take?
How long does a scan take?
Scan time depends on:
- Codebase size: Number of Python files to analyze
- AI reasoning: GENERATOR_MODEL speed (Gemini Flash is fastest, GPT-4 slowest)
- Findings volume: More potential issues = more LLM calls
- Small agent (1-5 files): 30 seconds - 2 minutes
- Medium project (10-50 files): 2-10 minutes
- Large codebase (100+ files): 10-30 minutes
gemini:gemini-3.1-flash-lite in ~/.flintai/.envCan I use Flint AI CLI in CI/CD?
Can I use Flint AI CLI in CI/CD?
Yes! See our CI/CD integration guide for GitHub Actions, GitLab CI, and CircleCI examples.
Eval
Missing config.json
Missing config.json
Symptom: “Config file not found”Cause: No config file at See Configuration for all options.
~/.flintai/config.jsonFix: Create a minimal config file at ~/.flintai/config.json:Invalid model type
Invalid model type
Symptom: “Unsupported model type”Cause: Model type not in supported listFix: Use one of these supported model types:
adk- Google ADK agentsopenai_agent- OpenAI Agents SDKlangchain- LangChain agentscrewai- CrewAI agents
config.json and update the type field.Connection refused: Agent not running
Connection refused: Agent not running
Symptom: Cannot connect to agent HTTP endpointCause: Agent not running or wrong URLFix:
- Start your agent server
- Confirm the server is listening at the
hostfrom your eval config — any HTTP response, even a 404, means it’s reachable, while a connection error means it isn’t running: - Check the
hostfield in your eval config matches your agent’s URL - Ensure there’s no firewall blocking the connection
Empty results: No evaluations attached
Empty results: No evaluations attached
Symptom: Eval runs but produces no resultsCause: No model-evaluation assignmentsFix: Attach evaluations to your model:List available evaluations with
flintai eval evaluations list to see what you can attach.Can I add custom evaluations?
Can I add custom evaluations?
Yes! Create custom evaluations in your Then attach to your model with
config.json:Message collection approach:flintai eval model-evaluations attach.See Configuration for more examples.Still stuck? Contact us at support@flintai.dev