nemo-guardrails

nemo-guardrails is a skill for Claude Code from NVIDIA-NeMo/nemo-helix. It costs 105 tokens per session (4,830 once invoked), scanned A, original, Apache-2.0.

A command-line reference for creating and checking NeMo Guardrails configurations and attaching them to model-serving endpoints. Guardrails are rules that check or restrict chatbot inputs and outputs.

In plain words
What is it for?
It covers guardrail configuration management, standalone checks, and applying guardrails through a model's middleware settings.
Why use it?
It helps avoid deprecated commands and gives a consistent way to verify a guardrail configuration before using it in chat requests.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It covers guardrail configuration management, standalone checks, and applying guardrails through a model's middleware settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/nemo-guardrails
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA-NeMo/nemo-helix --skill nemo-guardrails
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nemo-guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-guardrails/github.svg)](https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-guardrails)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-guardrails"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-guardrails/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nemo-guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-guardrails"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.04830
Opus 5.5 $0.00042 $0.01932
Sonnet 5.5 $0.00021 $0.00966
Haiku 4.5 $0.00011 $0.00483

Measured yesterday against content hash 1f247910c8e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nemo-guardrails scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/nemo_helix_ext/src/nemo_helix_ext/skills/nemo-guardrails/SKILL.md · 422 lines

How it starts

The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NeMo Guardrails CLI Reference

nemo guardrail (config CRUD + the /checks endpoint) and nemo inference virtual-models with a nemo-guardrails MiddlewareCall both back the same guardrail_config entity. The nemo guardrail chat completions create and nemo guardrail completions create commands are deprecated; do not use them.

Environment

  • CLI paths: /app/.venv/bin/nemo and /app/.venv/bin/nhx (same binary, two names)
  • API server: http://localhost:8080 (default, no auth needed for local services)
  • Default workspace: default
  • Workspace override: --workspace <name> flag, or NHX_WORKSPACE env var
  • Entity ID: <workspace>/<model-entity-name>, e.g. default/meta-llama-3-70b-instruct. For backend models behind a provider, use the auto-discovered ID from served_models[].model_entity_id (see inference skill).
  • Canned refusal: when a rail blocks, the response content is exactly "I'm sorry, I can't respond to that."

Prerequisites

  • For nemo guardrail check alone: just a config and model entities reachable through IGW (so the main LLM and any task LLMs can resolve).
  • For chat-time guardrailing on a VirtualModel: a real backend model entity the VirtualModel can proxy to. Use nemo-secrets and inference skills to register a secret + provider; the inference skill is the end-to-end reference for the provider/served-models/auto-discovery flow.

CLI gotchas

  • Use nemo inference virtual-models (with hyphen), not nemo inference virtualmodels.
  • Names are positional for nemo guardrail configs create <name> and nemo inference virtual-models create <name>.
  • No nemo inference chat completions create command exists. Use nemo inference gateway model post v1/chat/completions <vm-name> (matches the inference skill).
  • --data (configs) and --body / --models / --*-middleware (VirtualModels) take JSON strings. Watch shell quoting for embedded backticks/quotes — prefer --input-file for large payloads.
  • config_type is always "guardrail_config" in a MiddlewareCall for nemo-guardrails.
  • Each middleware list dispatches its own hook independently. If you want input rails AND output rails, the call must appear in both --request-middleware AND --response-middleware. See Failure cases.
  • The guardrails field on a chat-completions request body is options-only on the IGW path (e.g. options.log, return_choice). It does not set the rails config — that comes from the VirtualModel's MiddlewareCall. This is the key behavior difference from the deprecated nemo guardrail chat completions create --guardrails '{"config_id":...}'.

Read the full file on GitHub · 422 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 422 lines · 105 tokens per session scan A 1f247910c8e6

Subscribe to this mod's changes

nemo-guardrails is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 105 tokens to every session and 4,830 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

nemo-guardrails compared with skills from other repositories

nemo-guardrails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nemo-guardrailsNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A105Claude Code
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
promptfoo-redteam-setuppromptfoo/promptfooSkill28ktodayMITA65Claude Code, Codex
promptfoo-provider-setuppromptfoo/promptfooSkill28ktodayMITA66Claude Code, Codex
discount-reviewpromptfoo/promptfooSkill28ktodayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7kyesterdayMITA17Claude Code, Codex