llamaguard

Classify and filter unsafe LLM inputs and outputs across six safety categories.

1.0k|117|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/OpenLAIR/dr-claw --skill llamaguard-openlair
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: llamaguard
Source: https://github.com/OpenLAIR/dr-claw/tree/main/skills/safety-alignment/llamaguard
Command: npx skills add https://github.com/OpenLAIR/dr-claw --skill llamaguard-openlair

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically filters and classifies unsafe user inputs and LLM outputs across six safety categories to prevent harmful interactions.

Core Features & Use Cases

  • Input & output moderation for six categories (violence/hate, sexual content, weapons, substances, self-harm, criminal planning).
  • Easy deployment with vLLM, HuggingFace, Sagemaker; NeMo Guardrails integration.
  • Production-grade moderation pipelines for chat apps, customer support, and API services.

Quick Start

Install the required libraries and run a moderation workflow with LlamaGuard to filter unsafe prompts.

Frequently Asked Questions about llamaguard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I moderate LLM interactions for unsafe content in a chat application?▼

Moderate LLM interactions by classifying and filtering unsafe content across six safety categories. This skill integrates into chat apps, customer support, and API services to ensure safe user interactions and content generation.

What safety categories does AI content moderation cover for LLM pipelines?▼

AI content moderation covers six safety categories: violence/hate, sexual content, weapons, substances, self-harm, and criminal planning. It automatically filters unsafe user inputs and LLM outputs to prevent harmful interactions.

Can I use vLLM and HuggingFace to deploy LlamaGuard for production moderation pipelines?▼

Yes, you can deploy LlamaGuard using vLLM, HuggingFace, and Sagemaker. It integrates with NeMo Guardrails to build production-grade moderation pipelines for API services and chat applications.

What dependencies do I need to set up content moderation with LlamaGuard?▼

You need transformers, torch, and vllm dependencies to set up content moderation with LlamaGuard. These libraries support the moderation workflow that classifies and filters unsafe prompts and LLM outputs.

Does NeMo Guardrails integration support input and output moderation for LLMs?▼

NeMo Guardrails integration supports both input and output moderation for LLMs. It filters unsafe user prompts and generated responses across six safety categories within production moderation pipelines.

What is the best way to filter unsafe user inputs and LLM outputs in an API service?▼

The best way to filter unsafe user inputs and LLM outputs is deploying a moderation pipeline with vLLM and HuggingFace. This approach classifies content across six safety categories to prevent harmful API interactions.