Lattice
Skip to content

Llama Guard

ai.meta.comlibraryself-hosted

Llama Guard is a self-hosted library in the Guardrails & Safety layer of the AI stack. Safety classifier for prompt and response moderation.

By Lattice editorial · Facts verified · method

licence
Llama-3.1-Community
language
Python
cost
free

Use Llama Guard when

One classifier covering both prompt and response moderation.

Skip Llama Guard when

You need domain-specific policy enforcement.

Stops the bad input before it, and the bad output after. — that is what this layer of the stack is answerable for. See the full Guardrails & Safety section for the rest of the options.

Visit ai.meta.comCompare with another tool
Badge this entry
Lattice badge: Llama Guard verified 2026-09
[![Llama Guard on Lattice: verified 2026-09](https://lattice.kunjshah.in/guardrails-safety/llama-guard/badge.svg)](https://lattice.kunjshah.in/guardrails-safety/llama-guard)

Quick answers

Is Llama Guard open source?
Not under an OSI-approved licence. Llama Guard is source-available under Llama-3.1-Community, which restricts some commercial uses. It is free to use.
What are the alternatives to Llama Guard?
The closest alternatives to Llama Guard are Lakera Guard and NeMo Guardrails.

Reading on guardrails

Alternatives to Llama Guard

Listed as an alternative to

  • NeMo Guardrails
  • Lakera Guard

Also in guardrails

  • NeMo Guardrails
  • Guardrails AI
  • Microsoft Presidio
  • Lakera Guard
  • garak
  • PyRIT
  • Invariant Guardrails