Skip to main content
Vijil exposes three programmatic interfaces. This quickstart takes you from a fresh setup to a completed trust Evaluation. The workflow is the same for all three, so pick the tab for the interface you prefer at each step.
InterfaceBest ForRequires
CLIScripting, CI/CD gates, headless automationvijil-console
MCPInteractive development, natural languageClaude Code + vijil-mcp
REST APICustom integrations, non-Python environmentsHTTP client + API key

Prerequisites

  • A Vijil Console deployment and its API gateway URL
  • An API key for the AI model you want to evaluate
  • Python 3.8 or later (CLI and MCP only)
  • Claude Code installed (MCP only)

Steps

1

Install

Install vijil-console via pip or pipx:
pip install vijil-console
Verify the installation:
vijil --help
2

Configure and Authenticate

Point the CLI at your Console API gateway, then log in:
vijil auth init --url https://console-api.example.com
vijil auth login
You will be prompted for your email and password. The CLI stores your token in ~/.vijil/config.yaml.If you belong to multiple teams, select the one you want to work with:
vijil team list
vijil team use <team_id>
Every subsequent command uses the active team automatically, so you do not need to pass a team ID manually.
3

Register an Agent

Create an Agent configuration for the model you want to evaluate. Export your provider API key first to keep it out of your shell history:
export OPENAI_API_KEY="sk-..."

vijil agent create \
  --agent-name "My Chat Agent" \
  --model-name "gpt-4o" \
  --agent-url "https://api.openai.com/v1/chat/completions" \
  --api-key "$OPENAI_API_KEY"
The output includes the new Agent’s id. Save it, then confirm the Agent was registered:
export AGENT_ID="a1b2c3d4-..."
vijil agent list
4

Choose a Harness

Harnesses are test suites that cover a specific trust dimension. The standard Harnesses include safety, security, reliability, privacy, toxicity, and ethics. For this quickstart you will run safety and security.
List the available standard Harnesses:
vijil harness list
5

Run an Evaluation

Start an Evaluation and wait for it to complete:
vijil eval run \
  --agent-id "$AGENT_ID" \
  --harness-names '["safety", "security"]' \
  --sample-size 50 \
  --wait
--sample-size 50 runs 50 Probes per Harness, enough for a meaningful score in a few minutes. Omit it to run the full Harness (~1,250 Probes for security). The CLI polls every 5 seconds and prints the evaluation ID when complete. Save it:
export EVAL_ID="e5f6a7b8-..."
6

View the Results

Retrieve your Trust Score and per-Harness breakdown:
vijil eval results-detail "$EVAL_ID"
This returns scores per Harness (0 to 1), individual Probe results, and identified failure patterns. To filter with jq:
vijil eval results-detail "$EVAL_ID" --json | jq '.scores'
7

Generate a Report

Trigger a Trust Report for the completed Evaluation:
vijil eval report "$EVAL_ID"
The report summarizes what was tested, how the Agent scored, and where it failed. Download it as HTML or PDF from the Console.

Next Steps

CLI Reference

Full command reference for auth, Agents, Evaluations, and protection

MCP Tools Reference

Complete list of MCP tools with parameters and example prompts

Understand Results

Interpret Trust Scores and prioritize what to fix

Custom Harnesses

Generate test suites tailored to your Agent

Troubleshooting

SymptomFix
vijil not found in PATHRe-install with pipx, which handles PATH setup automatically
CLI not configuredRun vijil auth init --url <your-url>
Session expiredRun vijil auth login
No team selectedRun vijil team list then vijil team use <team_id>
Tools do not appear in Claude CodeVerify .mcp.json is in the project root, then restart Claude Code
Claude uses Bash instead of MCP toolsConfirm vijil-mcp is in your PATH: run which vijil-mcp
401 Unauthorized from the REST APIYour token expired, request a new one from POST /auth/jwt/login
Last modified on July 1, 2026