Garakgarak 0.17.0 · Python 3.10+
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
24 small wins to finish your pathNext lesson

Installation and setup

Garak is a command-line scanner installed with pip. Scanning your own function needs no key, and garak's Groq generator can scan a hosted model with a free key.

pip install garak 0.17.0

Garak brings many dependencies, so the first install takes a while. Check that the command runs afterwards:

pip install "garak==0.17.0"
Example
garak --version

Scanning a hosted modelOptional

Lessons 2 to 19 scan a Python function or garak's built-in test generator, so nothing there needs a key. Lesson 20 points garak at real targets. Its groq generator reads GROQ_API_KEY; the openai generator reads OPENAI_API_KEY, and the rest generator takes any HTTP endpoint from a JSON options file.

export GROQ_API_KEY=gsk_...
garak -t groq -n openai/gpt-oss-120b --spec probes.test.Blank
Try it yourself
  • Run garak --list_generators and find the generators that need no key.

Little by little, you're building something great.