Running NeMo Guardrails in an air-gapped network

NeMo Guardrails needs network access at install, at startup and at runtime unless you plan for it. This page explains what it reaches out to by default and how to remove each dependency.

On this page

Running NeMo Guardrails in an air-gapped network: what to plan first

Yes, a regulated or isolated environment with no outbound internet access can run NeMo Guardrails. The open-source library is licensed under Apache 2.0 and is developed in the NVIDIA-NeMo/Guardrails repository, so the software itself can be reviewed, mirrored and kept inside your boundary. The effort is not in the guardrails configuration, which is a set of config.yml files, Colang flows and optional Python actions that you write and version yourself. The effort is in the dependencies the configuration reaches for: Python packages, model weights, detector services, telemetry exporters and container images. Each of these must be identified, obtained through an approved path and placed where the runtime can find it before the first request is served.

Start with an inventory. Walk through every rail in the planned configuration and record what it calls: a hosted model API, a local model endpoint, a language detection or embedding model, a third-party moderation service, or a telemetry backend. Then check the library's own defaults, because a rail that works on a connected laptop may download something on first use. Confirm with your platform team which Python version your build pipeline will use, since NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, and build the wheel set from that version in a connected staging zone. Record every package and its hash so that the transfer into the isolated network can be checked against a known list.

Decide early which safety models will run locally and where their weights will live. Each local model adds a container or service, GPU capacity and an update path, and each one needs its own transfer and review step. Your security team will also want a documented answer to how packages and images are verified before they cross the boundary. NERC CIP-013-2 is one example of a control that asks for verification of software integrity and authenticity for vendor software and patches, and similar expectations appear in other frameworks. Treat the transfer process as a recurring control with an owner, not a one-time copy, because you will need to repeat it for every NeMo Guardrails release you adopt and every model update.

How the guardrails server, local models and mirrors fit inside the isolated boundary

The diagram starts with the mirrored container images and packages that enter the isolated network through a verification step outside the boundary. Inside, the guardrails server reads its config.yml, Colang files and actions from a mounted volume, and calls a local LLM endpoint and self-hosted safety model endpoints. Check that no edge leaves the boundary at runtime, because any outbound call from the server or the models is a gap the diagram does not show.

Isolated network components and the one approved path in.

Which dependency to replace and how

Guardrails sit in front of a model, so the first dependency to replace is the model endpoint that rails and the main application call. In an isolated network, that endpoint should be a self-hosted service inside your boundary, exposed to the guardrails server over an internal address. NeMo Guardrails selects its LLM backend through its configuration, and LangChain integration is opt-in through the NEMOGUARDRAILS_LLM_FRAMEWORK environment variable, so you control which provider packages are installed in the image.

  • Internal endpoint: Point the model configuration at a self-hosted, OpenAI-compatible service such as one served by vLLM, and confirm the endpoint answers without internet access.
  • Provider packages: Install only the provider packages you use, and confirm no cloud SDK is imported at start-up.
  • Credentials: Store endpoint keys in your internal secrets system and inject them at runtime, not in the configuration files.
  • Failure behavior: Test what the server returns when the model endpoint is unreachable, so the failure is visible to operators.

Confirm with the release notes for your version which provider integrations are opt-in and which are loaded by default, since defaults can change between releases.

Options for each network dependency and when each fits

This table compares the options for each network dependency a NeMo Guardrails deployment may reach, from safety models and LLM calls to packages, container images and telemetry. Find the dependency your configuration uses, then check whether the option fits your isolation boundary and who will run it. The main takeaway is that local options carry recurring operations work, while hosted options only fit where an approved egress path already exists.

DependencyOptionWhen it fitsWhat it costs to operate
Safety model inferenceFully local models and NIM containersPreferred when GPUs sit inside the boundary and your policy calls for NVIDIA or NemoGuard safety modelsGPU capacity, model storage, and staff to patch, monitor and upgrade each container
LLM generation and rail promptsInternal OpenAI-compatible endpointWhen your application already serves a model inside the network and the rails only need an API address to callAccelerator capacity and serving operations, plus a review of model weights and licenses at each change
Third-party moderation or classifier callsHosted moderation APIsOnly where a contract, data processing terms and an approved egress path permit it, since this breaks a strict air gapPer-request vendor fees that recur, plus legal and security review of data sent outside the boundary
Python packages for nemoguardrailsMirrored PyPI index or offline wheelhouseNeeded for any install inside the boundary; pin the 0.25.0 release and its dependencies for Python 3.11 to 3.13Internal mirror hosting and sync jobs, a one-time wheelhouse build, and a recurring refresh for each release
Container images for the server and NIMsMirrored container registryNeeded for Kubernetes or any container deployment; build the guardrails server image from the repository and mirror itRegistry storage, image scanning and sync work that recurs with each rebuild; confirm NIM image access terms first
Language detection and embedding modelsPre-staged model files in an internal artifact storeWhen a rail or integration would otherwise download a model at startup or on first requestStorage and version tracking; a one-time staging step, then recurring updates when the model changes
Telemetry and usage reportingTelemetry opt-out set and verified in configurationEvery deployment; confirm the current opt-out setting in the documentation for the release you runLow direct cost, but a recurring check during upgrades, since defaults can change between releases
Retired NeMo microservice containerDo not base new deployments on itApplies to any plan that starts from the NGC microservice image, which NVIDIA has sunsetMigration work to a supported image or the open-source server, which must be planned and tested before cutover

Build the offline setup in order

This sequence moves NeMo Guardrails and everything it needs into an isolated network, then proves it runs without outside connections. Each step ends with a check, so the team can show what was staged, verified and tested before the server takes live traffic.

  1. Confirm the release and Python version

    The build lead records the NeMo Guardrails release to deploy, 0.25.0 as published on PyPI under Apache-2.0, and the Python version it requires, which is 3.11, 3.12 or 3.13. The connected build side and the isolated hosts must use the same release and interpreter so that packages built on one side install on the other. Done when the release, license and interpreter appear in the build record and each isolated host reports that interpreter version.

  2. Build a wheel and package mirror

    On the connected side, the build engineer downloads the nemoguardrails wheel, every dependency it resolves, and any LangChain provider packages the configuration needs into one local directory. Resolve packages for the target operating system, architecture and Python version, since compiled dependencies differ by platform. Done when the directory holds a complete set of wheels, a pinned requirements file exists, and a dry-run install against that directory reports no missing packages.

  3. Transfer and verify packages

    The engineer moves the package directory and requirements file across the boundary through the approved media process. Record a SHA-256 checksum for every file on the connected side and compare each one on the isolated side. Any file that fails verification is rebuilt and scanned again before it is accepted. This step also supports the supply chain integrity control in NERC CIP-013-2 for regulated energy operators. Done when all checksums match the build record and a fresh install with pip install --no-index --find-links completes.

  4. Mirror the server image and base images

    The platform engineer builds the guardrails server image from the NeMo Guardrails repository using its Dockerfile, pinned to the same release as the packages. Mirror every base image the build depends on into the internal registry. Use the self-built image, because NVIDIA has sunset the NeMo microservices and no longer supports the NGC guardrails container. Done when the image digest is recorded and a pull from the internal registry succeeds on a host with outbound access blocked.

  5. Stage model files and NIM containers

    The engineer downloads each safety and detection model the rails use, such as content safety, topic control and jailbreak detection models, along with any embedding, tokenizer or language detection models. Stage the NIM container images in the internal registry and confirm each model's license terms allow your use. Record a checksum and version for every artifact. Done when each local model loads and each NIM endpoint answers a health request from a host with no outbound route.

  6. Point config.yml at local endpoints

    The configuration owner edits config.yml so each model entry points to an internal endpoint, and removes any hosted provider entry the configuration does not need. Colang flows and Python actions that call external services are reviewed and changed to use internal services. Done when the configuration loads on the isolated server and a search of config.yml and the action files finds no public hostnames.

  7. Disable telemetry and remote model downloads

    The platform engineer turns off telemetry using the setting named in the documentation for the release in use, and enables the offline mode of any model library the configuration loads. Confirm the exact setting names against the NeMo Guardrails documentation for 0.25.0 before rollout. Done when the server log shows no telemetry or download attempts after a clean start.

  8. Run the connectivity test

    With egress blocked at the network layer, the tester runs three checks from the guardrails host and its containers: DNS lookups and TCP connections to public addresses, a request through each rail the configuration enables, and attempts to reach the public package index and model hubs. Expected result: every outbound attempt fails and every rail answers from internal endpoints. Save the output as evidence and repeat the test after each upgrade or configuration change.

Security controls for an isolated guardrails deployment

An air-gapped guardrails server is only as isolated as the path that brings software in and the controls that keep it there. The cards below cover the controls that connect the transfer process, the model endpoints, the network boundary, configuration, logs and patching.

Transfer media verification

