LLM Guard license: what the MIT license and model licenses allow

The MIT license on LLM Guard permits commercial use, modification and redistribution with one notice condition, but its Hugging Face models carry their own licenses. Check each model separately before approval.

On this page

Can an archived LLM Guard deployment stay in a commercial product?

The code is MIT licensed, which permits commercial use, and the only condition is that the copyright notice and permission notice travel with all copies or substantial portions of the software. The Prompt Injection scanner's model, ProtectAI/deberta-v3-base-prompt-injection-v2, is licensed under Apache License 2.0, and the protectai model deberta-v3-base-zeroshot-v1-onnx is listed as MIT. Licenses must therefore be checked per artifact: the code, each model your scanners load, and any other dependency in the deployment. A yes for the library does not automatically cover the models behind it.

Archiving does not change the license. The LLM Guard LICENSE names Protect AI as copyright holder and grants the rights above regardless of the repository's status. What archiving changes is practical: the repository is archived by its owner and is read-only, and the README states that the project and its associated Hugging Face models are no longer under active development or maintained. The software is also provided AS IS, without warranty. Legal and procurement should record that the license is permissive, while security and engineering leads should record that no fixes, model updates or security patches will come from the owner.

DeployOpen does not recommend new LLM Guard rollouts. If your organization already runs LLM Guard, the license question is usually settled by confirming the notice requirement is met in your distribution and by confirming which model licenses apply to the scanners you use. Legal, procurement, security and engineering leads each need to sign off on different parts of that check. Confirm with counsel how your product terms treat third-party components with no maintainer, and plan replacement on the maintenance timeline your own risk process sets.

Which license covers which LLM Guard artifact

This table sets the LLM Guard code, the Prompt Injection model and a second protectai model side by side, so you can see which license governs each artifact you might ship. Read each row as a separate license decision, because the code license does not carry over to the models. The main takeaway is that the MIT code license is only one of the licenses to clear before a commercial product keeps an LLM Guard component.

ArtifactLicense and termsWhat it means for your product
LLM Guard code (GitHub and PyPI)MIT license, copyright Protect AI, provided AS IS without warrantyPermits use, modification, distribution and sale. Keep the copyright and permission notices in all copies or substantial portions.
deberta-v3-base-prompt-injection-v2 modelApache License 2.0 (Hugging Face model card)A different license from the code. Confirm Apache 2.0 terms, including its notice and attribution requirements, with counsel before shipping.
deberta-v3-base-zeroshot-v1-onnx modelMIT (Hugging Face model card)Same permissive terms as the code, but confirm the model card and any included files still show MIT at the time you review.
Repository statusArchived by its owner on 9 July 2026, now read-onlyThe license still applies to the published code, but no fixes, security patches or license updates should be expected.
Last PyPI release0.3.16, uploaded 19 May 2025, requires Python 3.10 or newer below 3.13Pin this version in any existing deployment and plan Python version compatibility around it.
Price or paid editionNo price or paid edition is published for LLM Guard, and the license carries no feeCosts come from your own engineering, hosting and review work, not from a license purchase. Confirm no commercial edition exists before relying on that.

What is free under the license and what you still run yourself

The MIT license on LLM Guard code costs nothing to use and carries few conditions, but it does not transfer operating responsibility. Because the project is archived, every fix, runtime choice and patch from this point sits with the organization running it or the partner it hires.

Use, modify and redistribute the code

The MIT License grants permission, free of charge, to use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software. You can run LLM Guard inside an internal service or ship it inside a commercial product without paying a license fee to Protect AI. Check that your legal team reads the license file itself, since the rights listed here are a summary of it.

LLM Guard LICENSE

Keep the notices in every copy

The only condition attached to the MIT license is that the copyright notice and the permission notice appear in all copies or substantial portions of the software. The copyright holder named in the file is Protect AI. Any container image, vendored copy or internal fork you build must carry that notice, and your release process should check for it.

Accept the software as is

The license provides the software AS IS, without warranty of any kind, express or implied. No one is obligated to fix defects, answer security reports or keep detection current. Because the repository is archived and read-only, you should assume that any defect you find will be yours to fix, test and document.

