Flint AI on GitHub
Source code, example agents, and issue tracking
Before you start, you’ll need:
- A GitHub repository containing Python agent code
- A Flint AI API key
- An API key for an LLM provider — Google Gemini, OpenAI, or Anthropic. The scanner uses it to analyze your agent code. Google Gemini has a free tier, so you can scan at no cost.
Where to get an LLM provider key
Where to get an LLM provider key
- Google Gemini: aistudio.google.com/apikey (free tier available)
- OpenAI: platform.openai.com/api-keys
- Anthropic: console.anthropic.com/settings/keys
Scan your repository
1
Get your Flint AI API key
In Flint AI, go to Settings, then API Keys, and
create a key.
Copy your key immediately when created — it is shown only once. Keep it somewhere secure and
never commit it to version control. In the next step you’ll add it as an encrypted GitHub
Actions secret rather than pasting it into the workflow file.
2
Add the scan workflow to your repository
Create The workflow reads two secrets. In your repository, go to Settings, then
Secrets and variables, then Actions, and add:
Whichever provider you name, its key goes in the
.github/workflows/flintai-inventory-scan.yml with:FLINTAI_TOKEN— the Flint AI API key from the previous step.LLM_API_KEY— your LLM provider API key.
Choose a model
Choose a model
llm_model takes a provider:model value. The provider prefix tells the scanner
which API key it is using:LLM_API_KEY secret.What the scan does
What the scan does
The Action scans your repository for AI agents, finds security issues and
misconfigurations, and sends results to your workspace. It needs only read access to
your code and does not modify your repository. The
schedule in the workflow keeps
your inventory current as your code changes.Instance URL doesn't need to be secret
Instance URL doesn't need to be secret
Your instance URL is not sensitive, so
flintai_instance is a plain value, not a
secret. https://app.flintai.dev is the standard instance; other environments exist
and use the same input.3
Run the scan and see your agents
The workflow runs on the schedule in the file. To start it manually at any time: open the
Actions tab in your repository, select Flint AI inventory scan, then
Run workflow. The scan step takes a minute or two.To confirm results landed, go to Settings, then Data sources in Flint AI.
Select GitHub and expand the Scans tab — it lists each connected repository
with the time of its most recent scan. A fresh timestamp means your results arrived.Now open the Agents page. Your discovered agents appear in the inventory, each with
its highest severity and total issue count.
Next steps
Read your discovery results
Work out what needs attention first, whether a finding is real, and when it’s resolved
Monitor and protect
Install the SDK to monitor sessions and configure runtime protection