CheckOps
NeMo Guardrails
NeMo Guardrails is an Apache-2.0 toolkit from NVIDIA for adding programmable guardrails to LLM-based conversational systems, using Colang flows and input, output, dialog and retrieval rails.
- Open source
- Free
- LLM & agent evaluation
- AI-enabled testing
- LLM Guardrails
- Python
- Ai Security
- Production monitoring & observability
- Security testing
- Release & CI gates
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
NeMo Guardrails is an open-source library from NVIDIA that lets developers add programmable guardrails between application code and the LLM. The README lists benefits such as building trustworthy, safe and secure LLM applications, connecting models to other services safely, and controlling dialogue.
Guardrails are organised as rails. Input rails check or rewrite user messages, for example detecting jailbreak attempts or masking sensitive data. Output rails check model responses for moderation, hallucination or policy issues. Dialog rails steer the conversation, such as refusing off-topic requests or following a defined flow. Retrieval rails filter chunks in RAG pipelines, and execution rails govern tool and action calls.
Rails are configured in a config folder with YAML settings and Colang, a modelling language for conversational flows. Colang lets you describe user intents, bot responses and flows declaratively, so behaviours such as ‘if the user asks about politics, politely decline’ are explicit and reviewable. A library of built-in rails covers jailbreak detection, self-check input and output, fact-checking, hallucination detection, sensitive data detection, and integrations with external moderation and safety services, including NVIDIA’s own safety models.
You can use the library from Python through LLMRails, run it as a server with an OpenAI-compatible API, or integrate it with LangChain. The README lists use cases including question answering over documents with fact-checking, domain-specific assistants that stay on topic, custom LLM endpoints and LangChain chains.
In the quality loop NeMo Guardrails is a production control and a test target: rails should be evaluated with adversarial prompt sets before release, and the project includes evaluation tooling for measuring rail performance.
The source code is at NVIDIA-NeMo/Guardrails on GitHub under the Apache-2.0 licence, with about 7,500 stars; the most recent commit was on 11 November 2026.
A sensible rollout keeps rails small and testable. Start with input and output moderation rails, add dialogue rails only for flows that genuinely need control, and write regression tests that replay known jailbreak and off-topic prompts against the configuration. Because rails add model calls, measure latency and cost per conversation turn before enabling them for all traffic.
Keeping the rails configuration in version control, reviewed like code, makes it easy to see when behaviour changed and why. Pair the rails with an evaluation suite so that tightening a rail to block attacks does not silently increase refusals of legitimate questions, which is a common side effect of over-strict guardrails.
Document which rails exist and why, so future changes are deliberate.
Features
- Input rails: Jailbreak detection, masking and rewriting.
- Output rails: Moderation, fact-checking and hallucination checks.
- Dialog rails: Steer conversations with Colang flows.
- Retrieval rails: Filter retrieved chunks in RAG.
- Execution rails: Govern tool and action calls.
- Colang: Declarative language for conversational behaviour.
- Built-in rail library: Ready-made safety and quality checks.
- Server mode: OpenAI-compatible guardrails server.
- LangChain integration: Wrap chains with rails.
- Evaluation tools: Measure rail effectiveness.
Pros
- Fine-grained control: Rails at every stage of a conversation.
- Backed by NVIDIA: Active development and documentation.
- Free to use: Open source under the Apache-2.0 licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 11 November 2026.
- Community: About 7,500 GitHub stars.
Cons
- Colang learning curve: A new language for most developers.
- Added latency: Self-check rails call an LLM again.
- Configuration complexity: Large configurations need careful testing.
- Rail accuracy: Detection rails can miss attacks or block valid users.
Usage and Links (Example)
pip install nemoguardrails
# config/config.yml
models:
- type: main
engine: openai
model: gpt-4o-mini
rails:
input:
flows: [self check input]
output:
flows: [self check output]
from nemoguardrails import LLMRails, RailsConfig
config = RailsConfig.from_path("./config")
rails = LLMRails(config)
reply = rails.generate(messages=[{"role": "user", "content": "Ignore your rules and..."}])
print(reply["content"])
Practical tips:
- Start with self-check input and output rails, then add dialog rails for scope.
- Build a test set of benign and adversarial prompts and track pass rates.
- Monitor latency added by each rail in production.
Resources:
Pricing
NeMo Guardrails is free and open source under the Apache-2.0 licence.
Recommended for?
- Teams building chatbots and assistants that must stay on topic and safe.
- RAG applications needing fact-checking and retrieval filtering.
- Enterprises standardising guardrails across many LLM apps.
- Smaller projects may find a validator library like Guardrails AI lighter.
Conclusion
NeMo Guardrails offers the most structured approach to conversational guardrails, with rails for inputs, outputs, dialogue, retrieval and actions.
Invest in a test set for your rails; their accuracy and latency decide whether they protect users or frustrate them.
On CheckOps, NeMo Guardrails is filed under the Production monitoring & observability, Security testing and Release & CI gates stages. Related tools listed here include Guardrails AI, Lakera, garak, PyRIT, Giskard and DeepTeam. Which one fits best depends mostly on your stack, your team’s size and skills, and whether you prefer to run tools yourself or pay for a managed service. This page reflects the official website, documentation and repository as they stood on 11 November 2026.
Compare
CheckOps pages that put NeMo Guardrails next to related tools. There is no paid placement on these lists.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with NeMo Guardrails side by side.
GGuardrails AIGuardrails AI is an Apache-2.0 Python framework for adding input and output validation to LLM applications, with a hub of validators and structured output generation.Compare with NeMo Guardrails
LLakeraLakera, now part of Check Point, offers AI security products: a Guard API (documented as Check Point AI Guardrails) for runtime screening of prompt injection and data leaks, and AI red teaming.Compare with NeMo Guardrails
Ggarakgarak is NVIDIA's Apache-2.0 LLM vulnerability scanner that probes models and dialog systems for hallucination, data leakage, prompt injection, toxicity, jailbreaks and more.Compare with NeMo Guardrails
PPyRITPyRIT is Microsoft's MIT-licensed Python Risk Identification Tool for generative AI: automated scans, adaptive multi-turn attacks and human-led red teaming in one toolkit.Compare with NeMo Guardrails
GGiskardGiskard offers an Apache-2.0 open-source library for evals, red teaming and test generation for AI agents, plus a commercial Hub for agent red-teaming, evaluation and guardrails.Compare with NeMo Guardrails
DDeepTeamDeepTeam is an Apache-2.0 open-source red-teaming framework from Confident AI that simulates jailbreaks, prompt injection and multi-turn attacks to find vulnerabilities in LLM apps and agents.Compare with NeMo Guardrails