Every wheel, container image, model file and Colang configuration carried across the boundary needs a recorded checksum and a source record. Compare the hashes on the inside against the values recorded on the outside before anything is installed. Ask who signs off each transfer and where the record is kept, since this is the control that supports software integrity claims under NERC CIP-013-2 where it applies.

nemoguardrails on PyPI

Credential handling for LLM endpoints

Rails that call a local NIM, a vLLM server or a model gateway need API keys or tokens. Store them in your secrets system, not in config.yml or the image, and scope each one to a single endpoint. Confirm which environment variables your chosen LLM provider integration reads, and rotate credentials on a schedule your security team can evidence.

NeMo Guardrails docs

Egress deny rules and proof testing

Block outbound traffic from the guardrails host, the actions server and the detector containers at the network layer, then prove it. Run a scripted check from each host that attempts connections to public endpoints and records the refusal. Repeat the test after each change to routing, DNS or proxy settings, because a single allowed route can reintroduce the calls the air gap was meant to stop.

Configuration change control

The config.yml, Colang files and Python actions define what the guardrails block, so they are the highest-impact artifacts in the deployment. Keep them in a version-controlled repository inside the boundary, require review for each change, and deploy only tagged revisions. Record which revision was live when a given request was evaluated.

Logging of blocked requests inside the boundary

Blocked prompts and responses are often the evidence a security team needs, and they may contain sensitive data. Decide which fields are written to logs, where they are stored, and how long they are kept, then forward them to a log platform hosted inside the boundary. Confirm that no telemetry or external logging endpoint is enabled by default in the version you run.

Patching through controlled import cycles

Security updates arrive as new releases that must be verified, transferred and tested before they reach production. Set a fixed import cycle, check each release's notes for breaking changes to configuration and the server, and run the regression tests in a staging copy first. Track which release is deployed and which is pending so the patch history can be shown to auditors.

NeMo Guardrails releases

Questions buyers ask before running guardrails offline

Can NeMo Guardrails run in a fully air-gapped network at all?

Yes, in most configurations, but only after every package, container image and model it needs has been carried into the network. NeMo Guardrails is an Apache 2.0 open-source library that can be called from Python or run as a guardrails server built from the GitHub repository. Neither mode requires a vendor cloud service to start. The planning work is in what each rail calls at runtime. Some rails may call hosted moderation APIs or remote model endpoints, and those calls must be replaced with local equivalents or removed. NVIDIA's NeMo microservice container is no longer supported after the October 1, 2026 sunset, so a team starting now should build its own server image from the repository and not depend on the retired artifact. Confirm each rail's dependencies before committing to a design.

What does the team need in place before an offline build starts?

Before the build starts, the team needs a written inventory and the internal mirrors to support it. Confirm these parts:

  • A Python runtime that matches the release. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13.
  • An internal package index and container registry that hold every library, base image and model the chosen rails use.
  • A list of every rail, the model behind it, and the endpoint or file it reads at runtime.
  • Named owners in platform engineering, security and the application or ML team, since changes touch all three.
  • A decision between embedding the library and running a central server, because that choice determines where configuration files live and who changes them.

Build the inventory first. Every later estimate of effort, hardware and schedule depends on it.

How do cost and effort change with the number of dependencies and models?

Effort rises with each dependency that must be found, mirrored, tested and kept current, and with each model that needs its own hardware. No effort figure is published for this work, so ask for an itemized quote tied to your inventory. Cost usually falls into four groups: internal staff time, engineering work to replace hosted calls with local ones, GPU capacity for self-hosted safety models, and any licensing that applies to the models or NIMs you run. The engineering and testing work is largely one-time, while mirror refreshes, re-testing and model updates recur. Ask any partner to show, for each rail, which model runs locally, what hardware it needs and what testing it requires. Confirm licensing for NVIDIA products in writing, since terms vary by product and edition.

How long does an air-gapped build take, and what should scoping confirm?

No build duration is supplied for this work, so scoping has to establish it from your own inventory. The main drivers are the number of rails and models to mirror and test, whether GPUs must be procured or are already available inside the isolated network, how long your change process takes to approve transfers across the boundary, and how many environments must be built, such as development, test and production. A fixed-scope engagement starts with a written scope, deliverables and timeline agreed before work begins. During scoping, confirm the rails in use, the model behind each one, the hardware available, the transfer approval path and the acceptance tests. A timeline set before those answers are known is a guess.

Can our own team build and run this without outside help?

