Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

LLM Safety Python Packages

Python packages with the GitHub topic llm-safety. Sorted by monthly downloads, with stars and forks.
NVIDIA-NeMo
nemoguardrails

NeMo Guardrails is an open-source library for applying programmable safety and security controls to LLM and agentic applications.

459K 8K 917
confident-ai
deepteam

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

108K 3K 514
sattyamjjain
agent-airlock

A type-checker and contract layer for AI agent tool calls: in-process, Pydantic-only. Strict argument validation, ghost-argument stripping, and self-healing retries for MCP servers and agent frameworks.

14K 19 5
HeadyZhang
agent-audit

Static security scanner for LLM agents — prompt injection, MCP config auditing, taint analysis. 51 rules mapped to OWASP Agentic Top 10 (2026). Works with LangChain, CrewAI, AutoGen.

7K 251 31
wardenbot-ai
pytest-wardenbot

Pytest security regression tests for chatbots and tool-using agents — prompt injection, MCP and application boundary checks, data leaks.

3K 1 0
cvs-health
uqlm

[JMLR 2026] UQLM: A Python package for LLM hallucination detection using uncertainty quantification

3K 1K 141
Apoorv012
pipecat-guardrails

Output guardrails for Pipecat voice agents: checks each sentence before it's spoken and stops your bot from saying what it shouldn't.

3K 0 0
MyPatric69
agentguard-governance

Governance layer for autonomous AI agents — pre-flight checks, runtime monitoring, and post-session reporting.

2K 1 0
Chimera-Protocol
csl-core

Find, prove and control the AI agents on your machines: discovers every agent and what it can reach, proves policies with Z3 + TLA+, enforces them deterministically outside the model.

1K 29 13
PxA-Labs
safetypulse

Early warning for LLM safety drift during fine-tuning: a Circuit Integrity Score read from the model's refusal circuit flags unsafe checkpoints before harm is measurable, with SafeTune repair and AuditKIT audit.

1K 6 0
orchintel
ioa-core

Intelligent Orchestration Architecture Core - Open-source platform for orchestrating modular AI agents with memory-driven collaboration and governance mechanisms

1K 7 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.

773 1 0
AetherLabCo
aetherlab

Official AetherLab Python SDK - AI guardrails, LLM safety, and content moderation via the AetherLab compliance API.

770 2 0
binaydhakal
agentbarrier

Deterministic approval, rejection, cancellation, timeout, replay, and side-effect safety tests for AI agents—no API keys required.

711 2 0
YauhenBichel
molecare-privacy-gate

Keep sensitive prompts local: a 1,024-weight head on bge-m3 that catches health data, credentials and PII written as plain English, which regex and entity tools miss. A second gate for LLM routers and guardrails. Not a medical device.

581 2 0
HowieHwong
trustllm

[ICML 2024] TrustLLM: LLM trustworthiness evaluation across truthfulness, safety, fairness, robustness, privacy and ethics. Python/CLI toolkit for local models, compatible APIs and AI agent orchestration.

521 635 69
zunoworks
gateguard-ai

A fact-forcing hook gate for Claude Code. Makes the AI pause and investigate before editing.

504 8 1
MohamadKanso
voicesafekit

Catch spoken PII (card numbers, SSNs, emails said out loud) before voice transcripts reach an LLM. Zero deps. Pipecat, LiveKit, Open WebUI, LiteLLM drop-ins.

480 2 0
theDoc001
fivedrisk

Per-action AI agent risk scoring and governance. Deterministic 5D scoring, HITL gating, FinOps, Agent Cost Management, Markov drift, audit log. Apache-2.0.

468 2 0
AaditPani-RVU
neurosym-ai

Neuro-symbolic guardrails for LLMs — injection detection, harm filters, output guards, streaming safety, and action-plan validation.

435 2 0
sarvanithin
medguard-llm

AI-powered medical guardrails API — PHI detection, drug safety, hallucination checks

402 0 1
doofzoff
simurg

Zero-leak online detection of LLM decoding corruption in production streams

385 106 16
zabinskirafal
agi-pragma

AI Action Firewall — seven-stage Decision Intelligence Core for safe agentic AI

375 0 0
Serhii2009
brix-protocol

Runtime Reliability Infrastructure for LLM Pipelines — enforce deterministic rules, measure the Balance Index, and audit every decision.

368 7 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology