How to decommission LLM Guard without losing guardrail coverage
If your team inherited an LLM Guard deployment or still runs one after the repository was archived on 9 July 2026, the work ahead is planning and controlled removal, not a single swap. The effort depends on how many callers, scanners and environments exist, so the first task is counting them. No new rollouts are recommended, and the last release on PyPI is 0.3.16, uploaded on 19 May 2025, so every month of running it adds to the gap between what is deployed and what is maintained.
Start with an inventory of callers. For each application, record the endpoint it calls, the scanners it relies on (input or output), the blocking or logging behavior it expects, and the team that owns it. Include batch jobs, internal tools and third-party integrations, since these are the callers most often missed. Then list every environment where the API server or Python library runs, including development, staging and any air-gapped hosts. Confirm each scanner's configuration per environment, because the same name can be set differently in each one.
Write down the risk acceptance while the deployment runs. The owner should state which scanners remain in use, the known limits of an unmaintained component, the compensating controls in place, and a review date. Set replacement milestones in order of exposure, starting with internet-facing callers and those handling regulated data. Run the old and new guardrails in parallel for each caller, compare what each one blocks, and remove LLM Guard models and containers only after the owner signs off that coverage holds. Ask any vendor or DeployOpen for a written scope before work starts, including what is removed, what is retested and what evidence is delivered.
Which LLM Guard parts map to a replacement and which only need removing
This table lists each part of a running LLM Guard deployment and says whether it needs a replacement, a migration, or simple removal at the end. Read it as a checklist: the 15 documented input scanners and 20 documented output scanners do not map one to one onto any replacement, so each one must be checked individually.
| Component | Decommission action | Migration notes |
|---|---|---|
| API server | Replace with the caller's new guardrail endpoint | Record every route, request shape and response field callers use before cutting over, since no drop-in equivalent is assumed. |
| Input scanners (15 documented) | Map each scanner to a replacement or accept the gap | Examples include Prompt Injection, Secrets, Token Limit and Toxicity. Confirm each detection behavior separately; no one-to-one match is assumed. |
| Output scanners (20 documented) | Map each scanner to a replacement or accept the gap | Examples include Sensitive, Malicious URLs, JSON and Factual Consistency. Some depend on models or logic that a replacement may not cover. |
| Hugging Face or local model files | Freeze, copy to controlled storage, then remove | Keep a checksummed copy for the parallel-running and audit period. Remove only after no caller or rollback path needs them. |
| Python environment | Pin during the run, then delete | Keep the last supported environment reproducible. Confirm the Python version the final release supports before planning base image changes. |
| Container images | Retain for rollback, then delete from registries | Store images by digest. Remove them from registries and nodes only after the decommission sign-off. |
| Callers | Inventory, notify, migrate and confirm switch-off | Callers often include apps, gateways and scheduled jobs that are not documented. Their owners must confirm the cutover. |
| Logs and metrics | Keep for the retention period, then purge | Retained scan results and blocked-request records support the replacement comparison and audit evidence. Confirm retention rules with your compliance owner. |
Accepting the risk of running an archived guardrail
An archived project promises no fixes. The protectai/llm-guard repository was archived by its owner on 9 July 2026, and the README states that the project and its associated Hugging Face models are no longer under active development or maintained. For a security control in production, that means a vulnerability found in LLM Guard or in its dependencies may never get an upstream patch. The last PyPI release, 0.3.16, was uploaded on 19 May 2025, so the Python packages and the libraries under them will age without anyone upstream rebuilding them. Your security team should record this as a known, accepted condition rather than assume that a future update will close a gap. The MIT license lets your organization keep, modify and run the code, but it does not oblige anyone to maintain it. Confirm internally whether your legal team treats that license grant as sufficient for continued production use, and whether any inherited contract or customer commitment assumes vendor support.
A written risk acceptance should name one accountable owner, usually a service owner with budget authority, and a security approver who has reviewed the compensating controls. Set the expiry date to the replacement milestone in your migration plan, not to an arbitrary annual cycle, so the acceptance lapses when the deployment is due to be retired. List the compensating controls explicitly, such as the bearer token and rate limit settings on the API server, network restrictions so only known callers reach it, pinned image and package versions, and the test results that show which attacks the current scanners still block. Then define review triggers that force an early look: a new high-severity advisory against a dependency, a Python version change in your base images, a change in the set of callers, or a finding from a security test. Ask your security team to confirm which of these triggers they require in your own policy before the acceptance is signed.
How the decommission phases connect
The plan starts with an inventory of every caller and scanner in use, because nothing else can be sized until that list exists. Risk acceptance is recorded next, then each scanner is rebuilt on a maintained guardrail and piloted. Parallel running compares both outputs, and a failed parity check sends that scanner back to build rather than forward to cutover. Removal of the API server, models, containers and pinned Python environment happens only after the observation period ends.
The decommission sequence, with the parity check that returns failing scanners to build.
Decommission sequence from caller inventory to removal
This sequence takes an archived LLM Guard deployment from an accurate list of its callers to a clean removal, with a dated risk decision and a logged proof of replacement at each stage. Each step closes with an exit criterion so the decommission can be reviewed and signed off rather than drifting.
Inventory every caller and scanner
List each application, service, script and team that sends traffic to LLM Guard, including the API endpoints they call, the input and output scanners each one enables, and the owner who can approve changes. Include batch jobs and internal tools, not only customer-facing features, because these are often missed. Exit criterion: the application owner for each caller confirms the list in writing, and the security lead signs off that no caller is unlisted.
Record the pinned version and Python environment
Capture the exact LLM Guard package version, the Python interpreter version, base image digests, the OS packages in each container and the model sources each scanner loads. The last PyPI release is 0.3.16, uploaded on 19 May 2025, and it requires Python 3.10 or newer but below 3.13, so confirm the interpreter in use falls within that range. Exit criterion: the platform engineering lead has a versioned record of every running environment, stored with the decommission file.
Accept and date the residual risk
Write a risk acceptance that states the project was archived on 9 July 2026, no further fixes are expected, and the guardrail will keep running until a named replacement date. Record the compensating controls in place, such as network restriction, authentication and rate limits, and name the accountable executive. Review it on a fixed cadence agreed with your risk function. Exit criterion: a signed, dated acceptance held by the risk owner and the CISO or equivalent.
Map each scanner to a replacement
For every input and output scanner in use, identify the maintained open-source guardrail or control that will take its role, and note the model dependency and its licence. Many teams find that some scanners map cleanly while others need a rule-based check or a different tool. NeMo Guardrails is one maintained option to evaluate, and each mapping should be confirmed against that tool's own documentation. Exit criterion: a mapping table approved by the security engineering lead, with every scanner assigned a replacement or an explicit decision to drop it.
Pilot on non-critical traffic
Route a small share of low-risk traffic through the replacement path and compare its verdicts with LLM Guard's on the same requests. Log false positives and false negatives separately, since both change user experience and security posture. Agree the pilot's sample size and duration in advance with the owner of each caller. Exit criterion: the pilot results are reviewed, every disagreement is classified, and the owner accepts the replacement for that scanner.
Run in parallel with logged comparisons
Send production traffic to both LLM Guard and the replacement, keep LLM Guard's verdict as the enforced result, and log both outcomes with request identifiers so they can be matched. Review disagreements on a regular schedule, focusing on requests where LLM Guard blocked and the replacement allowed. Exit criterion: the security lead confirms the replacement blocks at least what LLM Guard blocked for each agreed test set, and the remaining gaps have owners and fixes.
Cut over with a tested rollback path
Switch enforcement to the replacement one caller at a time, starting with the lowest-risk caller, and keep the LLM Guard container deployable so traffic can return to it. Confirm the rollback steps by running them in a non-production environment before the cutover. Exit criterion: each caller is enforced by its replacement, and the rollback has been rehearsed and recorded by the operations owner.
Observe, then remove models, images and hosts
After cutover, watch error rates, latency and blocked-request volumes for a period agreed with the risk owner, then retire the LLM Guard service. Delete the containers, images, locally stored model files and the hosts or namespaces that ran them, and revoke any credentials and tokens those services used. Keep the decommission record, version evidence and test results for audit requests. Exit criterion: the platform owner confirms in writing that no traffic, scheduled job or model file still depends on LLM Guard, and the risk acceptance is closed.
How the plan changes by hosting environment
Hosts that can reach Hugging Face may have downloaded LLM Guard models at first start or on a schedule, so the model cache is often spread across container layers, volumes and home directories that nobody documented. Start by listing every scanner configuration in use and the model identifier each one resolves to, then record where the files were cached on each host.
- Model inventory: Capture the model names, revisions and cache paths each container actually loaded, not only what the configuration file suggests.
- Cache location: Check container images, mounted volumes and the default Hugging Face cache directory on the host, and note which copy the running service reads.
- Retirement: Once a local copy is verified, pin the files you intend to keep and remove unused downloads so stale models do not persist after the service is replaced.
- Egress changes: If outbound access to Hugging Face is blocked later, scanners that fetch on demand will fail at startup, so test that before any firewall change.
- Approvals: Changes to outbound network rules and to the image or model set usually need network and security sign-off in addition to the application owner.
Confirm the exact cache paths, proxy settings and egress rules for each host in your own environment before you record them as inventory.
On air-gapped hosts, models were copied in through a controlled transfer, so the authoritative record of what is present lives in your transfer process rather than on the host. The decommission plan has to treat each imported model as a managed artifact, with a known origin, a checksum and a named owner, because nothing on the host can fetch a replacement.
- Artifact register: Match each model file on the host to the transfer record that brought it in, including the date, the source media and the approver.
- Integrity checks: Recompute checksums on the host and compare them with the transfer record before any file is removed or moved.
- Retirement path: Plan how models will be removed from the enclave, including whether media used for transfer must be sanitized under your own policy.
- Replacement transfers: Any maintained guardrail needs its own packages and models brought across the boundary, so schedule those transfers as separate change requests.
- Approvals: Transfers into and out of the enclave usually require approval from the data owner and the security team, and some environments add a review of the transfer media itself.
Confirm the transfer procedure, media handling rules and approval chain with the team that governs your enclave, since those rules vary widely.
A shared LLM Guard API serves several applications, so the decommission plan starts with callers rather than hosts. Removing or changing the service affects every application that sends it prompts or responses, and those teams may not know they depend on it. Inventory must come from request evidence and integration records together, not from a single team's list.
- Caller discovery: Use gateway logs, service mesh records or access logs to identify each client, the endpoints it calls and the scanners it requests.
- Owner mapping: Name an owner for each caller and confirm which applications can switch to a replacement without a code change.
- Model files: Shared instances often hold one model set for all tenants, so confirm which files are used before removing any, and keep a copy until the last caller has moved.
- Change windows: Coordinate parallel running and cutover dates across all callers, since one service change can affect several release schedules.
- Approvals: Retiring a shared control generally needs sign-off from every caller owner, the platform team and whoever holds the risk acceptance for the guardrail.
Confirm your gateway log retention and access controls with the platform team before relying on them as the caller inventory.
What drives the cost and duration of the decommission
This table lists the factors that raise or lower the effort of retiring an LLM Guard deployment, the effect each has, and what to request in a written quote. Read it as a checklist for scoping: the drivers that multiply the work are the number of callers, environments and scanners, and the depth of parallel-run comparison. Most costs in a decommission are labor, and the largest recurring cost is keeping an archived system running while the replacement is built.
| Driver | Effect on effort | What to ask for in a quote |
|---|---|---|
| Number of callers and their change control | Each caller needs an owner, a cutover date and regression tests. Teams with slow change approvals extend the parallel period. | Caller inventory as a deliverable, a named owner per caller, and the change windows assumed |
| Number of scanners enabled | Each enabled input or output scanner needs its own replacement mapping and proof that it blocks at least what it blocked before. | Scanner-by-scanner list with the replacement chosen for each and the test cases per scanner |
| Python environment pinned to 3.10 up to below 3.13 | A pinned environment keeps the archived dependency tree alive, so base image and OS patching run on a separate track that must be scoped. | Who owns patching of the pinned environment, and how often rebuilds are expected during the parallel period |
| Number of environments | Development, staging, production and disaster recovery each need the same pinned images, model files and configuration, multiplying build and verification work. | List of environments in scope and whether each gets its own test pass before cutover |
| Depth of parallel-run comparison | Shadow traffic, result diffing and false positive review grow with request volume and the variety of prompts reviewed by people. | Sample size, comparison method, who reviews disagreements and the exit criteria for the comparison |
| Log and data retention rules | Retention periods for scanner inputs, prompts and outputs decide how much data must be scrubbed, moved or kept under legal hold. | Retention requirements from your privacy and records teams, and who signs off on deletion of archived logs |
| Approval cycles | Risk acceptance, security review and architecture sign-off add waiting time that is usually not billable effort but still sets the schedule. | Named approvers, the number of review rounds assumed and the dates of the review gates |
| Container and model removal at the end | Removing images, cached Hugging Face models and mounted ONNX files needs an inventory of every copy, including backups and developer machines. | Removal checklist with evidence of deletion, and whether backups containing the models are included |
What usually goes wrong during parallel running
Parallel running is where a decommission plan either proves the replacement or quietly breaks production. The failures below tend to share a root cause: the team did not know exactly what the old guardrail was doing, for whom, and with which models. Each card names the prevention step and the evidence to keep.
Callers that were never inventoried
Teams often find LLM Guard behind a chatbot they already knew about, plus a batch job, an internal tool or a vendor integration nobody listed. Each unlisted caller is a path that will break at cutover. Prevention: build the inventory from gateway and network logs, API keys issued for the scanner server, and owner sign-off for every caller. Evidence to keep: the signed inventory with caller, scanners used, request volume and owner.
Scanner verdicts that differ silently
Two scanners with the same name can return different scores, thresholds or redaction output, and the difference only shows up on real traffic. A replacement that passes a small test set can still change which prompts are blocked. Prevention: replay a captured sample of production inputs and outputs through both systems and record every disagreement. Evidence to keep: the replay dataset, the agreement report and the decision on each mismatch.
Latency added by running two guardrails
Parallel running doubles the scanning work on every request, which can push callers past their timeouts even when neither guardrail is slow alone. The slowdown often appears only at peak load. Prevention: measure p95 latency for the old path, the new path and the combined path under realistic concurrency before any caller is switched. Evidence to keep: load test results, timeout settings used and the threshold that triggers rollback.
Logs that cannot be compared
Old and new guardrails usually write different log fields, timestamps and verdict labels, so a side-by-side review becomes manual work. Without a shared request identifier, you cannot tell whether a block on one side matches an event on the other. Prevention: add a common correlation ID at the gateway and map each scanner's verdict to one shared schema before the run starts. Evidence to keep: the field mapping document and a sample of joined records.
Models removed too early
Because the models behind LLM Guard scanners are no longer maintained on Hugging Face, teams may delete local copies once the replacement looks ready, then find a scanner still loads from a remote source during a restart. Prevention: keep a verified local copy of every model until the last caller is decommissioned, and test a cold start with outbound access blocked. Evidence to keep: model file hashes, the storage location for each copy and the cold start test record.
Cutover without a tested rollback
A cutover plan that has never been run in reverse leaves the team guessing during an incident. Routing changes, cached configuration and API keys can all make the old guardrail harder to restore than expected. Prevention: rehearse the rollback in a staging environment, time it and assign one owner who can trigger it. Evidence to keep: the rehearsal log, the rollback runbook version and the approval record for the switch.
Removing models, containers and the pinned environment at the end
Final removal starts with the callers, not the artifacts. Stop every calling application first, then confirm that no traffic reaches the LLM Guard API before deleting anything. Check the gateway or load balancer access logs for the cutover window, and check any scheduled jobs, batch tools or developer scripts that were not in the original caller inventory. Only when the logs show zero requests over an agreed observation period should the team move to deletion. Record the start and end of that period, the person who signed off and the log source, because that record is the first evidence an auditor will ask for.
Next, remove what the deployment left behind. Delete the running containers, the container images that were built or pulled for the API server, and any named or anonymous volumes that held state. Then remove the copied ONNX or other model files from local paths and host mounts, including any directory referenced by a model_path setting. Check backup targets, CI caches and shared network storage too, since copies often end up outside the host you were watching. Confirm the removal on each host with a directory listing and a container list, and keep the output with the change ticket.
Last, retire the pinned Python environment and the base images that carried it. Remove the virtual environments, lock files, and the internal base image tags that pinned the LLM Guard release, and update any build pipeline that still references them. Confirm with your own evidence policy whether you keep the lock files, image digests, scanner configuration and test results after deletion, and how long, because retention of deleted artifacts is a decision your compliance and security owners must make, not one this page can settle. Keep a sealed record of the final configuration, the image digests and the removal evidence in your system of record, and set a reminder to check that nothing has been redeployed from an old tag.
What buyers ask before they plan an LLM Guard decommission
How much does an LLM Guard decommission cost?
The cost depends on how many callers, scanners and environments the deployment has, and on who does the work. Most of the spend falls into four parts: the caller inventory, the replacement build for each scanner, parallel running with comparison testing, and the final removal of models, containers and configuration. Ask any partner to price each part separately so you can see which ones your own team can absorb. No public figure is available for this work, so request a written quote that follows from a defined scope. Because LLM Guard is archived, the cost of keeping it running is mostly internal time for patching, pinning and risk documentation, and that cost recurs until the decommission is complete.
How long does it take to decommission LLM Guard?
Duration is set by the number of callers that depend on the API, the number of scanners in use, and how many replacement guardrails must be proven against the existing ones. A deployment with one internal caller and a few scanners is usually simpler than one serving several products across regions. Other drivers include whether the team has to wait for change approvals, how long parallel running must last to gather enough traffic, and whether the environment is air-gapped. Confirm these factors with your own change calendar and traffic data before accepting any timeline, and ask for milestones tied to evidence rather than calendar dates alone.
What does the decommission need from our team?
Expect the work to need named owners from application engineering, platform operations, security and compliance. Application teams confirm which requests reach the scanner and how they handle a block. Platform teams provide access to logs, container registries and deployment pipelines. Security or risk owners sign off on the risk acceptance while LLM Guard still runs, and compliance leads collect the evidence auditors ask for. Ask for a written list of these roles and hours before the work starts, and agree who approves the cutover and who can stop it.
Can our internal team decommission LLM Guard alone?
Yes, a capable internal team can do the work alone if it has the time, the skills and the approvals. The task involves inventorying callers, building replacement guardrails, comparing results across parallel traffic and removing old components, so the team needs engineers who understand both the existing API and the target guardrail. Teams often bring in a partner for the comparison testing and evidence, because an independent review can be easier to defend to auditors. Decide which parts you keep and which you outsource, and write that split into the scope.
What happens if the replacement does not block what LLM Guard blocked?
If the replacement misses cases that LLM Guard caught, the cutover should stop for that scanner until the gap is closed or formally accepted as residual risk. The parallel running phase exists to find these gaps: both systems receive the same sample of traffic, and every case where they disagree is reviewed. Document each gap, the fix, the retest result and the owner who accepted any remaining risk. Do not retire the old scanner for that path until the comparison results support the change. Plan for a rollback path that keeps LLM Guard available for the affected caller.
Is a fixed-scope decommission engagement available?
Yes, most DeployOpen engagements are fixed-scope, meaning the scope, deliverables and timelines are agreed in writing before work starts. For a decommission, the written scope should name the caller inventory, the scanners to replace, the parallel running period, the evidence to deliver and the removal steps for models and containers. Ongoing support for the period while LLM Guard still runs can be handled as a separate retainer. Ask for a quote that lists each deliverable and states what the client must provide, so changes to scope are visible and priced before they happen.
How do we keep LLM Guard secure until it is removed?
Until the last caller moves off, treat the deployment as an unmaintained component. Pin the version, restrict network access to the API, keep bearer token authentication and rate limits enabled, and record the compensating controls you rely on. Track which models and base images are in use, because the archived project no longer publishes fixes. Security testing can check that these controls work before you accept the remaining risk in writing. Confirm the current state of each control in your own environment rather than assuming it from the original install.
How DeployOpen scopes and delivers an LLM Guard decommission
DeployOpen approaches an LLM Guard decommission as a written, fixed-scope piece of work: we inventory the callers and scanners in your environment, agree the replacement milestones, and deliver a plan you can run without us. Ongoing support and continuous testing are available as a retainer if the transition runs longer than planned.
How we scope
- Inventory every application, gateway and pipeline that calls your LLM Guard API or imports it as a Python library.
- Record which input and output scanners each caller uses, and which models each scanner loads at runtime.
- Agree the decommission deliverables, milestones and exit criteria in writing before any work starts.
How we build
- Draft the risk acceptance record for the period LLM Guard keeps running, with named owners and review dates.
- Set up parallel running so replacement guardrails see live traffic alongside LLM Guard without blocking users.
- Test each replacement against the scanner behavior your callers depend on, and keep the results as evidence.
How we hand over
- Deliver a decommission runbook covering cutover order, rollback steps and the removal of containers, images and model files.
- Document the final state of pinned versions, retained model copies and access controls for auditors and security reviewers.
- Walk your platform and security teams through the plan so they can run the remaining steps on their own.
How we support
- Offer a retainer for ongoing monitoring, retesting and support while your last callers move off LLM Guard.
- Repeat tests after each replacement change so the decommission evidence stays current until shutdown.
- Confirm the scope of any follow-on work in writing, with the same deliverables and exit criteria as the original plan.

