Skip to main content
Test factual accuracy, instruction adherence, prompt injection, jailbreaks, and more. Tests are framework-agnostic and provide a 0.0-1.0 score proving agent reliability.

Flint AI on GitHub

Source code, example agents, and issue tracking
Install our MCP server in Claude Code or your AI code assistant, then ask: “Help me set up Flint AI Eval” to get live guidance, troubleshoot issues, and work through these steps together. Learn how →

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

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.
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.
No agent of your own yet? Clone flintai-cli and serve the bookstore example (OpenAI Agents SDK) on port 8010 from the repo root:
This command uses uvx, which ships with uv. Install uv first if you don’t have it.
The agent keeps running in this terminal and is now reachable at 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:
This config attaches OWASP LLM01–LLM09, PII, and secrets evaluations. The 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.
The config file is stored in ~/.flintai/config.json (where ~ means your home directory).
Folders starting with a dot are hidden from Finder and File Explorer. Use the commands below to create and open the file automatically.
These commands create the .flintai directory if needed, then open the config file in TextEdit:
Add your agent’s connection details and save (Cmd+S or File → Save).
  • 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.
  • adk - Google ADK agents
  • openai_agent - OpenAI Agents SDK
  • langchain - LangChain agents
  • crewai - CrewAI agents
See Configuration for all types and options.
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.
Use --eval-tag to batch-attach evaluations by tag:
This attaches all evaluations tagged with 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.
Integrate with CI/CD. Save eval results as build artifacts to prove agent reliability before deployment. See CI/CD integration guide →

Ship with confidence

What the score means:
  • 0.8+ - Production-ready
  • 0.6-0.8 - Needs improvement
  • <0.6 - Not ready for production
Next steps:

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