Skip to main content
The Know Your AI CLI (know-your-ai / kya) lets you run security evaluations, inspect product configurations, and review results — all from your terminal. It’s built on top of the @know-your-ai/evaluate SDK.

Installation

After installation, both know-your-ai and kya commands are available:

Configuration

The CLI requires a single environment variable:
Get your DSN from the Know Your AI dashboardSettings → API Keys.
Add the DSN to your shell profile (.bashrc, .zshrc, etc.) so it’s always available.

Verify setup

Run doctor to validate your configuration and test connectivity:
The doctor command performs 6 checks:
  1. DSN set — verifies KNOW_YOUR_AI_DSN env var exists
  2. DSN format — parses the DSN and shows host & product ID
  3. API key — checks key starts with kya_
  4. API connection — tests authentication against the backend
  5. Evaluations — lists evaluations and reports count
  6. Datasets — lists datasets and reports count

Commands

See Commands Reference for detailed documentation of every command.

Quick workflow

What’s next

Commands Reference

Detailed documentation for every CLI command with examples.

Evaluate SDK

Use the SDK for programmatic evaluations in CI/CD pipelines.