This is an early release preview. You may encounter bugs.
Tool
LLM Guard logo
Unclaimed

security

LLM Guard

An LLM security toolkit with input and output scanners.

No longer maintained. The upstream repository is archived and read-only.
C 55/100 GitHub score ? This grade is derived from GitHub signals — not user votes. Open for the full breakdown.
No votes yet

01 / About

About LLM Guard.

LLM Guard is a Python security toolkit that sits around LLM interactions, filtering both the prompts sent to a model and the responses it returns. It targets teams running LLMs in production who need to sanitize inputs, detect harmful or sensitive content, prevent data leakage, and resist prompt-injection attacks. It works as a library integrated into application code and can also be deployed as an API.

Protection is built from composable scanners applied to inputs and outputs. Input scanners include Anonymize, BanCode, BanCompetitors, BanSubstrings, BanTopics, Code, Gibberish, InvisibleText, Language, PromptInjection, Regex, Secrets, Sentiment, TokenLimit, and Toxicity. Output scanners cover concerns such as Bias, Deanonymize, JSON validation, MaliciousURLs, NoRefusal, FactualConsistency, Relevance, Sensitive-data detection, URLReachability, and language, sentiment, and toxicity checks. Scanners can be combined to enforce the checks a given application needs.

Base installation pulls in a limited set of dependencies, with heavier libraries installed automatically as more advanced scanners are used. It requires Python 3.9 or higher.

02 / Discussion CREDIBILITY-GATED

Discussion · 0

Reading is open to everyone. Only verified humans or builders at GitHub B+ can post or vote — every thread carries its author's credibility.

  • No discussions yet — start the first thread.

03 / Build

Build with LLM Guard.

Browse the catalogue for frameworks, tools, and blueprints — each scored on real GitHub credibility.

Browse the catalogue