Yes, a capable platform team can do it alone if it has solid Python packaging, container and Kubernetes skills and the time to build and test. The work that most often stalls internal teams is rarely the first install. It is verifying that each rail makes no hidden outbound call, keeping mirrors current and documenting evidence for reviewers. DeployOpen works on fixed-scope engagements in which scope, deliverables and timelines are agreed in writing, and it offers retainers for ongoing support, upgrades and continuous testing. Decide the split explicitly: which steps your team owns, which a partner delivers, and who maintains the mirror after handover. Settle that split before procurement starts.

How do we prove that no traffic leaves the network?

Prove it by testing from an isolated segment with egress blocked at the network layer, then recording every attempted connection. Exercise every rail, every model path and the failure paths, because some calls happen only when a check fires or a fallback runs. Capture DNS queries, firewall logs and flow records during these runs, and store them with the configuration files, such as config.yml, that were in use. Repeat the test after every configuration change and every upgrade. Treat every blocked attempt as a finding that needs a fix. Evidence from this testing supports compliance reviews, but DeployOpen prepares that evidence and does not issue audit reports or attestations. Independent auditors and certification bodies make those determinations.

How do we handle NeMo Guardrails updates inside an isolated network?

Updates need a repeatable transfer process, a refreshed inventory and a retest each time. The current release is 0.25.0, published on 19 November 2026, and the previous one was 0.24.1, published on 16 September 2026, so plan the first upgrade early. Review the release notes for each version. Version 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. If you run Colang 1.0 configurations, the nemoguardrails convert tool helps with the move to Colang 2.x, but NVIDIA says converted configurations still need manual review. Verify the integrity and authenticity of every package and image you carry across the boundary. For utilities, NERC CIP-013-2 addresses this kind of software verification. Then run the same egress test before promoting the update.

How to update guardrails when nothing comes in over the network

Plan every NeMo Guardrails update as an import cycle, not a download. In an air-gapped network, a new release such as 0.25.0 reaches you only when your team carries the package across the boundary, so the first decision is who owns that import, which source they trust, and how the package is checked before it enters. The current release was published to PyPI on 19 November 2026 under Apache-2.0, and the previous one, 0.24.1, on 16 September 2026. Record the version, the hash of each wheel or container layer, and the Python version in use (0.25.0 requires Python 3.11, 3.12 or 3.13). Confirm the checks your supply chain procurement process requires for vendor software integrity, since NERC CIP-013-2 addresses that control for covered entities. Mirror the approved artifacts into your internal index and registry, then promote them through the same environments your configurations travel through.

Version 0.25.0 also deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Treat that as a dated backlog item rather than a surprise. Search your repositories and action code for LLMRails now, and read the 0.25 migration guide in the NeMo Guardrails documentation before you import. Changing the class name is a code change, so it needs the same review as any other application change, even when the rails themselves are untouched.

Every import needs a full retest of your configurations, not only a smoke test that the server starts. Run your regression suite of policy cases, including blocked and allowed prompts for each rail you run, against the imported version, and compare results with the last approved baseline. If you convert any Colang 1.0 configuration to Colang 2.x, run the nemoguardrails convert tool, then review every converted file by hand, because NVIDIA states that converted configurations still need manual review. Keep the old and new artifacts side by side so you can roll back to the previous import if a rail changes behavior. Record the test run, the reviewer and the approval as evidence for your change record.

How DeployOpen scopes and delivers an air-gapped guardrails deployment

DeployOpen plans and delivers Running NeMo Guardrails in an air-gapped network inside your own infrastructure. We start with a written scope that maps every outbound call the guardrails setup makes, then build, test and document the offline configuration so your security and compliance teams can review it.

How we scope

  • Inventory every external call your planned rails, models and container images would make, including telemetry and language detection
  • Confirm the Python version, library release and deployment pattern your team will run before any build work starts
  • Agree a fixed scope in writing that lists deliverables, environments, timelines and who provides the mirrored artifacts

How we build

  • Point rails at local model endpoints and offline embedding and language detection assets, then test that no outbound request remains
  • Mirror container images and Python packages into your registry and repository, verifying each artifact before it crosses the boundary
  • Turn off telemetry in the configuration and confirm the setting with traffic captures taken from inside the isolated network

How we hand over

  • Deliver the configuration files, build scripts and an offline update procedure written for your operations team to repeat
  • Document every removed outbound dependency, its replacement and the evidence showing the isolated network stays closed
  • Run a walkthrough with your platform, security and compliance staff so they can review controls and artifacts themselves

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer for each new NeMo Guardrails release you adopt
  • Retest the air-gapped setup after each upgrade, mirrored artifact refresh or change to rails, models or network policy
  • Confirm with your team which support scope, response expectations and update cadence the retainer should include

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.