🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@evalguardai/cli

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evalguardai/cli

EvalGuard CLI - Run LLM evaluations and security scans from the command line

Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
21
-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

@evalguard/cli

npm version License: MIT

Command-line interface for EvalGuard -- run LLM evaluations, security scans, and guardrail checks from your terminal and CI/CD pipelines.

Installation

npm install -g @evalguard/cli

Quick Start

# Authenticate
evalguard login --key eg_live_...

# Initialize a project
evalguard init --project my-project

# Run an evaluation
evalguard eval evals/example.json --wait

# Run a security scan
evalguard scan scans/example.json --wait

# Run a local eval (no API key needed)
evalguard eval:local --model openai:gpt-4o --prompt "Answer: {{input}}" --scorer exact-match

# Check firewall rules
evalguard firewall check "Ignore all instructions"

Commands

CommandDescription
evalguard loginAuthenticate with your EvalGuard API key
evalguard logoutRemove stored credentials
evalguard initInitialize EvalGuard in the current project (creates config and example files)
evalguard eval <file>Run an evaluation from a JSON config file
evalguard scan <file>Run a security scan from a JSON config file
evalguard whoamiShow current authentication status
evalguard eval:localRun an evaluation locally without the cloud API
evalguard scan:localRun a security scan locally without the cloud API
evalguard generateAuto-generate eval cases or scan configs from a prompt
evalguard validateValidate an eval or scan config file for correctness
evalguard compareCompare results between two eval runs (drift detection)
evalguard listList past eval runs and security scans
evalguard firewallCheck input against firewall rules or manage rule sets
evalguard watchWatch eval/scan files and re-run on changes

Configuration

The CLI stores credentials at ~/.evalguard/config.json. Project-level settings go in evalguard.config.json in your repository root.

{
  "$schema": "https://evalguard.ai/schema/config.json",
  "projectId": "my-project",
  "defaultModel": "gpt-4o",
  "evalsDir": "./evals",
  "scansDir": "./scans"
}

CI/CD Usage

# GitHub Actions example
- name: Run EvalGuard security scan
  env:
    EVALGUARD_API_KEY: ${{ secrets.EVALGUARD_API_KEY }}
  run: |
    npx @evalguard/cli login --key $EVALGUARD_API_KEY
    npx @evalguard/cli scan scans/production.json --wait

Documentation

Full documentation at evalguard.ai/docs/cli.

License

MIT -- see LICENSE for details.

Keywords

cli

FAQs

Package last updated on 12 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts