NeMo Guardrails server deployment

Teams running NeMo Guardrails in front of an LLM need to decide how to host the Apache 2.0 server, organize configurations and scale it after NVIDIA sunset the microservice. This page covers the build sequence, effort drivers and checks to hand over.

On this page

How to run a NeMo Guardrails server after the microservice sunset

If you need guardrails in front of an LLM and must host them yourselves, the open-source library already includes a guardrails server. It loads configurations from a folder, exposes an HTTP API, and a Dockerfile is provided to build a server image. NVIDIA has sunset the NeMo Guardrails microservice as of October 1, 2026, so the server, its container image and its upgrades are now your team's to run. The library itself remains Apache 2.0 and still receives new releases, with 0.25.0 as the current version, so the open-source route is a live option rather than a dead end.

Running the server is harder than the quick start suggests. Each configuration folder carries a config.yml, optional Python actions and Colang files, so you must decide how many configurations you need, how they are named and how they are versioned. You must also choose between Colang 1.0, the default, and Colang 2.0 before writing rails, because the two are not interchangeable. Version 0.25.0 requires Python 3.11, 3.12 or 3.13, which affects your base image and CI runners. Every rail that calls a model adds requests on the path to your LLM, and there is no vendor-run control plane to monitor, scale or patch these components for you.

NVIDIA's archived NeMo Microservices documentation asks existing microservice users to contact their NVIDIA account team about next steps, so confirm that conversation before you design around the library. NVIDIA's NeMo Helix project, which replaces the NeMo Platform repository linked from the sunset notice, documents guardrails as an inference gateway middleware plugin that applies configurations to model endpoints. Confirm whether that model fits your gateway, identity and logging setup. Until you have that answer, plan for the self-hosted server, pin your library version and document who owns each configuration folder.

Which parts make up a NeMo Guardrails server

A NeMo Guardrails server is a small set of parts that work together: a server process, a configuration folder, a container image, the model endpoints the rails call, a Python runtime, and an optional framework integration. Each part has a different owner and a different failure mode, so the team should know who maintains it before the first deployment.

Guardrails server and HTTP API

The server process loads configurations from a folder and exposes an HTTP API that your application calls in place of the model directly. Every request passes through the rails, so the server is in the critical path for latency and availability. Your team owns the process, its port exposure, health checks, restarts and request logging. Confirm the current endpoint paths and request format against the version you pin, because they can change between 0.x releases.

Current release
0.25.0
NeMo Guardrails docs

Configuration folder

The configuration folder holds the config.yml file, optional Python actions and optional Colang files. Each subfolder is a separate guardrail configuration that the server can load, so multiple policies for different applications live side by side. Your team owns the content of every rail, the review process for changes and the mapping between applications and configurations. Treat the folder as code under version control and test each configuration before it reaches production.

Dockerfile and server image

The Dockerfile builds a server image that packages the library, the configuration folder and the runtime into one artifact. The image is what your platform team scans, signs, stores and deploys, so it becomes part of your software supply chain. Your team owns the base image choice, rebuilds when the library or configurations change, vulnerability scanning and the registry where images are kept. Confirm that the built image runs the configurations you intend and not a default set.

LLM and safety-model endpoints

Rails that check inputs, outputs, facts or topics call a model, and some call dedicated safety models. Each call adds latency and usage cost, and each endpoint needs its own credentials and network path from the server. Your team owns the endpoint selection, the API keys or service accounts, rate limits, timeouts and the failure behavior when an endpoint is unavailable. Count how many model calls one request triggers under your rail set before you size capacity.

Python version and dependencies

NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. The library pulls in its own dependency set, and the safety models and integrations you enable can add more. Your team owns the Python pin, the lock file, dependency upgrades and the security review of transitive packages. Reproducible builds matter because a changed dependency can change rail behavior even when your configuration does not change.

Supported Python
3.11 to 3.13
PyPI package page

Optional LangChain integration

