Gorget - The Security Toolkit for LLM Interactions
Gorget is a comprehensive tool designed to fortify the security of Large Language Models (LLMs). It continues LLM Guard, which Protect AI archived in July 2026: code written for llm_guard keeps working.
What is Gorget?
By offering sanitization, detection of harmful language, prevention of data leakage, and resistance against prompt injection attacks, Gorget ensures that your interactions with LLMs remain safe and secure.
Installation
Begin your journey with Gorget by downloading the package:
pip install gorget
Getting Started
Important Notes:
- Gorget is designed for easy integration and deployment in production environments. While it's ready to use out-of-the-box, please be informed that we're constantly improving and updating the repository.
pip install gorgetruns every scanner on ONNX Runtime without PyTorch; add thetorchextra for GPUs. Nothing is installed or downloaded behind your back except models from the Hugging Face Hub on first use.- Python 3.10 to 3.14 is supported. Confirm with:
python --version. - Library installation issues? Consider upgrading pip:
python -m pip install --upgrade pip.
Examples:
- Get started with ChatGPT and Gorget.
Community, Contributing, Docs & Support
Gorget is an open source solution. We are committed to a transparent development process and highly appreciate any contributions. Whether you are helping us fix bugs, propose new features, improve our documentation or spread the word, we would love to have you as part of our community.
- Give us a ⭐️ github star ⭐️ on the top of this page to support what we're doing, it means a lot for open source projects!
- Read our docs for more info about how to use and customize Gorget, and for step-by-step tutorials.
- Post a Github Issue to submit a bug report, feature request, or suggest an improvement.
- To contribute to the package, check out our contribution guidelines, and open a PR.