Host and run the service yourself

You provide the servers or cloud accounts, the network path, and the API or library deployment. LLM Guard runs as a Python library or as an API server, so you also own its logging, access control and scaling. Confirm where prompts and outputs are processed, because the scanners see the same data your application sees.

Manage the Python runtime and dependencies

The last PyPI release, 0.3.16, requires Python 3.10 or newer but below 3.13. You must keep the interpreter inside that range, and you must patch your own dependency tree, including libraries that LLM Guard pulls in. No upstream release will address new Python versions or vulnerable packages, so plan that work as recurring effort.

Supported Python range
3.10 to 3.13

Download, store and verify models

The Prompt Injection scanner and other scanners load models from Hugging Face. Each model carries its own license, which can differ from the MIT code license, so record the license of every model you deploy. Mirror approved model files into storage you control and keep checksums, because the models are no longer updated.

Prompt Injection model card

Confirm support terms before you rely on them

No paid support tier, service level or vendor fix commitment is published in the supplied information. Ask Protect AI in writing whether any commercial support exists for LLM Guard, and whether it would cover security fixes after archival. If no answer is available, treat all fixes as internal work and budget for it accordingly.

LLM Guard repository

Which license position fits which use case

An internal deployment that screens prompts and responses for your own staff, with no copies given to anyone outside the organization, is the lowest-exposure position. The MIT license text covers the code, and its only condition is that notices stay with copies of the software. Model terms still apply, because each model is licensed separately from the code.

  • Code under MIT: You may use, copy, modify and run LLM Guard without paying a fee or asking the copyright holder for permission.
  • Notice condition: Keep the copyright notice and permission notice in any copy of the software, including forks or vendored copies stored in your repositories.
  • Model licenses: The Prompt Injection scanner uses the Apache License 2.0 model, and it needs its own license file and notices kept with the model files.
  • Warranty position: The software is provided AS IS, so your internal owners carry the operational risk of an archived project.
  • Scanner inventory: Each enabled scanner may load a different model, so the list of models is the list you must license.

Before go-live, list every model that your enabled scanners load and record its license, then confirm with your legal team that internal use fits your own policies.

What drives total cost beyond the license

The MIT license carries no fee, so the real cost sits in the work around it. Each row names who is paid for the work, whether it is one-time or recurring, and what pushes it up, using the 15 input and 20 output scanners documented for LLM Guard as the main scale driver.

Cost componentWho pays for the workOne-time or recurringWhat drives it
Model license reviewYour legal or compliance team, sometimes with outside counselOne-time per model, plus review when a model is changedNumber of deployed models, each with its own license, such as the Apache License 2.0 Prompt Injection model and the MIT model in the protectai organization
Scanner inventory and attributionYour engineers and compliance leadOne-time, then updated when scanners changeCount of enabled input and output scanners out of the 15 input and 20 output documented, and which of them load a model
Staff time to keep an unmaintained Python stack runningYour platform or security engineersRecurringPinned dependencies, the Python range the last release supports, and absence of upstream fixes for vulnerabilities
Infrastructure for the API server and model loadingYour cloud or data center budgetRecurringMemory and compute needed to load each model, request volume and whether scanners run in the request path
Security testing of an archived componentYour security team or a testing partnerOne-time at adoption, then on each changeNumber of scanners exposed to untrusted input, and whether outputs feed downstream systems
Migration to a maintained guardrail such as NeMo GuardrailsYour engineering team or an implementation partnerOne-time project effortScanner count and the behavior each scanner must match, plus how many models must be replaced or retained
Re-validation after changesYour QA and security teamsRecurring, tied to each changeFrequency of model or dependency updates, and whether a new model replaces an archived one

What the MIT license and model licenses require of you

The LLM Guard code and its Hugging Face models are licensed separately, so each one carries its own duties. The cards below cover what the MIT license asks of you, what it leaves with you, and what to read in the model licenses before you ship.

Keep the copyright and permission notices

