Why the LLM Guard Python 3.13 ceiling matters for your running deployment
The last LLM Guard release on PyPI, 0.3.16, uploaded on 19 May 2025, requires Python 3.10 or newer but below 3.13. The repository was archived by its owner on 9 July 2026, so no new Python support will arrive. For a deployment that has to keep running while the host operating system and base container images move on, this means the ceiling is fixed for the life of the project.
There is no supported upgrade path to a newer Python for LLM Guard itself. The practical options are to hold a pinned environment on Python 3.12 or earlier within the supported range, contain it so that its exposure shrinks over time, and plan its replacement. Check the LLM Guard documentation and the protectai/llm-guard repository to confirm that nothing in the archive notice changes this. Confirm the current end-of-life dates for each Python version you run on the official Python release schedule, because those dates decide how long the pinned interpreter stays defensible.
The ceiling creates a conflict that your platform team will feel first. A new base image or OS release may ship only a Python version outside the LLM Guard range, so the scanner container has to stay on an older image even as the rest of the fleet moves. Before the next image or OS refresh, list every LLM Guard container, its base image tag and its interpreter, and decide who owns the exception. Ask your security team to record that exception as accepted risk with a review date, so that the pinned runtime is a documented decision rather than an overlooked one.
What changed in the LLM Guard release line that affects your environment
This table compares each supplied change in the LLM Guard release line against four areas: base images, OS upgrades, dependency patching and model downloads. Read each row as a fact, then the impact on your environment, then the action to take. The main takeaway is that the archive and the Python ceiling both shift risk onto your own build and patch process.
| Change | Impact on your environment | Action for your team |
|---|---|---|
| Archived on 9 July 2026 | No new releases, fixes or dependency updates are expected from the upstream owner. Vulnerabilities found after archiving will not be patched upstream. | Record the archive date in your risk register and decide who owns patching for each pinned version. |
| README states the project and its Hugging Face models are no longer maintained | Scanner models downloaded from Hugging Face may stop being updated or may become unavailable. Model behavior will not change through upstream fixes. | Confirm which models each scanner loads, then mirror and hash them into controlled storage. |
| Last PyPI release is 0.3.16, uploaded 19 May 2025 | Your base image and dependency set will be frozen at this release unless you fork or patch it yourself. | Pin the exact version in your lock file and treat it as the final upstream build. |
| Requires Python 3.10 or newer but below 3.13 | Base images must use Python 3.10, 3.11 or 3.12. A move to a Python 3.13 base image will not install the package. | Keep a Python 3.12 base image on your supported list and confirm it still receives security updates. |
| OS upgrades | Moving to an OS release that ships only Python 3.13 by default forces a separate Python interpreter or a custom build. | Ask your platform team which Python runtimes the target OS supports before scheduling the upgrade. |
| Dependency patching | Transitive libraries can receive security fixes while LLM Guard itself cannot be bumped past the Python ceiling in the same way. | Scan the locked environment on a schedule and document which findings you accept and why. |
| MIT license | The license allows you to use, modify and redistribute the code, but it does not add upstream support or model updates. | Confirm license terms for each model separately, as covered in the buyer's guide. |
How to decide between holding the pin and replacing LLM Guard
The decision starts at a host or base image that needs a Python change or a security patch. First check whether the current interpreter is within the 3.10 to 3.12 range that the final LLM Guard release supports. If the OS or base image forces a newer Python, the pinned environment has to move into a container with its own interpreter, or the team has to start replacement. If isolation is possible and a maintained replacement is not ready, hold and contain the pinned environment. If a maintained replacement is ready, start replacement under the migration and decommission plans.
Decision path for a Python or OS change affecting a pinned LLM Guard environment.
How long a pinned LLM Guard environment can be held
The length of time a pinned LLM Guard environment can be held is not a date DeployOpen can promise. It depends on factors you control and on facts you must confirm with others, so the answer for your estate comes from checking each dependency rather than from a single calendar date. Start by treating the pinned Python interpreter, the base image, the operating system and the unmaintained models as four separate clocks, each with its own patch cadence and its own owner.
The interpreter is the hard limit. The final LLM Guard release on PyPI, 0.3.16, requires Python 3.10 or newer but below 3.13, so the environment cannot move to 3.13 without leaving the release the project still publishes. Confirm the end-of-life dates for the Python release you run with the Python release schedule, and confirm how long your base image vendor will keep shipping security fixes for the image that carries it. The shorter of those two dates usually governs. Your OS security updates may also pull in newer system libraries, such as OpenSSL or glibc, that the pinned Python or LLM Guard dependencies were not tested against, so schedule a test build after each base image rebuild.
The models add a third clock that no patch will reset. The Hugging Face models are no longer maintained, so a vulnerability or a regression in a model or in a dependency it needs will not be fixed upstream. Record which model versions are loaded, keep a checksum of each, and note which scanners depend on them. Then document your risk acceptance with the LLM Guard decommission plan, including who signed it, the date it was reviewed and the trigger that ends the exception. That written decision, not the age of the image, is what should set the hold period.
What to prepare before changing any base image or host OS
Changing a base image or host OS under LLM Guard means the Python runtime, the pinned packages and the scanner models all move together. The items below capture the current state so you can rebuild it, compare it and roll back if the new environment behaves differently. Work through them before the first rebuild attempt, not after it fails.
Inventory every runtime location
List each container image, virtualenv and host that runs LLM Guard, including staging, batch jobs and developer machines that call the scanners. Record the base image tag or OS release, the Python interpreter path and who owns each location. Without this list, a Python 3.13 base image can reach a host you forgot, and rollback has no target. Confirm the list against your deployment tooling, not memory.
Pin the exact release and lock
Record that the deployment runs LLM Guard 0.3.16, the last release on PyPI, along with a full dependency lock file or hashed requirements output from the running environment. The release metadata requires Python 3.10 or newer but below 3.13, so the lock is the only reliable record of transitive versions. Store it in version control alongside the image digest. Rollback to a known build depends on it.
LLM Guard on PyPICopy the scanner models locally
Copy every model the enabled scanners load into storage you control, and record each model's file path and checksum. The upstream models are no longer maintained, and a rebuild that fetches from the model hub may fetch something different or nothing at all. Confirm which scanners load models by reviewing your scanner configuration, since not every scanner needs one. Keep the copies with the lock file so an offline rebuild can use them.
Run a rebuild test outside production
Rebuild the image or virtualenv on the target base and Python version in a non-production environment, then run the same scans you use in production. Compare outputs, latency and memory use against the current build, and note every dependency that fails to resolve. This test shows whether a Python 3.13 runtime is viable at all, which the archived release does not support. Keep the test output as evidence for the change record.
Back up configuration and scanner settings
Export the API server configuration, environment variables, scanner parameters and any thresholds you tuned, such as scanner-specific settings for input and output checks. Store them in version control or a backup system with a restore procedure you have tested. Settings often live in container orchestration manifests or secrets stores, so capture those sources too. A rebuilt image with default scanner settings can pass traffic that the tuned version blocked.
List callers that depend on current behavior
Identify every application, gateway and service that sends requests to LLM Guard, and record which scanner results each one acts on. Note any caller that parses specific response fields, expects particular error codes or relies on the current latency. Ask each owner to confirm how they will test after the change. A base image change that alters scanner output or timing can break callers that never changed their code.
Which base image option fits each situation
This option keeps the current image and interpreter in place, which is the smallest change to a working deployment. It suits hosts that sit behind a restricted network where the guardrail API accepts traffic only from known callers. The trade-off is that the interpreter and its base OS stop receiving the fixes they would get from a maintained vendor line, so the risk moves into the network controls and the patch plan around the image.
- Pin by digest: Record the image digest and the exact Python patch version so every rebuild and rollback reproduces the same environment.
- Restrict egress and ingress: Limit inbound calls to approved application hosts and block outbound traffic, so a compromised container has fewer paths out.
- Track interpreter advisories: Subscribe to vendor and Python security notices for the pinned version and record which ones are not patched in your image.
- Scan the image on a schedule: Run an image vulnerability scan against the pinned digest and keep the results as evidence.
- Run regression tests: Replay recorded prompts through every scanner after any change to the host, the OS packages or the container runtime.
Confirm with your base image vendor how long the pinned tag will remain available and whether security fixes for that OS release still ship. Ask your security team to accept the residual risk in writing.
This option rebuilds the image on a supported Python 3.12 base while keeping the LLM Guard package at the last release that installs on that interpreter. It is usually the most practical path when the OS remains supported and the team needs current interpreter patches. The package requirement is the constraint: the last release on PyPI requires Python 3.10 or newer but below 3.13, so 3.12 satisfies it, but any move to 3.13 or later does not. Dependency resolution must be rechecked because transitive packages can change between builds.
- Rebuild from a clean base: Start from the supported 3.12 image and install the pinned LLM Guard release without floating version ranges.
- Lock transitive dependencies: Generate a lock file covering every Python package, including those pulled in by the scanners, and review changes before each rebuild.
- Retest model loading: Confirm each scanner still loads its models from the path you use, since native libraries can differ across builds.
- Compare behavior: Run the same test prompts against the old and new images and keep the outputs for comparison.
- Document the dependency pins: Record which package versions are fixed and why, so later patching does not break the guardrail silently.
Confirm with your base image vendor the support window for the 3.12 image and the OS release beneath it. Check with your security team that the rebuilt image is covered by the same scanning and change approval rules as the original.
Some environments must move to a newer OS release that no longer ships Python 3.12 or an earlier interpreter the package accepts. In that case, the LLM Guard package cannot run on the platform's default Python, and it should not be forced onto a newer interpreter that the package does not support. Options are to isolate the guardrail on a separately managed container with its own interpreter, or to start replacing the guardrail with a maintained alternative. The security trade-off is that the older interpreter is then carried in a container on a newer host, which needs its own isolation and monitoring.
- Isolate the interpreter: Run LLM Guard in a container with its own Python build, separate from the host operating system packages.
- Keep the host patched: Apply host OS updates on the newer release while treating the guardrail container as a separately tracked component.
- Define the exit date: Set a decommission milestone tied to the OS upgrade so the exception does not become permanent.
- Verify the boundary: Test that the container cannot reach host credentials, other workloads or unapproved networks.
- Record the exception: Log the interpreter exception, the compensating controls and the approver in the risk register.
Confirm with your platform team and base image vendor which interpreter versions remain available on the target OS release. Get written risk acceptance from the security team before the host upgrade proceeds.
Steps to rebuild a pinned LLM Guard image with a rollback point
This sequence produces a reproducible LLM Guard 0.3.16 container on a supported Python version, verified against representative traffic, with the previous image kept so the team can return to it quickly if the rebuild misbehaves.
Pin Python and LLM Guard in a lock file
Choose a Python interpreter in the 3.10 to 3.12 range that LLM Guard 0.3.16 accepts, since the PyPI metadata for that release requires Python 3.10 or newer but below 3.13. Pin llm-guard to version 0.3.16 and every transitive dependency in a lock file, and pin the base image by digest rather than by a floating tag. Done means the lock file resolves cleanly in a clean environment and the dependency tree contains no unpinned entries. Ask your platform team to confirm which Python patch level the base image vendor still publishes.
Build the image in a test environment
Build the container from the lock file in an isolated build environment that has no access to production secrets. Use the same build definition you will later promote, so the staging and production images differ only in configuration. Done means the build completes without network-fetched dependencies outside the lock file and the image starts its API server process. Record the build log so the dependency set can be compared against the lock file later.
Verify scanners load and respond
Start the image and confirm each input and output scanner you actually use loads without error and returns a result for representative inputs. Prepare a fixed set of benign and malicious samples for every scanner in use, including prompt injection, secrets, and output cases, and record the expected verdicts. Done means each scanner returns the expected verdict on the fixed set and the startup log shows no model download attempts. Any scanner that fails to load or returns a different verdict stops the sequence.
Record the image digest
Once the test image passes, record its immutable digest, the lock file hash, the Python version, and the base image digest in your change record. Store these alongside the previous production digest so both are traceable. Done means the change record lists all four values and the image can be pulled by digest from your registry. Auditors and customers typically ask for this version pinning evidence, so keep the record with the release.
Deploy to staging with the same callers
Deploy the recorded image to staging behind the same routes, credentials, and calling applications that use production, rather than a simplified test client. Confirm that bearer token authentication, timeouts, and logging behave as they do in production. Done means every caller in your inventory has completed a successful request in staging and error rates match the baseline. If a caller depends on behavior that differs, fix the configuration before continuing.
Run parallel checks on sampled production traffic
Send a sample of production requests to the new image in parallel with the current one, comparing verdicts and latency without blocking user traffic. Review every disagreement manually, because a difference can mean a regression in the rebuilt image or a gap in the current one. Done means the disagreement rate has been reviewed, every unexplained difference is closed, and the sample size and window are documented in the change record. The sample size and window should be agreed with your security owner before the run starts.
Promote and keep the previous image as rollback
Promote the new image digest to production and keep the previous production image in the registry, unchanged, with its digest recorded. Make the rollback a documented change that repoints the deployment to the old digest and does not require a rebuild. Done means the rollback steps have been written down and the previous image is confirmed pullable. Roll back immediately if any of these occur: a scanner fails to load, verdicts diverge on the fixed set, error rates or latency exceed the baseline, or a caller stops receiving results.
What makes a Python or OS change take longer
This table compares the factors that stretch or shorten a Python or OS change on an archived LLM Guard deployment, and shows what each one does to effort. Read it before asking for a quote, because the answers to the confirmation questions determine most of the scope. The main takeaway is that the number of images, the model source and the number of exact-output callers usually matter more than the Python version itself.
| Driver | Effect on effort | Confirm up front |
|---|---|---|
| Number of deployments and images | Each image has its own pinned Python base, OS packages and LLM Guard install, so every image is rebuilt, tested and redeployed separately. | How many images, hosts and environments run LLM Guard, and which ones share a base image. |
| Custom scanner configuration | Non-default scanner settings, thresholds and custom patterns must be carried into any rebuilt environment and checked again after the change. | Which scanners are customized, where those settings live, and whether they are version controlled. |
| Models loaded from Hugging Face | Changing the Python or OS base can force model files to be re-fetched or re-validated, and the Hugging Face models are no longer maintained, so their availability needs checking. | Whether each scanner loads models from Hugging Face at start, and whether a local copy of each model exists. |
| Models held in a local copy | A local copy removes the download step, but the copy must be verified against the version that passed earlier tests before it is reused. | Where the local model files are stored, who owns them, and when they were last checked. |
| Air-gapped hosts | Hosts without internet access need an offline package mirror and transferred model files, which adds steps for each rebuild and each security patch. | Whether an internal package mirror exists, how it is updated, and how artifacts cross the boundary. |
| Depth of the dependency tree | Deep or pinned transitive dependencies can conflict with a newer Python or OS library set, so more packages need resolving and testing. | A full dependency lock file for the current environment, and which packages have known vulnerabilities. |
| Callers that depend on exact output | Changed scanner scores or wording can break downstream parsing, alerts and tests, so each consuming system needs its own regression check. | How many applications call the guardrail, which fields they parse, and who signs off on output changes. |
| Availability of test traffic | Without recorded or representative prompts and responses, the team must write test cases from scratch before it can prove the change is safe. | Whether logs of real requests can be used for testing, under what data handling rules, and who approves them. |
Questions teams ask about the LLM Guard Python ceiling
Can LLM Guard run on Python 3.13?
No, not as published. The last LLM Guard release on PyPI, 0.3.16, uploaded on 19 May 2025, requires Python 3.10 or newer but below 3.13, so pip will not install it on a 3.13 interpreter without changing the package metadata or forking the code. Treat the 3.10 to 3.12 range as the ceiling for any existing deployment. Before you plan around it, confirm the interpreter version in every base image, virtual environment and CI job that builds or runs the scanners, because a container built on a newer default Python image can fail at install time rather than at runtime.
Will anyone patch LLM Guard if a vulnerability is found?
Do not plan on it. The 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. That means no upstream fixes for the Python code, the dependency pins or the models should be assumed. Your own options are to keep the pinned version under compensating controls, maintain a private fork with the patches you need, or move to a maintained guardrail. Confirm internally who would own a fork, how security advisories will reach that owner, and whether your scanner-level risk acceptance covers an unpatched flaw.
How long can a pinned LLM Guard image stay in use?
There is no safe duration set by the project, so the answer depends on what the environment still receives. The pinned image keeps working only while the host OS, container runtime, base image and transitive dependencies stay supported and free of critical flaws that matter for your deployment. Set a review date tied to the end of support for your OS and base image, and set a second trigger tied to any new high-severity advisory in a dependency. Your security and compliance owners should decide the acceptable window in writing and record that decision with your replacement timeline.
What does rebuilding a pinned LLM Guard environment involve?
The work covers more than changing a Python version number. The main parts are:
- Rebuilding the image or virtual environment on a supported Python 3.10 to 3.12 interpreter and pinning every dependency and model file.
- Re-running the scanners against a representative test set to confirm the same verdicts, latency and memory behavior.
- Updating the OS, base image and CI pipeline so the rebuild can be repeated later.
- Recording the build as evidence for your change and audit records.
The main cost drivers are the number of scanners in use, whether models are downloaded or copied locally, how much regression testing your callers require, and how many environments must be rebuilt. Ask any provider to price these items separately in the written scope.
Can our own team rebuild LLM Guard internally?
Often yes, if you have engineers who can manage Python packaging, container builds and model files, and who can run regression tests against your own traffic. The harder part is usually not the build but the proof: showing that the rebuilt scanners block what the original did, documenting the pins and keeping the rebuild repeatable. Consider whether the people who own the caller applications can review test results, and whether someone outside the build team can check the evidence. Teams with a small platform group often find that the rebuild competes with the replacement project for the same engineers, so decide early which work is in-house and which is scoped out.
What do we need to provide for a rebuild or migration?
Before any rebuild or replacement work starts, prepare three inputs. First, an inventory of every service, API client and pipeline that calls LLM Guard, with the scanners and thresholds each one uses. Second, representative test traffic, including prompts and outputs that should be blocked, allowed and handled by fallback behavior, with any sensitive data masked. Third, written approvals from the owners of the callers, security and compliance, covering the change window, the rollback plan and the risk acceptance for the interim period. Without these inputs, any provider or internal team can only verify that the service starts, not that it still protects the application.
Can a consultant help rebuild LLM Guard or replace it?
Yes. DeployOpen works on self-hosted open-source platforms inside the client's own infrastructure, and planning a rebuild or a move to a maintained guardrail such as NeMo Guardrails can be scoped as a fixed-scope engagement with deliverables and timelines agreed in writing before work starts. A useful scope separates three items: the environment rebuild on a supported Python version, the replacement of scanners with maintained alternatives, and the verification evidence for each. DeployOpen does not issue audit reports or certifications, so ask any provider how the evidence will be prepared for your auditors. Ask for a written quote that names each item and the inputs you must supply.
How DeployOpen scopes and supports LLM Guard environment work
DeployOpen approaches LLM Guard and the Python 3.13 ceiling as a bounded piece of infrastructure work inside your environment, not as a new LLM Guard rollout. We scope the Python version, base image and dependency constraints you have today, then build and document a pinned environment you can run, patch and eventually retire. LLM Guard is archived, so the work is planned around replacement.
How we scope
- Inventory every LLM Guard host, container image and Python interpreter version in your infrastructure before any change is proposed
- Record which base images, OS releases and dependency pins are tied to the Python 3.10 to 3.12 range
- Agree the written scope, deliverables and timeline in writing before work starts, with a quote following from that scope
How we build
- Build or rebuild the pinned container image on a supported Python 3.12 interpreter that LLM Guard's release metadata allows
- Test scanner behavior against your own sample traffic so changes to the environment do not silently alter scan results
- Keep the image reproducible, with pinned versions and a documented process for rebuilding it when the OS base changes
How we hand over
- Deliver the environment definition, build steps, version manifest and rollback procedure as documentation your team owns
- Walk your engineers through patching, rebuilds and the checks to run after an OS or base image update
- Record the known limits of the pinned environment so your risk owners and decommission plan start from accurate facts
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial engagement
- Retainers can cover periodic rebuilds, dependency review and retesting after base image or OS changes
- Retainer scope is agreed in writing, so you can confirm response expectations and what is included before signing

