Skip to main content
Connect a GitHub repository and Flint AI scans your code for AI agents. You end up with an inventory of every agent discovered in the repo — each with its highest severity and total issue count — along with the models, tools, and MCP servers it uses.

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.
Supported frameworks: Google ADK, Google GenAI, Anthropic, OpenAI, OpenAI Agents SDK, LangGraph, CrewAI, AutoGen, HuggingFace Transformers, HuggingFace smolagents

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 .github/workflows/flintai-inventory-scan.yml with:
The workflow reads two secrets. In your repository, go to Settings, then Secrets and variables, then Actions, and add:
  • FLINTAI_TOKEN — the Flint AI API key from the previous step.
  • LLM_API_KEY — your LLM provider API key.
llm_model takes a provider:model value. The provider prefix tells the scanner which API key it is using:
Whichever provider you name, its key goes in the LLM_API_KEY secret.
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.
Scanning more than one repository? Define FLINTAI_TOKEN and LLM_API_KEY at the organization level so every repository shares them.
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.
Check the Scans tab, not the Connected status. The status indicator does not yet reflect a live connection check, so it can read Connected before your first scan has run.
Now open the Agents page. Your discovered agents appear in the inventory, each with its highest severity and total issue count.
Multi-repo support: Connect more repositories to see all your agents in one workspace. Each agent traces back to its source repository and file path.

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