The MIT License in the LLM Guard repository has one condition: the copyright notice and the permission notice must be included in all copies or substantial portions of the software. Copyright is held by Protect AI, as named in the LICENSE file. When you vendor LLM Guard code, build it into an image, or copy parts of it into your own product, carry the LICENSE text along with it so the notices travel with the code.

LLM Guard LICENSE

Accept the as-is warranty disclaimer

The LLM Guard LICENSE provides the software AS IS, without warranty of any kind, express or implied. Protect AI gives you no promise that a scanner will catch a given prompt or output, and the project is archived, so no fixes are coming. Your organization carries the assurance risk. Test each scanner against your own traffic and record the results before you rely on it for a control.

Use the code under MIT terms

The MIT License lets you use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software without restriction. That covers internal use, changes you make, and commercial products. It does not give you rights to the separately licensed models, and it does not make the archived project maintained. Confirm with legal that your planned use fits these terms before you ship.

Read the Prompt Injection model license

The Prompt Injection scanner uses the ProtectAI/deberta-v3-base-prompt-injection-v2 model, whose Hugging Face model card lists Apache License 2.0. That is a different license from the MIT license on the code. Apache 2.0 has its own notice and terms, so legal should read the model card directly and keep a copy of what it says on the date you check.

Prompt injection model card

Check other models in the organization

Other models under the protectai Hugging Face organization carry their own license entries. For example, the protectai/deberta-v3-base-zeroshot-v1-onnx model lists MIT on its page. Do not assume a model shares the code license. List every model your deployment loads, read each model card, and record the license and any notice it asks you to include.

Zero-shot model card

Ask legal to confirm the notice set

Each license has its own notice and attribution wording, so a single notice file rarely covers the whole stack. Ask legal to produce one document that lists the code license, each model license, and the exact notice text required for each. Refresh that document whenever you change a model version or add a scanner, since a new model may bring a new license.

What to collect before the license approval

This sequence gives the approver a dated, verifiable record of exactly which LLM Guard code and which Hugging Face models are in use, what each license requires, and who is accountable for the archived components. The output is a file the license decision can cite.

  1. Pull the LICENSE file from the repository

    Download the LICENSE file from the protectai/llm-guard repository on GitHub and store a copy with the approval record. Confirm that it is the MIT license and that the copyright holder is named as Protect AI. Check that the repository is marked archived and read-only, since that status affects whether any future license change or fix can come from upstream. Done when the file and the check are filed together with the date you retrieved them.

  2. Record the exact version or commit in use

    Identify the LLM Guard build that runs in your environment. For a pip install, record the installed package version from your lock file or environment, and compare it with the last PyPI release, 0.3.16, uploaded on 19 May 2025. For a source checkout or container image, record the commit hash or image digest. Done when one identifier is written down that maps to a specific LICENSE file version.

  3. Inventory every Hugging Face model loaded

    List each scanner in your configuration and the model it loads at startup or at first use. Check the LLM Guard documentation for the model each input and output scanner depends on, and include models pulled indirectly by dependencies. The Prompt Injection scanner uses ProtectAI/deberta-v3-base-prompt-injection-v2, which is Apache License 2.0 and differs from the MIT code license. Done when every model identifier in use is on the list, with the scanner that loads it.

  4. Record the license of each model

    Open the Hugging Face model card for each identifier on the inventory and copy the license field, the model revision or commit you deploy, and the license text link if the card provides one. Note that the card for protectai/deberta-v3-base-zeroshot-v1-onnx lists MIT, so license terms differ from model to model. Done when every row has a license, a revision and a retrieval date. Confirm any model without a stated license with counsel before approval.

  5. Confirm the notice survives distribution

    Check every artifact you ship, including container images, internal packages and bundled model files, for the copyright notice and the MIT permission notice. The license requires both to be included in all copies or substantial portions of the software. Also confirm that each model's own license notice travels with the model files. Done when a review of the built artifact shows both notices present, and the result is recorded in the approval file.

  6. Name a support owner for the archived code

    Because the project is archived and the README states it is no longer maintained, assign one named person or team to own security issues, dependency problems and Python version constraints, including the ceiling below 3.13. Ask whether your organization needs a contract with an outside party for that work, and get the terms in writing. Done when the owner accepts the role in the record and the escalation path is documented.

  7. Define the exit path to a maintained guardrail

    Write down which maintained guardrail will replace LLM Guard scanners, such as NeMo Guardrails, and which scanners each replacement must cover. Set the criteria the replacement must meet before LLM Guard is removed, and record the license of the replacement and any models it loads. Done when the exit plan is approved alongside the license decision, so the approval states its own expiry condition.

