Flint AI on GitHub
Source code, example agents, and issue tracking
Evaluate your agent at runtime
Before you start: Your agent must be running and accessible over HTTP. Evaluation works by sending prompts to a live endpoint and scoring the responses.
1
Verify flintai-cli is installed
Need setup?
Need setup?
If not installed, using a virtual environment is recommended to avoid dependency conflicts:Install Flint AI CLI:Full installation guide →
Bring your own LLM key. Evaluation uses an LLM as judge, so it needs an API key for your own LLM provider (Gemini, OpenAI, Anthropic, or LiteLLM). This is your provider key for the local CLI, not a Flint AI Platform API token.
flintai init prompts for it and stores it locally in ~/.flintai/.env.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
2
Start your agent
Flint AI Eval sends prompts to your agent over HTTP, so it must be running and reachable before you evaluate. Start your agent and note the host and port it listens on — you’ll add these to your config next.
Try it with a shipped example agent
Try it with a shipped example agent
No agent of your own yet? Clone flintai-cli and serve the bookstore example (OpenAI Agents SDK) on port 8010 from the repo root:The agent keeps running in this terminal and is now reachable at This config attaches OWASP LLM01–LLM09, PII, and secrets evaluations. The
This command uses
uvx, which ships with uv. Install uv first if you don’t have it.http://localhost:8010. In a separate terminal, run the bundled evaluations. The repo ships examples/config.json with both example agents pre-configured, so you can skip Add your agent and Attach evaluations and run directly:weather_agent (Google ADK) example is included too.3
Add your agent
Create or update your agent config file with connection details:
Important: The
host field must match where your agent is actually running.How do I edit my config file?
How do I edit my config file?
The config file is stored in
~/.flintai/config.json (where ~ means your home directory).- macOS / Linux
- Windows PowerShell
These commands create the Add your agent’s connection details and save (Cmd+S or File → Save).
.flintai directory if needed, then open the config file in TextEdit:What do these config fields mean?
What do these config fields mean?
id- Unique ID for this model or agent. You’ll use it in commands like--model my-agent.type- Your agent’s framework (expand supported types below).name- The label that will identify this agent in results and logs.host- Base URL for the target endpoint, if this type connects over HTTP.
Start your agent and confirm it answers at the
host URL before you run an evaluation.Supported agent types
Supported agent types
- adk - Google ADK agents
- openai_agent - OpenAI Agents SDK
- langchain - LangChain agents
- crewai - CrewAI agents
4
Attach evaluations
Browse built-in evaluations to see available tests, then attach them to your agent:
No evaluations run by default. You must attach at least one evaluation before running
flintai eval run.How do I attach multiple evaluations at once?
How do I attach multiple evaluations at once?
Use This attaches all evaluations tagged with
--eval-tag to batch-attach evaluations by tag:owasp_code=LLM01 (prompt injection tests) in a single command. See built-in evaluations for all available tests and tags.5
Run evaluation
Execute all attached tests:
flintai eval sends test prompts to your agent, judges the responses using LLM-as-judge, and scores reliability on a 0.0-1.0 scale.Evaluations can take several minutes depending on the number of tests. Progress updates appear in the CLI, and a summary displays when complete. Results are saved to eval_<timestamp>.json, or eval_<timestamp>.sarif if you pass --format sarif.Ship with confidence
What the score means:- 0.8+ - Production-ready
- 0.6-0.8 - Needs improvement
- <0.6 - Not ready for production
Interpret your results
Understand score breakdowns and track improvement over time
How evaluation works
Learn the LLM-as-judge methodology and scoring calculation
Scan agent code
Find agent code issues before deployment with Flint AI Scan