By the end of this guide you will have Claude Code connected to your Vijil account. Once connected, you can type requests like these and Claude will handle everything for you:Documentation Index
Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt
Use this file to discover all available pages before exploring further.
- “List my agents”
- “Run a safety evaluation on my customer support agent”
- “Show me the results of the last evaluation”
Prerequisites
- Vijil Console deployed with an account set up.
- Python 3.10 or higher. Python is free software that runs the Vijil tools. To check, open your Terminal and type
python3 --version. - Claude Code (CLI, desktop app, or VS Code Extension) installed.
Install the Vijil Tools
This step installs two tools:vijil-mcp (which connects Claude Code to Vijil) and vijil (the underlying Vijil command-line tool).
Recommended: pipx
pipx is a program for installing command-line tools safely. It avoids the permission errors and PATH problems that pip can cause, so it is the easiest path if you have it. If you do not have pipx yet, install it first, then run:
pip directly:
pip3 install vijil-mcp.
When the install finishes, confirm both tools are available:
Connect to Vijil Console
Tell the Vijil tool where your Console is. Replace the URL below with the address of your Vijil Console deployment.Login to Vijil
<team_id> with the ID shown in the list.
Connect Claude Code to Vijil
Now you need to create a small configuration file that tells Claude Code to use the Vijil tools. In your Terminal, navigate to the folder where you do your work, then create a file named.mcp.json with this exact content:
claude.json in your home directory (~/.claude.json on Mac/Linux).
Verify Everything Works
Start Claude Code in the same folder as your.mcp.json file and type:
Check my Vijil setup
What You Can Do Now
Register an Agent
Tell Claude about the AI agent you want to evaluate. Provide its name, the model it uses, and its API endpoint and key.Create a new agent called 'My Chat Agent' using gpt-4 at https://api.openai.com/v1/chat/completions with API key sk-...
See Your Agents
List my agents
See Available Harnesses
Harnesses are the pre-built test suites Vijil uses to run evaluations.What Harnesses are available?
Run an Evaluation
Run a safety and security evaluation on agent a1b2c3d4-... with sample size 50, and wait for it to complete
a1b2c3d4-... with your agent’s ID. Claude starts the evaluation and waits for it to finish, then shows you the results.
Evaluations typically take a few minutes depending on sample size and rate limits. If you prefer not to wait, you can start one and check back:
Start a safety evaluation on agent a1b2c3d4-...
Check Evaluation Status
What is the status of evaluation e5f6a7b8-...?
Read the Results
Show me the detailed results for evaluation e5f6a7b8-...
Generate a Report
Generate a report for evaluation e5f6a7b8-...
More Things You Can Ask
Set up Personas — define the types of users who interact with your agent during evaluation:Show me the persona presets
Create a persona from the 'jailbreaker' preset
List my compliance policies
Create a policy from the GDPR preset
List my Dome configurations
Create a Dome config for agent a1b2c3d4-...
Show me the trust dashboard
Troubleshooting
| Problem | What to Do |
|---|---|
pip: command not found | Try pip3 install vijil-mcp instead, or use the pipx method above |
Permission denied during install | Use pip install --user vijil-mcp, or switch to the pipx method above |
vijil: command not found after install succeeded | Close and reopen your Terminal. If the command is still not found, try re-installing with pipx — it handles the PATH setup automatically |
vijil says it is not configured | Run vijil init --url <your-console-url> |
| ”Session expired” or login errors | Run vijil login |
| ”No team selected” | Run vijil team list then vijil team use <team_id> |
| Vijil tools do not appear in Claude Code | Make sure .mcp.json is in the folder where you opened Claude Code, then restart Claude Code |
| Claude uses the wrong tool or seems confused | Try rephrasing your request to be more specific, for example “Use Vijil to list my agents” |