Evaluation & Testing

llm-guard

A TypeScript library for validating and securing LLM prompts

Status
Generally available
Last checked
Checked · Oct 12, 2026
License
Open source
Pricing
Free tier · from $0

What it is

llm-guard is a TypeScript library designed to validate and secure Large Language Model (LLM) prompts, ensuring they are safe and appropriate before processing.

llm-guard stands out as the only TypeScript library specifically designed for validating and securing prompts intended for Large Language Models, offering developers a robust solution to ensure their applications are both secure and compliant.

When it fits — and when it doesn’t

A good fit for

  • TypeScript developers building secure and compliant AI applications

  • Teams needing to validate user inputs before processing by LLMs

Look elsewhere if

  • Projects requiring real-time validation in high-latency environments

  • Applications where prompt validation is not a critical concern

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited language support beyond TypeScript

    The primary development is in TypeScript, and while there's a community-maintained Python SDK, it lacks the depth of official support.

  2. 02

    Complex setup for non-TypeScript projects

    Integrating llm-guard into projects that are not primarily built in TypeScript can be cumbersome due to a lack of comprehensive documentation and tooling outside of the TypeScript ecosystem.

  3. 03

    Frequent breaking changes between versions

    Version updates from v0.1 to v0.2 required significant refactoring, indicating instability in API design which can disrupt ongoing projects.

  4. 04

    Poor documentation for advanced use cases

    While basic usage is well-documented, detailed explanations and examples for more complex configurations or custom rule development are sparse.

What it does well

  • Prompt validation and sanitization

  • Security checks for LLM inputs

  • Customizable rules for prompt evaluation

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Performance benchmarks

How Fast Is It?

Set up llm-guard

Setup steps, common gotchas and what to check after 30 days.

Open the setup guide →
Get the badge

A small badge for llm-guard’s README or site: its name, “Tracked on AI Navigator”, and the availability status and check month from this page. It updates as the catalog does.

llm-guard — tracked on AI Navigator

Markdown

[![llm-guard — tracked on AI Navigator](https://navigateaitools.com/badge/llm-guard.svg)](https://navigateaitools.com/explorer/tool/llm-guard)

HTML

<a href="https://navigateaitools.com/explorer/tool/llm-guard"><img src="https://navigateaitools.com/badge/llm-guard.svg" alt="llm-guard — tracked on AI Navigator" height="58"></a>