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

AI Guardrails Python Packages

Python packages with the GitHub topic ai-guardrails. Sorted by monthly downloads, with stars and forks.
vstorm-co
pydantic-ai-shields

Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails. Built on pydantic-ai's native capabilities API.

244K 94 11
nseney1
aegis-guardrails

Project rules for AI coding agents. An MCP server gives Claude Code, Codex CLI and Antigravity the rules for the files they are about to edit; AST checks run in a git pre-commit hook and in CI (aegis check). Zero dependencies, Python 3.9+, Apache-2.0.

3K 5 2
nseney1
soma-governance

Project rules for AI coding agents. An MCP server gives Claude Code, Codex CLI and Antigravity the rules for the files they are about to edit; AST checks run in a git pre-commit hook and in CI (aegis check). Zero dependencies, Python 3.9+, Apache-2.0.

2K 5 2
MatthewTracy
yagami

Self-hosted LLM gateway and AI context firewall for PII/PHI containment, prompt-injection defense, and governed agent tools.

2K 1 0
vericto
vericto

Official Vericto SDK for Python, database guardrails for AI agents: check SQL before it runs (Snowflake, SQLite, SQLAlchemy, LangChain, LlamaIndex, dbt, Airflow). Apache-2.0.

2K 2 0
InditexTech
cerbia-core

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
PyModel
jev-judge-mcp

Typed judgment tools for MCP agents. TypeSafe's Jev model as verify, screen, find, classify, rerank, decide, compare, extract, review, gate, and score: the model judges, policy decides auto, review, or escalate.

2K 49 5
rinshadkk
selfbrowse

Open-source Python browser agent for LLMs. Gives the model a short numbered list of page elements instead of the DOM or screenshots, so runs use far fewer tokens. Built-in PII redaction, guardrails, tracing, and learned-click replay. Works with Claude, OpenAI, Gemini, Groq, Ollama, OpenRouter. Playwright-based. pip install selfbrowse

2K 5 0
InditexTech
cerbia-protectai

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
lelu-ai
lelu-agent-auth-sdk

Open source authorization engine for AI agents. Confidence-aware gating · Human-in-the-loop review · Policy-as-code · Full audit trail

2K 86 22
InditexTech
cerbia-ml

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
InditexTech
cerbia

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
InditexTech
cerbia-cli

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
InditexTech
cerbia-presidio

A modular threat detection library for AI and LLM pipelines. It provides language-agnostic guardrails through a configurable pipeline of loaders, multi-layer de-obfuscation, specialized scanners, and automatic enforcement.

2K 52 6
Jaycubic
toolboundary

Local runtime security and policy enforcement for AI agents and LLM tool calls, with permissions, guardrails, rate limits, approvals, auditing, and an emergency kill switch.

2K 6 10
Skull-boy
scyvera

The missing governance layer for AI agents. Declare what your agent can do, what requires human approval, and what it can never do - before it runs. Runtime enforced via scyvera, not just documented.

1K 25 6
AetherLabCo
aetherlab

Official Python SDK for AetherLab - AI guardrails, LLM safety, and content moderation API

770 2 0
arieradle
shekel

LLM budget control and cost governance for AI agents. Python library for token budgets, usage limits and guardrails for OpenAI, Anthropic, LangChain, LangGraph and agentic systems.

625 20 1
explainableaixai
aiagentallowlist

AI Agent Allow List API client: page-type verdicts (allow, deny, flag) before an AI agent opens a URL

617 0 0
ProvablyAI
sourcerykit

Counterspell for hallucinating agents. Python SDK that breaks the illusion on every tool call, API response, and MCP handoff before bad outputs propagate.

551 21 2
vstorm-co
pydantic-ai-middleware

Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails. Built on pydantic-ai's native capabilities API.

516 94 11
ai-2070
ai2070-l0

L0: The Missing Reliability Substrate for AI. Streaming-first. Reliable. Replayable. Deterministic. Multimodal. Retries. Continuation. Fallbacks (provider & model). Consensus. Parallelization. Guardrails. Atomic event logs. Byte-for-byte replays.

470 3 1
shashikantdev3
twosystems

Calibration and checking tools for twosystems, a cheap, honest watchman for AI coding agents.

241 2 1
open-sentinel
opensentinel

Open Source policy enforcement proxy: Make your agents follow rules.

128 140 6
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology