cd /news/ai-safety/guardflow-an-open-source-python-sdk-… · home › topics › ai-safety › article
[ARTICLE · art-176188] src=discuss.huggingface.co ↗ pub= topic=ai-safety verified=true sentiment=↑ positive

GuardFlow — An Open-Source Python SDK for LLM Input Guardrails

An independent developer released GuardFlow, an open-source Python SDK that inspects untrusted inputs before they reach LLM applications, and published an interactive demo called GuardFlow Agent Prompt Firewall as a Hugging Face Space. GuardFlow provides modular components for PII detection and redaction using Presidio and Flair, prompt-injection detection, secrets detection, input sanitization, and token-limit checks. The developer says the project is in early stages and is seeking collaborators on detection coverage, adversarial test cases and benchmarks, agent-framework integrations, and performance.

key takeaway

GuardFlow lets Python LLM apps insert a configurable pre-model layer that runs PII redaction via Presidio and Flair, prompt-injection detection, secrets detection, sanitization and token-limit checks on untrusted input.

read1 min views4 publishedNov 25, 2026

Hi Hugging Face community!

I’ve released GuardFlow, an open-source Python SDK for inspecting untrusted inputs before they reach LLM applications.

To make it easier to explore, I’ve now published GuardFlow Agent Prompt Firewall, an interactive Hugging Face Space.

Try the live demo:

GitHub:

Consider an AI assistant receiving a user prompt containing personal information, an exposed credential, or instructions intended to override its original behavior.

Instead of forwarding every input directly to a model, applications can introduce a configurable guardrail layer.

GuardFlow provides components for:

PII detection and redaction using Presidio and Flair

Prompt-injection detection

Secrets detection

Input sanitization

Token-limit checks

The aim is to make these checks modular and reusable in Python-based AI applications.

GuardFlow is still in its early stages, and I’d love to collaborate with developers working on Python, NLP, LLM security, and agent frameworks.

Potential contribution areas include:

Improving detection coverage and reducing false positives

Adding adversarial test cases and benchmarks

Building integrations with agent frameworks

Improving performance and developer experience

If you’re exploring input safety for AI agents, I’d be interested to hear which controls you consider most important.

── more in #ai-safety 4 stories · sorted by recency
── more on @guardflow 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/guardflow-an-open-so…] indexed:0 read:1min 2026-11-25 · —