# NeMo Guardrails

> Canonical: https://skillalmanac.com/glossary/nemo-guardrails | Last verified: 2026-11-24 | Index status: not offered to search engines

NeMo Guardrails is NVIDIA's open-source library for adding programmable safety and security checks, called rails, to applications built on large language models and agents. It is a software toolkit, not a model.

Also called: NVIDIA NeMo Guardrails, NeMo Guardrails LLM, NeMo Guardrails library, Colang guardrails.

## In plain language

A chatbot built on a language model can drift off topic, repeat private data or follow a malicious instruction. NeMo Guardrails is a free library from NVIDIA that lets developers put checkpoints around the model, in the way a security desk checks visitors going in and out of a building. A check can screen what a user types, screen what the model replies, keep a conversation to allowed subjects, or look for personal data. The limit is that the rules are only as good as the person who writes them. It helps reduce risk; it does not remove it.

## Technical definition

NVIDIA's documentation describes NeMo Guardrails as an open-source library for applying programmable safety and security controls to LLM and agentic applications, and defines rails as checks run at configured points in an application or agent workflow. The docs index names dialog and topical rails, PII masking, and checks on tool calls and tool results. Configuration uses YAML files plus Colang, a language for conversational flows and guardrail logic, and custom actions can be Python functions. The 2023 paper (arXiv 2310.10501, EMNLP 2023 demo track) describes a runtime inspired by dialogue management, with rails independent of the underlying LLM.

## How it shows up when you use agents

You meet NeMo Guardrails when you build an assistant or agent on top of a model and need rules that do not live inside the prompt. A developer writes a configuration of rails, and the library runs them at set points: before the user's message reaches the model, after the model replies, after retrieval in a [RAG](/glossary/retrieval-augmented-generation) pipeline, and around tool calls. NVIDIA's documentation notes that supported rail types depend on the runtime engine, and that tool-call and tool-result rails require a specific engine.

What breaks when it is misunderstood: a team installs a library of [guardrails](/glossary/guardrails) and treats the application as safe. IBM describes guardrails as layered across data, model, application and infrastructure, not a one-off control, so rails are one layer. Rails also need testing. A rule that blocks a [jailbreak](/glossary/jailbreak) phrase in your tests may miss a reworded attack, and a rail that is too strict can block valid requests.

Next actions: list the specific failures you care about, such as off-topic answers, personal data in replies or unsafe tool calls, write a rail for each, and try them with adversarial prompts as part of [red teaming](/glossary/red-teaming). For a coding agent in a repo, the permission settings of your tool and a checklist like the one above fit better than this library.

## Common confusions

- **NeMo Guardrails versus a safety-trained model.** The paper contrasts its approach with guardrails built into a model during training, for example through alignment. NeMo Guardrails works at runtime around the model and is independent of the underlying LLM.
- **NeMo Guardrails versus guardrails in general.** Guardrails is the broad idea. NeMo Guardrails is one open-source implementation of it.
- **Rails versus the prompt.** A system prompt asks the model to behave. A rail is a check run by the application at a configured point, so it does not depend on the model choosing to comply.
- **Myth: rails make an application compliant with a law.** IBM says guardrails can help meet requirements such as the EU AI Act. IBM says guardrails support compliance work. See [AI regulation](/glossary/ai-regulation).

## Worked examples in this catalogue

### [coding-agent-guardrails](https://skillalmanac.com/skills/skill-almanac/coding-agent-guardrails)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A pre-action checklist for coding agents plus a read-only audit of a repo's guardrail setup.

Why it exercises the concept: It applies the same idea of checks placed around an agent's actions to a coding agent, where NeMo Guardrails targets applications you build on a model.

### [Autonomous AI Agents: Risks and Guardrails](https://skillalmanac.com/learn/autonomous-ai-agents-risks-and-guardrails)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What goes wrong when an AI agent acts unattended, and the limits, approvals and stopping rules that contain it.

Why it exercises the concept: It explains the risks that tool-call and output checks in a library like NeMo Guardrails are meant to contain.

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Writes and lints LLM prompts with a fixed structure, injection rules and a numeric test plan.

Why it exercises the concept: Prompt-level injection rules are one layer of defence. NVIDIA's docs describe input rails as a separate layer that screens user input for jailbreak attempts.

## Related terms

- [Guardrails](https://skillalmanac.com/glossary/guardrails.md)
- [AI safety](https://skillalmanac.com/glossary/ai-safety.md)
- [Prompt injection](https://skillalmanac.com/glossary/prompt-injection.md)
- [Jailbreak](https://skillalmanac.com/glossary/jailbreak.md)
- [LLM security](https://skillalmanac.com/glossary/llm-security.md)
- [AI regulation](https://skillalmanac.com/glossary/ai-regulation.md)

## Sources

- [NVIDIA NeMo Guardrails documentation](https://docs.nvidia.com/nemo/guardrails/latest/index.html), NVIDIA (accessed 2026-11-24)
- [NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails](https://arxiv.org/abs/2310.10501), arXiv (accessed 2026-11-24)
- [What are AI guardrails?](https://www.ibm.com/think/topics/ai-guardrails), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