Questions legal and procurement ask about LLM Guard licensing

Does the MIT license allow commercial use and resale of LLM Guard?

Yes. The MIT license on LLM Guard lets any person use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software without restriction, and it is free of charge. A commercial product can embed the code, change it and ship it to customers. The only condition is that the copyright notice and the permission notice stay in all copies or substantial portions of the software, so keep the LLM Guard LICENSE text with the code you ship, including container images and vendored copies. The permission covers the code only. The models that LLM Guard downloads carry their own licenses, which the next questions cover. Have counsel confirm the position for your product and jurisdiction.

Does archiving the LLM Guard repository change its license?

Archiving does not, by itself, change the license text. The repository was archived by its owner on 9 July 2026 and is now read-only, so no new releases, fixes or license edits will come from it. The MIT grant attaches to the copies people already hold, and counsel should confirm how that applies to your copies. What the archive changes is operational: nobody maintains the code, so security issues will not receive upstream fixes. Record the exact version you run. The last release on PyPI is 0.3.16, uploaded on 19 May 2025, and the license review should cover that version and the commit it was built from.

Is the Apache 2.0 license on the Prompt Injection model compatible with embedding?

Apache License 2.0 is a permissive license that generally allows commercial use, modification and redistribution, with conditions such as keeping notices and stating changes. The Hugging Face model card for ProtectAI/deberta-v3-base-prompt-injection-v2 lists Apache 2.0, which is a separate license from the MIT license on the LLM Guard code. The two can sit together in one product, but each component keeps its own terms. Your notices and attribution must cover the model as well as the code. Check the model card and any license file at the revision you download, because a pinned version may differ from the current page. Your legal team should confirm the obligations for your distribution model.

Does a paid LLM Guard edition or vendor support exist?

The supplied material does not establish whether a paid edition or vendor support exists for LLM Guard, so do not assume one does. The archive notice states that the project and its associated models are no longer under active development or maintained, which points away from ongoing vendor maintenance. To confirm, ask Protect AI in writing whether any commercial agreement, support contract or extended release is available for the version you run. Ask the same question about the Hugging Face models you load. Keep the dated written answer in your vendor file. If the answer is no, plan the migration on the basis that the current release is the last one you will receive.

What effort and cost does a license review or migration involve?

Cost has two parts: the review and the replacement work. The review covers the LLM Guard license, the license for every model your deployment loads, and any other packages in the stack, then records the result for procurement. Its cost is mostly internal and legal time, and it recurs when the product changes or a model is swapped. Migration cost depends on how many scanners you run, which models each one loads, how much custom configuration exists, and how much testing you need to show that replacements block at least what LLM Guard blocked. Ask any partner for a written scope that lists scanners, models, environments, test evidence and deliverables before work starts, and ask for the duration to be stated in that scope.

Can DeployOpen run the license review or the migration?

DeployOpen can plan and implement the migration of an LLM Guard deployment onto maintained open-source guardrails, including NeMo Guardrails, and can prepare the technical evidence your team needs for the review. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications, so your counsel and any independent assessor still own the license position. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. For illustration only, a written scope might list the scanner and model inventory, a license record per component, the replacement plan and coverage test results. Quotes follow from the written scope, and DeployOpen does not publish a price list.

Does the MIT license include a warranty or indemnity?

