guardrail
Runtime safety proxy for AI apps.
guardrail is a drop-in proxy that protects your AI features from prompt injection, jailbreaks, and unsafe outputs — with sub-50ms overhead and no vendor lock-in.
from guardrail import GuardrailProxy
import openai
client = GuardrailProxy(
openai.OpenAI(api_key="..."),
policy="guardrail.yaml"
)
# Input is checked before reaching the model
# Output is filtered before reaching your app
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": user_message}]
)
Status
🚧 Early development. Star to follow progress.
What it does
- Input protection — prompt injection, jailbreak, instruction override detection
- Output filtering — PII leakage, regulated content (medical/legal/financial), harmful content, brand safety
- Multi-provider — OpenAI, Anthropic, Google, Mistral, local models
- Policy-as-code — define rules in YAML, update at runtime without redeploy
- Audit log — every flagged call logged with reason code and severity
- Sub-50ms — small classifier models, not LLM-as-judge on the critical path
Roadmap
- Python SDK
- TypeScript SDK
- Prompt injection classifier (open weights)
- Policy YAML spec
- Hosted API (mawlaia.com)
- SOC 2 Type II
License
MIT
Metadata
Release files for mawlaia-guardrail 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mawlaia_guardrail-0.4.0.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mawlaia_guardrail-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / mawlaia_guardrail-0.4.0.tar.gz
| Download URL | mawlaia_guardrail-0.4.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e87429f2e380933ad16781cad67656c2b80c6d5f57e056d56935296af706260
|
|
BLAKE2b-256 checksum How to use checksums |
fd145534681127356eac80998bd39ddb1b24c0389ebb5dec72be5f789ab9a8c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0
|
Release files / mawlaia_guardrail-0.4.0-py3-none-any.whl
| Download URL | mawlaia_guardrail-0.4.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc9fb371de642e77724e511ef6fc04a02202ddfcf9f4e2d6e3d5177cd74c7cd5
|
|
BLAKE2b-256 checksum How to use checksums |
bf009ed259f3a304aa16f5f1eb4484d15222e7a0b6c31196a82cd11d4fc4025f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0
|
Security for mawlaia-guardrail 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.