LangChain integration is opt-in and turns on only when the NEMOGUARDRAILS_LLM_FRAMEWORK environment variable is set to langchain. Without that setting, the server does not use the LangChain path, so the integration adds a dependency and a behavior surface only when you choose it. Your team owns the decision to enable it, the environment configuration in each deployment and testing of both paths if you run them. Record the setting in deployment manifests so that a missing variable does not silently change behavior.

How a request moves through the guardrails server to the LLM

A client request enters the NeMo Guardrails server from the client network and is checked by input rails before the server calls the LLM endpoint across the trust boundary. The server reads its rails from the configuration folder, and any self-check, fact-checking or safety-model calls go out as separate hops. Output rails then check the model response before it returns to the client. Check that each external call is logged and that the trust boundary matches where your model credentials live.

Request path through the guardrails server, with the trust boundary between networks.

Which server deployment option fits your environment

This table compares the main ways to run the NeMo Guardrails server, from a direct Python install to placing it behind an inference gateway or sharing one server across applications. Read each row against your hosting constraints and your ownership of configurations, then confirm the operational load before you commit.

OptionWhen it fitsWhat it costs operationally
Python server in a VMTeams with an existing VM pattern who want direct control over the Python environment and dependencies.You own the Python version (3.11, 3.12 or 3.13), patching, process supervision and upgrades across 0.x releases.
Published Dockerfile imageTeams running standard container hosts who want a repeatable build and a fixed image for each release.You own the image build, registry, rebuilds on each upgrade and the container host's security baseline.
Behind an inference gateway such as NeMo HelixOrganizations that already route model traffic through a gateway and want guardrails applied centrally. Confirm fit with NVIDIA first.You own gateway configuration, plugin compatibility checks and the added hop in the request path. Verify the integration before planning around it.
One shared server with many configurationsSeveral applications with similar rail policies that can share one governance and logging point.One upgrade and one test cycle cover every application, but a change to a shared configuration can affect all of them.
One server per applicationApplications with different rail policies, data sensitivity or release schedules that need isolation.Each server adds infrastructure, monitoring and upgrade effort, so the cost grows with the number of applications.
Scaling by adding replicasTraffic that exceeds one server instance, with a stateless setup that lets requests spread across copies.Confirm with your own load tests how each rail's model calls affect latency and capacity before you size replicas.

How to build a NeMo Guardrails server deployment, step by step

This sequence takes a team from a pinned Python environment to a TLS-protected, authenticated NeMo Guardrails server in front of an LLM, with a smoke test proving each policy configuration behaves as designed. It produces a deployment you can run locally, in a container and behind your gateway.

  1. Pin the Python runtime and nemoguardrails release

    An engineer on the platform team creates an isolated environment on Python 3.11, 3.12 or 3.13, the versions NeMo Guardrails 0.25.0 supports, and installs the exact release with pip install nemoguardrails==0.25.0. Record the version in your build manifest so later upgrades are deliberate. The step is done when pip show nemoguardrails reports 0.25.0 and python --version reports a supported interpreter. Check the NeMo Guardrails releases page before pinning, since newer releases may appear after this page was written.

  2. Lay out one configuration folder per policy

    Create a separate folder for each guardrail policy, such as a customer-facing support bot and an internal assistant, each containing a config.yml plus any Colang files and optional Python actions. Choose Colang 1.0 or 2.0 for each folder on purpose, because 1.0 is the default and the two versions are not interchangeable. Keep the folders in version control. The step is done when each folder loads without errors when you run nemoguardrails chat --config <folder> or the equivalent validation command in the documentation.

  3. Configure model and safety-model credentials externally

    Platform or security engineers supply LLM and safety-model API keys through environment variables or a secret manager that injects them at runtime, never in config.yml or Colang files. Confirm the provider settings each configuration expects in the NeMo Guardrails documentation. The step is done when a configuration starts with its credentials supplied from the environment and a grep of the config folders finds no keys.

  4. Start the server locally and call its HTTP API

    Run the guardrails server against the configuration folder root so it loads every policy, then send a benign request and a request that a configured input rail should block. Use the HTTP endpoints described in the NeMo Guardrails documentation and confirm the route names in your installed version. The step is done when the benign request returns a normal model response and the blocked request returns the refusal or block message defined in your rails, with both results visible in the server log.

  5. Build the container and mount the same configuration

    Build the server image from the Dockerfile provided with the NeMo Guardrails project, pinning the same release you tested locally. Run the container with the configuration folders mounted read-only and credentials passed as runtime secrets. The step is done when the container answers the same two test requests with the same results as the local server, which confirms the image did not change behavior.

  6. Place the server behind TLS and an authenticated gateway

    Network or platform engineers put the guardrails server behind a TLS-terminating reverse proxy or API gateway that requires authentication for every request, and restrict direct access to the server port. Confirm which authentication method your gateway supports and how it passes identity to logs. The step is done when a request without valid credentials is rejected at the gateway, an authenticated request succeeds, and the server port is unreachable from outside the cluster or network segment.

  7. Run a smoke test for each configuration

    The QA or security team writes a short test set per policy folder with at least one allowed and one blocked prompt for each rail type the policy uses, then runs it through the gateway in the deployed environment. Store the expected outputs with the configuration so every change is checked before release. The step is done when every policy passes its test set end to end, and failures block promotion to the next environment.

How to verify NeMo Guardrails rails block and pass correctly

Build a test plan that runs against the deployed server before any configuration goes live. For each configuration in your guardrails folder, keep a regression set of prompts that must be allowed and prompts that must be blocked, and send them through the HTTP API the way your application will. Cover every rail type your configuration uses: input rails, dialog rails, retrieval rails for RAG chunks, execution rails for custom actions and tools, and output rails. For each rail, include at least one case where it should fire and one case where it should stay silent, so a rail that blocks everything, or nothing, is caught. Run these tests against the container image you will ship, not only the local Python library, because the image carries its own Python version, installed packages, mounted configuration folder and environment variables such as NEMOGUARDRAILS_LLM_FRAMEWORK, and any of them can change behavior.

Test the failure paths as deliberately as the rails. Simulate timeouts and error responses from the LLM endpoint and from each safety-model endpoint, then confirm the server returns the response your design requires, whether that is a refusal, a fallback message or an error code, and does not pass unscreened content through. Check that the failure is logged so it can be reviewed. If you convert Colang 1.0 configurations with the nemoguardrails convert tool, treat the converted files as drafts: NVIDIA says converted configurations still need manual review, so re-run the full regression set after conversion and read the flow logic yourself. Finally, record the expected outputs for each configuration, including which rail fired and the response text, and store them with the configuration files. A future upgrade can then be compared against that record, and any change in behavior becomes a reviewed decision rather than a surprise in production. Confirm the test tooling and assertion format with your own team, since the sample test cases will be specific to your rails.

How single node, container and cluster setups differ

This is the simplest setup: you install the nemoguardrails package on a virtual machine or host that meets the library's Python requirement (3.11, 3.12 or 3.13), point the guardrails server at a configuration folder, and expose its HTTP API to the applications that call your LLM. Everything runs in one process space, so changes are made directly on disk and restarts are manual.

  • Configuration delivery: The configuration folder (with config.yml, any Python actions and Colang files) lives on the host's file system and is versioned in your source control and copied in during deployment.
  • Secrets: Model API keys are typically provided as environment variables set by a service manager or a restricted file readable only by the service account, never written into config.yml.
  • Health checks: Your monitoring probes the HTTP endpoint and the host process, and a service manager restarts the process on failure. Confirm the health route your installed version exposes.
  • Air-gapped networks: The host must reach your internal model endpoints, and any safety-model weights or packages must be mirrored inside the boundary before installation.
  • Limits: A single host has no built-in redundancy, so a restart or host failure interrupts every application that depends on the rails.

Before relying on this model, confirm with your model and safety-model providers how their endpoints scale under your expected request volume.

What drives NeMo Guardrails server deployment effort and cost

This table lists the factors that change how much work a NeMo Guardrails server deployment takes and what it costs to run. Read each row as a lever: the driver explains why effort grows, and the right-hand column shows how teams usually keep it contained.

DriverHow it raises effort or costHow to keep it down
Number of configurations and applicationsEach config folder needs its own rails, tests, and review. Multiple apps multiply regression runs and config drift across the server.Share base rails through common includes where possible and limit configs to genuinely different use cases.
Rails enabled per requestEvery input, dialog, retrieval, execution, or output rail adds processing and can add LLM calls, which increases latency and token spend per request.Enable only rails that address a documented risk and measure each rail's latency before adding more.
Safety-model and fact-checking callsContent safety, topic safety, self-check, and hallucination checks can call extra models, adding per-request model cost and latency.Pick the lightest check that meets the risk, and confirm the model hosting and call pattern with your team before rollout.
Colang 1.0 versus 2.0 choiceColang 1.0 is the default. Choosing 2.0 for new work avoids later conversion, but the team must learn the newer flow syntax.Decide the version at scoping, and record the choice so later changes do not force a mixed setup.
Conversion and migration workThe nemoguardrails convert tool helps move Colang 1.0 files, but converted configs still need manual review and retesting.Budget review time for every converted file and test each rail against its original behavior.
Custom Python actions and tool integrationsCustom actions, external APIs, and tool calls need their own code, credentials, error handling, and tests inside the server.Keep actions small, reuse existing internal services, and document each external dependency.
Number of environmentsDevelopment, staging, and production each need matching configs, model endpoints, secrets, and deployment pipelines.Use one container image with environment-specific config and secrets, and promote the same artifact through each stage.
Compliance evidence requirementsAssessors may ask for rail definitions, test records, change history, and logs of blocked requests, which adds documentation and logging work.Agree the evidence list early, version configs in source control, and export test and log records on a fixed schedule.

How to secure the NeMo Guardrails server endpoint

The guardrails server sits between your applications and the LLM, so anyone who reaches it can probe the rails and anyone who reads its configuration can reach the model. The cards below cover the network, credential, configuration, image, logging and testing controls to decide before the server takes production traffic.

Restrict network access and require authentication

The guardrails server exposes an HTTP API, so decide which networks and services may call it before deployment. Place it behind a gateway or reverse proxy that enforces authentication, and keep it off public ingress unless you have a reason to expose it. Confirm whether the server itself performs any authentication in the version you run, because the gateway may be the only control. Test that unauthenticated and out-of-network requests are refused.

NeMo Guardrails docs

Keep model credentials out of configuration files

Guardrails call your main LLM and any safety or moderation models, so each provider key is a credential that can run up cost or leak data. Load these keys from a secret manager or injected environment variables, not from config.yml, Colang files or the image itself. Check that server logs and error responses do not echo keys, and rotate them on a schedule your security team sets.

Limit which configurations callers can select

The server loads several configurations from a folder, and a caller may be able to name the one to apply. Decide which configurations each client may use, and make sure a request cannot select a permissive configuration by default. Ask whether the version you run supports per-client selection controls, and if it does not, enforce the mapping at the gateway so that a client only reaches its assigned configuration.

Protect the Docker image and its base layers

A server image bundles Python, the library and your configuration, so its base layers and dependencies become part of your attack surface. Pin the base image and the library version, scan the built image for known vulnerabilities, and build from a Dockerfile you review. Run the container as a non-root user with a read-only filesystem where possible, and rebuild on a schedule so patched layers replace older ones.

Supported Python versions
3.11 to 3.13
Guardrails repository

Log allowed and blocked requests with a retention decision

Logs of blocked requests show attempted abuse and false positives, while logs of allowed requests may hold personal or confidential prompts. Decide what each log records, where it goes, who can read it and how long it is kept, and agree that decision with your privacy and compliance teams. Confirm whether prompt and response text is logged by default in your configuration, and redact or hash fields you do not need.

Test rails against jailbreak and injection before go-live

A rail that is configured but never exercised gives no assurance. Build a test set of jailbreak, prompt injection and off-topic attempts that match your use case, run it against the production configuration, and record which attempts pass through. Repeat the run after every configuration change and library upgrade, since behavior can shift between 0.x releases. Keep the results as evidence for your security review.

Guardrails releases

What to monitor, back up and document after go-live

Monitor four things from day one: request latency with and without each rail, error and timeout rates from LLM and safety-model calls, rail trigger rates, and server health. Latency should be measured per rail, not only end to end, because a single slow input rail or an extra self-check call adds a model round trip to every request it covers. Record the same prompts with a rail disabled and enabled so the team can attribute added time to a specific rail. Track timeouts and errors separately for the application model and for each safety or checking model, since a failing checker may either block traffic or let it pass depending on how the configuration handles errors. Confirm with your own tests how the server behaves when a rail call fails, and alert on rail trigger rates that jump after a configuration change, since a sudden rise or drop usually signals a broken rule rather than a shift in user behavior.

Put everything that defines behavior under version control. Keep the configuration folders that the server loads, including config.yml, Colang files, and Python actions, in a repository, and record the image tag or build digest that each environment runs. Pin the nemoguardrails version in your dependency file rather than letting builds pick up the newest release, and confirm the pinned version against the NeMo Guardrails releases page before each change. Because minor releases can change behavior, every upgrade should be preceded by a regression run of your full rail test set against the old and new versions. Store the results with the version they describe. Back up the configuration repository and any model or secret references on the same schedule as other production configuration, and test that a restore to a clean host brings the server back to the same behavior.

Hand over four documents before the team that runs the server takes over. The first is a configuration inventory listing each configuration folder, which application or endpoint uses it, the rails it enables, and its owner. The second is an endpoint and credential map showing each server URL, the upstream model endpoints it calls, where each credential is stored, who can rotate it, and the expiry process. The third is a runbook covering restarts, health checks, how to roll back to the previous image tag or configuration commit, and who approves each step. The fourth is the test results for every release, including the rail test set, the latency measurements, and the known differences from the previous version. Ask your integration partner or internal owner to confirm that each document can be produced from the repository without relying on one person's memory.

Questions teams ask before deploying NeMo Guardrails as a server

Can our team deploy NeMo Guardrails as a server ourselves?

Yes, the library is open source under the Apache 2.0 license, so you can run it without a license fee. The work still needs people who can operate Python 3.11, 3.12 or 3.13 services, build and run a container image from the Dockerfile the project provides, write or review the config.yml and Colang files, and connect the server to your LLM endpoints. Teams often handle the first deployment with one or two engineers and then bring in outside help for configuration design, testing or hardening. Check your own skills against those tasks before deciding.

What drives the cost and effort of a guardrails server deployment?

The main drivers are which rails you apply, how many model and safety-model calls each request triggers, how many configurations you maintain, and how much testing the rails need before release. Every input, output or dialog rail that calls a model adds latency and token spend on every request, so the rail list matters more than the server itself. Costs are one-time for design, build and initial testing, and recurring for infrastructure, model calls, monitoring and upgrades. The NeMo Guardrails documentation describes the rail types. Ask any partner to price each rail, each configuration and the upgrade cycle separately. The implementation plan and cost-of-ownership topics cover these in more detail.

How long does a NeMo Guardrails server deployment take?

No duration is set on this page, because the time depends on the inputs. The main drivers are the number of rails and configurations, whether you convert existing Colang 1.0 files, how many LLM and safety-model endpoints you connect, the approval steps for environments and identity, and how much regression testing your risk owners require. A single configuration with a few rails and an existing model endpoint will take far less time than several configurations that must pass review in a regulated environment. Ask for a written schedule that lists each milestone and the client input it depends on.

What does our team need to provide for a server deployment?

Plan to provide four things before work starts: the target environments and where they run, access to the LLM and safety-model endpoints the rails will call, decisions on identity and logging, and a named owner who can approve design and test results. Environment decisions cover development, staging and production, plus the cloud account, data center or air-gapped network that hosts them. Identity decisions cover how callers authenticate to the server and how credentials for model endpoints are stored. Logging decisions cover what is recorded for blocked requests and who can read those records. Without a named owner, reviews stall, so name that person early.

