garak
AI security and guardrails
Command-line scanner that probes LLM apps for jailbreaks, leaks and prompt injection
10k 1.5k today Thriving Apache-2.0
CLI and library for testing and red-teaming LLM apps, run locally or in CI
Listed by Alston Antony, founder & editor
Health
ThrivingStars
27,617
Last commit
today
Nov 2026
Repository age
3 years
since Apr 2023
Latest version
code-scan-action-0.2.3
Nov 2026
Contributors
–
14 active in 90 days
Releases
25
last 12 months
Language
TypeScript
Promptfoo is a command-line tool and library for evaluating prompts, models and LLM-based applications. You define test cases and checks, run them against one or more providers, and view the results side by side. It also includes red teaming and vulnerability scanning, and it can produce security reports.
It is written in TypeScript and installs through npm, Homebrew or pip, or runs through npx without installing. A Docker image is available. Evals run locally, so your prompts stay on your machine. It works with providers such as OpenAI, Anthropic, Azure, Bedrock and Ollama, and you can plug in any LLM API or programming language.
You can wire checks into CI/CD and use code scanning to review pull requests for LLM-related security and compliance issues. Results can be shared with your team. The project is MIT licensed and is now part of OpenAI, which says it remains open source.
It does not replace one specific commercial product. It fits teams that would otherwise pay for hosted LLM evaluation or AI security testing services.
You can write repeatable evals and compare prompts and models before each release.
Skip if: You only need a quick manual check of a single prompt in a chat window.
Red teaming and vulnerability scanning probe an app for weaknesses and produce reports.
Skip if: You need a managed service with a vendor running the tests for you.
Evals and PR code scanning can run automatically on every change.
Skip if: Your team does not use CI or the command line.
LLM apps change behavior when prompts or models change, and trial and error does not catch regressions or security holes. Promptfoo gives you repeatable evals and red-team scans you can run locally and in CI.
npm install -g promptfoo
promptfoo init --example getting-started From the project's own install instructions. Check the docs for production settings.
Yes. It is MIT licensed and open source. You pay only for the LLM provider APIs you call.
Yes. It runs on your own machine through the CLI, and a Docker image is available.
Evals run locally, so your prompts are not sent to promptfoo. They go only to the model providers you configure.
Use npm, Homebrew or pip, or run it with npx without installing.
AI security and guardrails
Command-line scanner that probes LLM apps for jailbreaks, leaks and prompt injection
10k 1.5k today Thriving Apache-2.0
AI security and guardrails
Self-hosted proxy that audits AI API traffic for EU AI Act and GDPR risks
198 5 months ago Dormant BUSL-1.1
AI security and guardrails
Self-hosted proxy that masks PII and secrets before prompts reach AI providers
840 50 yesterday Thriving Apache-2.0
AI security and guardrails
Open-source gateway that authorizes AI agent actions before they run
661 57 yesterday Thriving Apache-2.0
AI security and guardrails
Runtime security monitor that checks AI agent actions and reasoning for attacks
599 97 34 days ago Slowing Apache-2.0
AI security and guardrails
415 3 30 days ago Slowing Unknown