Packages
Requirements
- Node.js >= 18
- TypeScript (optional but recommended) — all packages ship with
.d.tstype definitions - ESM and CommonJS are both supported
Installation
- Monitoring + Tracing
- Firewall
- Evaluation SDK
- CLI
Quick start
1. Get your DSN
Go to Settings → API Keys in the Know Your AI dashboard and copy your DSN. It looks like:2. Initialize the SDK
3. Instrument your AI client
Configuration reference
All configuration is passed toKnowYourAI.init():
What’s next
Monitoring
Track requests, tokens, cost, and latency in production.
Tracing
Visualize multi-step AI agent interactions as span trees.
Firewall
Block dangerous inputs and flag risky outputs in real time.
Evaluate
Run security evaluations programmatically.