NeMo Guardrails

By NVIDIA

Programmable rails for LLM apps — keep conversations safe, on-topic, and on-policy with Colang flows.

v0.23.02026-07-01PythonApache-2.0
6.8k Completely free Open source

Doc version 1.0 · Updated

Related concepts

Related tools

Overview

NeMo Guardrails is an open-source toolkit for adding programmable guardrails to LLM-based conversational apps.
You define rails in Colang — input, dialog, retrieval, and output checks — and the library enforces them around every model call so replies stay safe and on-topic.

flowchart LR
  user[user] --> rails[NeMo Guardrails]
  rails --> policy[Colang rails]
  rails --> llm[LLM]
  llm --> safe[on-topic reply]

The Code samples tab shows loading a config and generating a guarded reply.

When to use it

Choose NeMo Guardrails when you need programmable, testable controls over an LLM conversation — blocking off-topic or unsafe turns and steering dialog flows — rather than relying on prompt instructions alone.