GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - protectai/llm-guard: The Security Toolkit for LLM Interactions

This repository was archived by the owner on Jul 9, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

518 Commits
518 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
benchmarks
benchmarks
 
 
docs
docs
 
 
examples
examples
 
 
llm_guard
llm_guard
 
 
llm_guard_api
llm_guard_api
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitleaks.toml
.gitleaks.toml
 
 
.markdownlint.yml
.markdownlint.yml
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.ruff.toml
.ruff.toml
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
mkdocs.yml
mkdocs.yml
 
 
pyproject.toml
pyproject.toml
 
 
pyrightconfig.json
pyrightconfig.json
 
 

Repository files navigation

Warning

THIS PROJECT HAS BEEN ARCHIVED.

This project and its associated models on Hugging Face are no longer under active development or maintained.

LLM Guard - The Security Toolkit for LLM Interactions

LLM Guard by Protect AI is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).

Documentation | Playground | Changelog

GitHub stars MIT license Code style: black PyPI - Python Version Downloads Downloads

Join Our Slack Community

What is LLM Guard?

LLM-Guard

By offering sanitization, detection of harmful language, prevention of data leakage, and resistance against prompt injection attacks, LLM-Guard ensures that your interactions with LLMs remain safe and secure.

Installation

Begin your journey with LLM Guard by downloading the package:

pip install llm-guard

Getting Started

Important Notes:

  • LLM Guard 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.
  • Base functionality requires a limited number of libraries. As you explore more advanced features, necessary libraries will be automatically installed.
  • Ensure you're using Python version 3.9 or higher. Confirm with: python --version.
  • Library installation issues? Consider upgrading pip: python -m pip install --upgrade pip.

Examples:

  • Get started with ChatGPT and LLM Guard.
  • Deploy LLM Guard as API

Supported scanners

Prompt scanners

  • Anonymize
  • BanCode
  • BanCompetitors
  • BanSubstrings
  • BanTopics
  • Code
  • Gibberish
  • InvisibleText
  • Language
  • PromptInjection
  • Regex
  • Secrets
  • Sentiment
  • TokenLimit
  • Toxicity

Output scanners

  • BanCode
  • BanCompetitors
  • BanSubstrings
  • BanTopics
  • Bias
  • Code
  • Deanonymize
  • JSON
  • Language
  • LanguageSame
  • MaliciousURLs
  • NoRefusal
  • ReadingTime
  • FactualConsistency
  • Gibberish
  • Regex
  • Relevance
  • Sensitive
  • Sentiment
  • Toxicity
  • URLReachability

Community, Contributing, Docs & Support

LLM Guard 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 LLM Guard, 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.

Join our Slack to give us feedback, connect with the maintainers and fellow users, ask questions, get help for package usage or contributions, or engage in discussions about LLM security!

Join Our Slack Community

Production Support

We're eager to provide personalized assistance when deploying your LLM Guard to a production environment.

  • Send Email ✉️

About

The Security Toolkit for LLM Interactions

protectai.github.io/llm-guard/

Topics

adversarial-machine-learningchatgptlarge-language-modelsllmllm-securityllmopsprompt-engineeringprompt-injectionsecurity-toolstransformers

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

3.2k stars

Watchers

33 watching

Forks

478 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.