Evaluate your LLM agents from the command line.
No browser. No dashboard. Just your terminal and your agent.
AI Evaluator is an LLM-as-a-Judge platform that evaluates AI agents, RAG pipelines, and LLMs with the same rigor you apply to traditional code.
This CLI brings evaluation straight to your terminal: run evals as part of CI/CD, catch regressions before they hit production, and block deploys that don't meet your quality thresholds.
No installation. No signup. Just curl:
curl -s -X POST https://api.aievaluator.dev/api/v1/playground/evaluate \
-H "Content-Type: application/json" \
-d '{"queries":["What is 2+2?"],"metrics":["faithfulness"]}' | jq .{
"results": [{
"query": "What is 2+2?",
"agent_response": "4",
"scores": {"faithfulness": 1.0},
"passed": true
}],
"remaining": 4
}β‘ 5 free evals/day. No signup. No API key. For CI/CD:
aievaluator loginβ 100 free/month.
| Language | Command |
|---|---|
| Python | pip install aievaluator |
| Node.js | npm install -g aievaluator |
| C# / .NET | dotnet tool install -g aievaluator |
| Go | go install github.com/aievaluator-dev/aievaluator-cli/go/cmd/aievaluator@latest |
| VS Code | Search "AI Evaluator" in Extensions |
The CLI is designed so you can start in 10 seconds and go as deep as you need.
| Level | What you learn | Time |
|---|---|---|
| 0 | Evaluate a single prompt, no install, no key | 30s |
| 1 | Install CLI, quick eval with expected output | 1m |
| 2 | Scaffold a project, evaluate a dataset | 2m |
| 3 | Quality gates with thresholds per metric | 2m |
| 4 | Custom evaluators inline (bring your own criteria) | 1m |
| 5 | CI/CD pipeline integration | 2m |
π Full progressive tutorials per language: Python Β· Node.js Β· C# Β· Go Β· VS Code
| Command | Auth | What it does |
|---|---|---|
aievaluator quick |
β | Evaluate a prompt or dataset via playground (5/day free) |
aievaluator login |
β | Save your API key (100 free/month) |
aievaluator whoami |
β | Show your account tier and usage |
aievaluator init |
β | Create evals/ folder + sample dataset + config |
aievaluator eval |
β | Full evaluation against your agent with quality gates |
aievaluator generate-ci |
β | Generate GitHub Actions or GitLab CI workflow |
aievaluator config |
β | Manage default metrics, thresholds, engine URL |
Set different quality bars for different metrics:
# faithfulness must be β₯ 90%, g_eval must be β₯ 75%
aievaluator quick "test" --metrics faithfulness:0.90,g_eval:0.75
# Same, using eval with your agent
aievaluator eval --agent $URL --dataset ./tests.json \
--thresholds faithfulness:0.90,g_eval:0.75One number for all metrics:
aievaluator quick "test" --min-score 0.80
# Applies 0.80 to faithfulness AND g_eval. Exit code 1 if any fails.Define a custom evaluation inline β no dashboard needed:
aievaluator eval --agent $URL --dataset ./tests.json \
--metrics politeness \
--custom '{"name":"politeness","prompt":"Is the response polite?","threshold":0.85}'Both .json and .jsonl files work everywhere:
aievaluator eval --agent $URL --dataset ./queries.jsonl --min-score 0.80If your agent is running on localhost or a private network, the cloud engine can't reach it.
Use the --tunnel flag to automatically create a public tunnel:
aievaluator eval --agent http://localhost:8047/chat --tunnel --dataset ./tests.json
aievaluator quick "Hello" --agent http://localhost:8047/chat --tunnelThe CLI will:
- Detect that the URL is local (
localhost,127.0.0.1,192.168.x.x,10.x.x.x) - Try to start a tunnel in this order: cloudflared β ngrok β bore β localtunnel
- Replace the local URL with the public one
- Run the evaluation normally
- Close the tunnel when done
At least one of these must be installed:
| Tool | Install | Signup |
|---|---|---|
| cloudflared (recommended) | brew install cloudflared |
No signup needed |
| ngrok | brew install ngrok |
Free signup + authtoken |
| bore | cargo install bore-cli |
No signup |
| localtunnel | npm install -g localtunnel |
No signup |
π‘ cloudflared is free and requires no account. Just install it and
--tunnelworks.
# GitHub Actions
aievaluator generate-ci --platform github
# GitLab CI
aievaluator generate-ci --platform gitlab --output .gitlab-ci.ymlThis generates a ready-to-use quality gate workflow with the AI Evaluator CLI.
# Same command works in any CI system:
aievaluator eval \
--agent $STAGING_AGENT \
--dataset ./evals/regression.json \
--min-score 0.80 \
--ci \
--format junit > report.xml
# Exit code 1 blocks the pipeline if quality drops| CI System | How |
|---|---|
| GitHub Actions | --format junit + actions/upload-artifact |
| GitLab CI | --format junit + reports:junit |
| Jenkins | --format junit + junit 'report.xml' |
| Any CI | --ci --format json + parse exit code |
| Priority | Source |
|---|---|
| 1 | --api-key / --engine-url flags |
| 2 | AIEVALUATOR_API_KEY / AIEVALUATOR_ENGINE_URL env vars |
| 3 | ./aievaluator.config.json (project-local) |
| 4 | ~/.config/aievaluator/config.json (global) |
aievaluator-cli/
βββ python/ β PyPI (pip install aievaluator)
βββ node/ β npm (npm install -g aievaluator)
βββ dotnet/ β NuGet (dotnet tool install -g aievaluator)
βββ go/ β go install
βββ vscode/ β VS Code Marketplace
βββ shared/ β API surface + format specs
βββ ci-templates/ β GitHub Actions / GitLab CI / Jenkins
git clone https://github.com/aievaluator-dev/aievaluator-cli.git
cd aievaluator-cli
# Python: cd python && pip install -e ".[dev]" && pytest
# Node: cd node && npm ci && npm test
# Go: cd go && go test ./...
# .NET: cd dotnet && dotnet testSee CONTRIBUTORS.md and CONTRIBUTING.md.
| Franco Vinciarelli β Creator & Maintainer |
MIT Β© AI Evaluator