Lattice
Skip to content

garak

github.comlibraryself-hosted

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

By Lattice editorial · Facts verified · method

licence
Apache-2.0
language
Python
cost
free

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. — that is what this layer of the stack is answerable for. See the full Guardrails & Safety section for the rest of the options.

Visit github.comCompare with another 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)

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.

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