PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Llm Guardrails Python Packages

Python packages with the GitHub topic llm-guardrails. Sorted by relevance, with stars and monthly downloads.
confident-ai
deepteam

DeepTeam is a framework to red team LLMs and AI agents.

82K 2K 319
bastion-soft
bastion-prompt-protection

Lightweight prompt-injection detector built for AI agents, copilots, and LLM apps. Fast, local, calibrated.

3K 8 1
Responsible-AI-Labs
rail-score-sdk

Official Python SDK for RAIL Score. LLM evaluation across 8 dimensions, guardrails, safe regeneration, agent tool-call eval, and compliance (GDPR, HIPAA, EU AI Act, India DPDP).

1K 14 1
Pranesh-2005
guardix

A Input Prompt Guard Library with Bert model trained on prompt injection dataset

1K 5 0
0xsl1m
shadowshield

Unified open-source security shield for agentic AI systems โ€” defense-in-depth prompt-injection protection (canary tokens, agent-trace alignment audit, tool-call guarding, PII/secret scanning).

1K 0 0
msoedov
agentic-security

Agentic LLM Vulnerability Scanner / AI red teaming kit ๐Ÿงช

1K 2K 269
beava-dev
beava

Real-time decision features without streaming infra. Turn live events into product reflexes โ€” no Kafka, no Flink, no feature store.

1K 138 10
markndg
varden

A self-hosted runtime firewall for AI agents

1K 0 0
Pranesh-2005
promptgaurd

A Input Prompt Guard Library with Bert model trained on prompt injection dataset

1K 5 0
Neural-alchemy
promptshields

Production-Grade LLM Security Framework - Protect against prompt injection, jailbreaks, and data leakage

805 9 5
cgrtml
reasongate

Explainable security gate for LLM apps โ€” blocks prompt injection with an auditable reason for every decision.

573 0 0
e-choness
aegis-gateway-core

Aegis v2 โ€” core kernel: plugin registry, typed config, pipeline contracts.

570 0 0
e-choness
aegis-gateway-pack-classification

Aegis is an open-source, plugin-first AI gateway framework written in Python. It sits between applications and LLM providers, applying governance rules to every request and response.

559 0 0
lastlayer
last-layer

Ultra-fast, Low Latency LLM security solution

536 129 4
Shashank-016
agentmoat

A security layer for AI agents: detects prompt injection, firewalls dangerous tool calls, scores inter-agent trust, and keeps a tamper-evident audit log. Works with the Anthropic & OpenAI SDKs, LangGraph, and any MCP server.

512 0 0
AINTRUST-AI
aixploit

AI redTeaming Python library

511 8 2
agentshield
agentshield-guard

Official Python SDK for AgentShield โ€” prompt-injection detection for LLM agents.

462 0 0
bastion-soft
llama-index-postprocessor-bastion-guardrail

llama-index Bastion Prompt Protection guardrail integration

461 8 1
vpdeva
blackwall-llm-shield-python

Blackwall LLM Shield is an open-source AI security toolkit for JavaScript and Python that protects LLM apps from prompt injection, sensitive data leaks, unsafe tool calls, and hostile RAG content with prompt sanitization, PII masking, output inspection, policy enforcement, and audit trails.

456 1 0
adibhatt1997
agent-cordon

Zero-dependency prompt-injection and data-exfiltration firewall for LLM agents: scans untrusted text and outbound actions, sees through obfuscation, guards the MCP/tool boundary.

454 0 0
e-choness
aegis-gateway-pack-residency

Aegis v2 โ€” data residency policy pack.

447 0 0
e-choness
aegis-gateway-pack-budgets

Aegis v2 โ€” per-principal monthly budget caps policy pack.

439 0 0
e-choness
aegis-gateway-pack-pii

Aegis is an open-source, plugin-first AI gateway framework written in Python. It sits between applications and LLM providers, applying governance rules to every request and response.

439 0 0
e-choness
aegis-gateway-pack-llm-guard

Aegis is an open-source, plugin-first AI gateway framework written in Python. It sits between applications and LLM providers, applying governance rules to every request and response.

427 0 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery