aicoolies logo
NVIDIA logo
NVIDIA logo

NeMo Guardrails

Programmable safety rails for LLM applications

freeupdated Jul 14, 2026

NeMo Guardrails is NVIDIA's open-source toolkit for adding programmable safety rails to LLM applications. It supports five guardrail types — input, dialog, retrieval, execution, and output rails — covering content safety, jailbreak detection, topic control, PII masking, hallucination detection, and fact-checking. The toolkit uses Colang, a domain-specific language for defining conversational constraints, and integrates with OpenAI, Azure, Anthropic, HuggingFace, and LangChain/LangGraph.

NeMo Guardrails is an open-source Python toolkit from NVIDIA with nearly 5,900 GitHub stars that adds programmable safety and control layers to LLM-based conversational systems. Rather than relying solely on model alignment, it provides explicit guardrails that intercept both user inputs and model outputs, applying configurable checks before anything reaches the end user. The toolkit defines five types of rails: input rails that can reject or alter user messages, dialog rails that control conversational flow using Colang (a domain-specific language for state machine-like dialogue definitions), retrieval rails for filtering RAG chunks, execution rails for validating tool calls, and output rails for screening final responses.

The pre-built guardrails cover the most critical LLM vulnerabilities: content safety moderation using NVIDIA's Nemotron Safety Guard models or third-party services like ActiveFence and Cisco AI Defense, jailbreak and prompt injection detection with NemoGuard JailbreakDetect, topic control to keep conversations within defined boundaries, PII detection and masking via GLiNER integration, fact-checking against knowledge bases, and hallucination detection through AlignScore. The IORails engine supports parallel execution of multiple guardrails to minimize latency. A recent integration with Fiddler Guardrails adds low-latency hosted models for additional safety checks. LangGraph integration enables applying guardrails to multi-agent workflows.

NeMo Guardrails works with major LLM providers including OpenAI, Azure OpenAI, Anthropic, Google, and HuggingFace models, plus NVIDIA NIM for local inference. The server exposes an OpenAI-compatible API with a v1/models endpoint, and a GuardrailsMiddleware enables integration with LangChain agents. For production deployments, NVIDIA offers NeMo Guardrails as a microservice container image designed for Kubernetes with Helm charts. The toolkit includes evaluation tools for measuring accuracy of content moderation, fact-checking, and jailbreak detection. Python 3.10 through 3.13 is supported, with installation via pip.

Pricing

Free open-source toolkit, NIM microservice free for dev/test

Platforms

Python 3.10-3.13, pip, Docker/Kubernetes microservice, OpenAI-compatible API

Categories

Tags

Use Cases

Agentic Security

LLM vulnerability scanner and red teaming kit

Agentic Security is an open-source vulnerability scanner for LLM agent workflows that tests AI systems against jailbreaks, fuzzing, and multimodal attacks. It probes weaknesses across text, image, and audio inputs through multi-step jailbreak simulations, randomized stress testing, and reinforcement learning-powered adaptive attacks. The toolkit connects directly to LLM APIs for high-volume real-world attack scenarios, helping developers identify and patch safety gaps before deployment.

Open Source
Trent AI logo

Trent AI

Agentic AI security posture management

Trent AI is a specialized security platform for agentic AI applications providing AI Security Posture Management that compounds with every development cycle. Scans, judges, mitigates, and evaluates AI agent security detecting threats traditional tools miss including prompt injection attacks, tool misuse, unintended autonomous actions, data exfiltration through agent chains, and privilege escalation. Offers continuous assessment with remediation plan execution through Claude Code.

paid
Agent Governance Toolkit logo

Agent Governance Toolkit

Microsoft’s public-preview runtime governance toolkit for policy, identity, sandboxing, audit, and MCP security around AI agents.

Agent Governance Toolkit is Microsoft’s MIT-licensed public-preview toolkit for governing AI agent runtimes. It adds policy enforcement, zero-trust identity, execution sandboxing, audit, reliability, and MCP security-gateway patterns around tool calls and autonomous actions, helping platform teams move beyond prompt-only guardrails while preserving architecture review requirements.

Open SourceTelemetry

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

ToolHive mascot logo

ToolHive

Run and govern MCP servers across desktop, CLI and Kubernetes

Open-source MCP runtime and governance platform that runs servers in isolated containers, curates registries, enforces access policies, and operates gateways across desktop, CLI, and Kubernetes.

Open Source
Anamorpher parent Trail of Bits mark

Anamorpher

Craft image-scaling prompt-injection payloads to red-team multimodal AI systems

Open-source red-team toolkit from Trail of Bits that generates image-scaling attack payloads — images that look benign at full resolution but reveal a hidden prompt injection after a multimodal system downsamples them.

freeOpen Source
cai

CAI (Cybersecurity AI)

AI agent framework for offensive security and penetration testing

Alias Robotics' agent framework for building AI-driven offensive-security workflows — reconnaissance, exploitation, privilege escalation, and lateral movement — with multi-agent handoffs and human-in-the-loop control. Source-available, but the core is licensed for non-commercial research use only.

freemiumTelemetry
MEDUSA logo

MEDUSA

AI-first security scanner for LLM, agent, MCP, and RAG codebases

MEDUSA is an AGPL-3.0 AI-first security scanner from Pantheon Security that checks AI and machine-learning applications, LLM agents, MCP workflows, RAG pipelines, repository-poisoning risks, secrets, and agent-specific compromise patterns.

Open Source
iFixAi logo

iFixAi

Open-source diagnostic for AI operational misalignment

iFixAi is an Apache-2.0 diagnostic tool for scoring AI agents and models against operational-misalignment risks such as hallucination, manipulation, sabotage, sandbagging, and oversight evasion.

Open Source
Inspect AI parent UK AISI mark

Inspect AI

UK AI Security Institute framework for LLM safety evaluations

Inspect AI is an MIT-licensed framework from the UK AI Security Institute for running large language model evaluations, including tool use, multi-turn dialogue, model-graded scoring, and reusable evaluation tasks.

Open Source

Used in Stacks

Comparisons

Guardrails AI vs NeMo Guardrails — Output Validation Framework vs Conversational Flow Control

Guardrails AI and NVIDIA NeMo Guardrails both add safety layers to LLM applications, but they solve different problems. Guardrails AI validates structured inputs and outputs with 50+ composable validators. NeMo Guardrails controls conversational flow using Colang DSL to define what topics a bot can discuss and how it responds. Understanding this distinction is critical for choosing the right safety layer for your LLM application.

Guardrails AINeMo Guardrails

ps-fuzz vs Garak vs NeMo Guardrails — Prompt Injection Testing & LLM Security Tools Compared

As LLM-powered applications become production staples, prompt injection and jailbreak attacks represent some of the most dangerous threat vectors. Developers need tools that can systematically test their systems against these attacks before deployment. This comparison examines three distinct approaches to LLM security: ps-fuzz for targeted prompt fuzzing, Garak for comprehensive vulnerability scanning, and NeMo Guardrails for runtime protection and enforcement.

ps-fuzzgarakNeMo Guardrails

FAQ

What is NeMo Guardrails?

NeMo Guardrails is NVIDIA's open-source toolkit for adding programmable safety rails to LLM applications. It supports five guardrail types — input, dialog, retrieval, execution, and output rails — covering content safety, jailbreak detection, topic control, PII masking, hallucination detection, and fact-checking. The toolkit uses Colang, a domain-specific language for defining conversational constraints, and integrates with OpenAI, Azure, Anthropic, HuggingFace, and LangChain/LangGraph.

Is NeMo Guardrails free?

Yes — NeMo Guardrails is free to use. Free open-source toolkit, NIM microservice free for dev/test

What are the best NeMo Guardrails alternatives?

The top editor-verified NeMo Guardrails alternatives are Agentic Security, Trent AI, Agent Governance Toolkit.