No. The LLM Guard LICENSE provides the software AS IS, without warranty of any kind, express or implied. Protect AI makes no promise that the code is fit for a particular purpose, free of defects or secure. This matters for a product that relies on a scanner to block attacks, because the license leaves failure risk with you. Your product team should record that gap, decide whether the scanner is an enforcing control or an advisory signal, and add its own tests and monitoring. The standard MIT text has no indemnity clause, so any customer protection has to come from your own terms or from a contract with a supplier.

Do the other protectai Hugging Face models use the same license?

Each model carries its own license. The model card for protectai/deberta-v3-base-zeroshot-v1-onnx lists MIT, while the Prompt Injection model lists Apache 2.0, so one organization's models do not share a single license. Check the license field on every model your deployment downloads, and note the revision or commit you pin. Record the model name, its license string and its revision in an inventory alongside the code license. If a model page lacks a license or changes after your review, treat that as a finding and repeat the review before the next release.

What catches buyers out with an archived license review

An MIT license on the LLM Guard code answers only part of the question. The four risks below each sit where a reviewer can assume a safe answer that the facts do not support. Work through them in order before a build ships or a product is priced around the guardrail.

Assuming the code license covers the models

The MIT license applies to the LLM Guard code, but the Prompt Injection scanner loads a separate model. The LLM Guard documentation names ProtectAI/deberta-v3-base-prompt-injection-v2, and its Hugging Face model card states an Apache License 2.0, which is a different license. Check each model your deployment downloads, including models loaded at runtime, and record its license against the scanner that uses it.

Prompt Injection scanner docs

Missing the notice requirement in shipped builds

The only condition in the LLM Guard LICENSE is that the copyright notice and the permission notice appear in all copies or substantial portions of the software. A container image, a vendored copy inside an internal package or a bundled desktop build can each drop that text. Ask engineering to include the LICENSE file in every artifact that carries LLM Guard code, and add the check to the release pipeline.

LLM Guard LICENSE text

Relying on the repository for future fixes

The protectai/llm-guard repository was archived by its owner on 9 July 2026 and is read-only. The README states the project and its Hugging Face models are no longer under active development or maintained. Permission to use the code does not bring security patches, model retraining or bug fixes, so any fix your product needs must be made by your own team or a contractor you engage.

Building on the 0.3.16 release unchecked

The last LLM Guard release on PyPI is 0.3.16, uploaded on 19 May 2025. It requires Python 3.10 or newer but below 3.13. A build pipeline that moves to Python 3.13 or later will fail to install it, and a team may pin an older interpreter without noting that the package will receive no further releases. Confirm the interpreter version your platform team supports before the license review closes.

llm-guard on PyPI

How DeployOpen works on this

DeployOpen reviews the license position of an LLM Guard deployment before any change is made, covering the MIT code license and the separate licenses on the models it loads. Where a replacement is needed, we plan and document it in infrastructure you control so the review result is recorded for your compliance and procurement files.

How we scope

  • The written scope lists each LLM Guard component in use, including the scanners, the Python library or API server, and every model fetched from Hugging Face.
  • Each model is matched to its own license record, so the Prompt Injection model's Apache License 2.0 terms are reviewed separately from the MIT code license.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts. Ongoing support is available as a retainer.

How we build

  • We build a component inventory that maps every package, container image and model file to its license text and the copyright holder named in it.
  • We check whether the license conditions, such as keeping the copyright and permission notice in copies, are met in your current packaging and distribution.
  • We flag where the archived status affects the product, such as missing security fixes or dependencies that no longer receive updates.

How we hand over

  • You receive a written license review with the license text, source link and conclusion recorded for each component and model.
  • Where a model or scanner must be replaced, the handover includes the replacement plan and the open questions for your legal or procurement team.
  • We document the decisions and the evidence used, so your legal, security and compliance teams can review them without relying on us to explain them.

How we support

  • Our reviews do not constitute legal advice or a license opinion; we recommend your counsel confirm conclusions before a product decision.
  • We prepare the technical evidence that auditors and certification bodies may ask for. We do not issue audit reports, attestations or certifications.
  • A retainer can cover license rechecks when a model or dependency changes, and support for migrating scanners to maintained guardrails such as NeMo Guardrails.

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.