Is NeMo Helix required to run NeMo Guardrails as a server?

No, NeMo Helix is not required to run the NeMo Guardrails server. NVIDIA's NeMo Microservices sunset notice links to the NeMo Platform repository, which now resolves to NVIDIA-NeMo/nemo-helix, an Apache 2.0 control plane. Its documentation runs NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints. That is one architecture among several. Confirm with your architects whether a control plane fits your gateway, identity and logging setup, and review the NeMo Helix guardrail documentation before adopting it. Do not assume it fits without that check.

Should a new build use Colang 1.0 or Colang 2.0?

For a new build, the choice should follow the features and support you need, and the project's current documentation should guide it. Colang 1.0 is the default in the NeMo Guardrails release, and Colang 2.0 is also supported. If you already have Colang 1.0 configurations, NVIDIA provides the nemoguardrails convert tool for a move to Colang 2.x, but NVIDIA says converted configurations still need manual review. Check the Colang 2 migration guide before you choose. Whichever version you pick, plan testing for every rail, because behavior can differ between versions.

How do we scale the server when traffic grows?

The usual pattern is to run several identical server replicas behind a load balancer or API gateway, with the same configuration folder and model credentials on each. Scaling out also multiplies the model and safety-model calls, so check the capacity of your LLM endpoints and rate limits before adding replicas. Load test with realistic request sizes and the full rail set, not a single-rail test, because latency grows with each rail. Confirm the request limits, timeouts and concurrency behavior of the server version you deploy in the project documentation or by testing it, since this page does not set those values.

Does the NeMo Guardrails microservice still get updates?

No, NVIDIA's NGC catalog page says NeMo microservices was sunset as of October 1, 2026, with no new releases and no support for the artifact. NVIDIA's archived documentation says new development has moved to NeMo Platform and asks existing users to contact their NVIDIA account team. If you run the microservice today, plan a move to the open-source library or confirm your support path with NVIDIA in writing. The library itself remains open source and receives new releases, with 0.25.0 published on 19 November 2026 according to PyPI.

How DeployOpen scopes and hands over a NeMo Guardrails server

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For NeMo Guardrails server deployment, we start from a written scope, run the guardrails server on the open-source library in your environment, and hand over configurations, tests and runbooks your team can operate.

How we scope

  • Confirm which rails apply to which traffic, such as input, output, retrieval and tool rails, before any build work starts.
  • Record where the guardrails server will run, which LLM endpoints it fronts and which configurations must be served side by side.
  • Agree the deliverables, timelines and responsibilities in writing, since most engagements are fixed-scope.
  • Ask the quote to separate server setup, configuration work, testing effort and any ongoing retainer.

How we build

  • Install the Apache 2.0 NeMo Guardrails library in a pinned Python environment on the Python version it supports.
  • Package the server as a Docker image from the provided Dockerfile, with configuration folders mounted and secrets kept out of the image.
  • Load each configuration folder with its config.yml, Colang files and any Python actions, and test each one separately.
  • Put rails under regression tests with representative prompts, so changes to model calls or safety models show up before release.

How we hand over

  • Deliver the server image, deployment definitions and a configuration inventory that names each guardrail set and its owner.
  • Document the HTTP API endpoints, the health checks, the logging of blocked requests and how to add or retire a configuration.
  • Walk your platform and security teams through a runbook covering restarts, scaling, credential rotation and rollback.
  • Provide test results and a findings list so your compliance team can review how the deployment was built and checked.

How we support

  • Support is available as a retainer for monitoring the server, applying fixes and running regression tests before each upgrade.
  • Plan upgrades across 0.x releases with a review of rail behavior, since guardrail results can change between versions.
  • Re-run the test suite after changes to models, safety-model endpoints or configurations, and report what changed.
  • Confirm with your own team which support hours, escalation path and change process your organization needs in the retainer.

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.