Lattice
Skip to content

garak

librarySelf-hostedgithub.com

garak is a self-hosted library in the Guardrails & Safety layer of the AI stack. Scanner that probes models for known vulnerability classes.

By Facts verifiedmethod

Licence
Apache-2.0
Language
Python
Cost
free
Owned by
Production & Governance

Use garak when

Probing your own system for known vulnerability classes.

Skip garak when

You have no remediation path for whatever it finds.

Stops the bad input before it, and the bad output after. See every guardrails tool.

Badge this entry
Lattice badge: garak verified 2026-09
[![garak on Lattice: verified 2026-09](https://lattice.kunjshah.in/guardrails-safety/garak/badge.svg)](https://lattice.kunjshah.in/guardrails-safety/garak)

Rules of thumb

  • A guardrail without an eval is a guess about which failures matter. Write the eval that found the failure, then the guardrail that blocks it.
  • PII is a data-flow problem. Detect and redact before the model ever sees it, not after it answers.
  • Every guardrail in the request path adds latency to every call. Run checks offline first and move them inline only when production forces it.

Quick answers

Is garak open source?
Yes. garak is open source under the Apache-2.0 licence. It is free to use.
What are the alternatives to garak?
The closest alternatives to garak are PyRIT.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

Reading on guardrails

Alternatives to garak

Listed as an alternative to

  • PyRIT
  • promptfoo

Also in guardrails

  • NeMo Guardrails
  • Guardrails AI
  • Llama Guard
  • Microsoft Presidio
  • Lakera Guard
  • PyRIT
  • Invariant Guardrails