AI for Developers
LlamaFirewall logo

LlamaFirewall

Visit Website

Meta's guardrail layer for agents. Checks for prompt injection, an agent drifting from the user's goal, and insecure generated code before it runs.

LlamaFirewall is Meta's open-source guardrail framework for AI agents, part of Purple Llama. It combines Prompt Guard for detecting jailbreaks and prompt injection, AlignmentCheck for catching an agent that drifts from the user's goal, and CodeShield for flagging insecure code before it runs.

You wire it into an agent's message and tool-call flow so it scans inputs, reasoning and outputs. Install with pip install llamafirewall and see the Purple Llama docs for configuration. It complements Llama Guard, which classifies content for safety.

LlamaFirewall reviews

  • No reviews yet.
See something outdated? Suggest an update