NeMo Guardrails

NVIDIA's open-source toolkit for programmable guardrails on LLM apps — input, dialog, retrieval, execution and output rails, defined with Colang

NeMo Guardrails is NVIDIA's open-source Python library for adding programmable guardrails between your application code and the LLM. Rails run at five stages — input, dialog, retrieval (RAG chunks), execution (tool and action calls) and output — and can block, rewrite or mask content. Dialog flows and guardrail logic are written in Colang (versions 1.0 and 2.0 are supported), with YAML for models and rail settings. The built-in catalog covers LLM self-checks (moderation, fact-checking, hallucination), jailbreak and injection detection, topic control, PII masking via Presidio, and NVIDIA NemoGuard safety models for content safety, topic control and jailbreak detection, which can run as NIM microservices. It can also call third-party checks such as Guardrails AI validators and Llama Guard. You use it through the Python API or an OpenAI-style guardrails server; LangChain and LangGraph integration is optional. For production on Kubernetes, NVIDIA offers a NeMo Guardrails microservice through NVIDIA AI Enterprise. The library sends anonymous usage telemetry to NVIDIA by default (opt out with an environment variable). Best for: teams building chatbots, RAG assistants or agents that need policy-driven, auditable control over what goes into and comes out of the model. Works well with: LangGraph · Presidio · Guardrails AI · garak · Ollama · vLLM

When to use

  • Keeping a chatbot or RAG assistant on approved topics and enforcing scripted dialog flows with Colang
  • Layering jailbreak, content-safety and PII checks on user input, retrieved chunks and model output
  • Combining NVIDIA NemoGuard models with third-party checks (Presidio, Guardrails AI, Llama Guard) in one guardrails config

When not to use

  • Latency-critical paths where an extra model call per LLM-based rail is unacceptable
  • You only need schema or type validation of LLM output (Guardrails AI or plain Pydantic validation is lighter)
  • Finding vulnerabilities before release — scan with garak first, then add rails

At a glance

Pricing
Free
Deployment
Self-hosted
Difficulty
Intermediate
License
Apache-2.0
Languages
python
Use cases
chatbot safety, topic control, jailbreak detection, content moderation
Last verified
2026-10-30 (official documentation)

Works well with

Alternatives in this category

See all 4 tools in Security & Guardrails – Protecting AI Applications →

Sources

v7.0