Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

LLM Guard

github.com

  • Free plan
  • Linux
  • API
  • Self-hosted
6.9 Club score Visit github.com

What LLM Guard is

LLM Guard is a free, open-source toolkit for adding security checks to interactions with large language models. It provides scanners for prompts and outputs, with options for anonymization, prompt injection, secrets, toxicity, bias, malicious URLs, and factual consistency. The project describes the toolkit as helping sanitize interactions, detect harmful language, reduce data leakage, and resist prompt injection attacks. Documentation includes examples and integrations for the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex. Its OpenAI examples scan prompts and responses, including response chunks in a streaming example. LLM Guard can also run as an API, and developers can add custom scanners. Installation uses `pip install llm-guard` and requires Python 3.9 or higher. The toolkit is self-hosted, with Linux and API platforms listed, and the repository uses the MIT License. Its repository was archived on July 9, 2026, is read-only, and is no longer actively developed or maintained. The README directs users to GitHub issues, Slack, and an email address for production deployment assistance.

Who it suits

LLM Guard is aimed at developers building LLM applications who want to scan prompts and outputs, including in guarded RAG or agent workflows. Its self-hosted deployment and documented integrations suit teams managing their own environments.

Good to know, and what to watch

  • Scans prompts and model outputs
  • Includes prompt injection and secrets scanners
  • Integrates with OpenAI SDK, LangChain, LiteLLM, and LlamaIndex
  • Can run as an API
  • Custom scanners can be added
  • Repository is archived and read-only
  • No longer actively developed or maintained
  • Requires Python 3.9 or higher

LLM Guard

Free

Open source

Getting started

  1. Open the LLM Guard GitHub repository
  2. Install it with `pip install llm-guard`
  3. Use Python 3.9 or newer
  4. Connect it through the documented OpenAI SDK, LangChain, LiteLLM, or LlamaIndex examples
  5. Deploy it as an API if that fits your architecture
  6. Add custom scanners when needed

The verdict

LLM Guard covers a range of prompt and output checks and offers several documented integration paths. Its archived, unmaintained status is a key consideration for teams evaluating it for production use.

Questions people ask

What does LLM Guard cost?

The listed LLM Guard plan is free. It is described as an open-source solution.

Where can LLM Guard run?

Its listed platforms are API, Linux, and self-hosted deployment.

Which integrations are documented?

Documentation includes the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex.

Is LLM Guard open source?

Yes. The project is MIT-licensed and available as an open-source repository.

Is the project maintained?

GitHub says the repository was archived on July 9, 2026, is read-only, and is no longer under active development or maintenance.

What the maker publishes

API deployment
The documentation provides a deployment option to run LLM Guard as an API. source
Customization
The documentation describes adding custom scanners to LLM Guard. source
Input and output scanners
It provides scanners for prompts and outputs, including anonymization, prompt injection, secrets, toxicity, bias, malicious URLs, and factual consistency. source
Installation
The project documents installation with `pip install llm-guard` and requires Python 3.9 or higher. source
Integrations
The documentation includes integrations and examples for the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex. source
Intended users
The project describes production deployment and offers tutorials for developers building LLM applications, including guarded RAG and agent workflows. source
License
The GitHub repository lists the project under the MIT License. source
Maintenance status
GitHub says the repository was archived on July 9, 2026, is read-only, and is no longer under active development or maintenance. source
OpenAI request handling
The OpenAI SDK example scans prompts before sending requests and scans responses; its streaming example scans prompts alongside the API request and checks response chunks. source
Purpose
LLM Guard is a security toolkit for LLM interactions that sanitizes inputs, detects harmful language, helps prevent data leakage, and resists prompt injection attacks. source
Security coverage
The project says it can sanitize interactions, detect harmful language, prevent data leakage, and resist prompt injection attacks. source
Support
The README directs users to GitHub issues, Slack, and [email protected] for production deployment assistance. source

Checked against the maker's pages on 9 Oct 2026.