Occludra — AI Security Gateway (Python SDK)
Occludra is a drop-in security proxy for LLM API calls: PII/DLP redaction, prompt-injection defense, recursive-loop protection, hard budget caps, and smart routing across 600+ models — plus enterprise controls (SSO, RBAC, SIEM, Hybrid VPC, and the MCP Gateway for the agent tool plane).
pip install occludra
from occludra import Occludra
client = Occludra(api_key="oah_...")
res = client.chat.create(
model="oah/llama-4-maverick",
messages=[{"role": "user", "content": "My email is test@example.com"}],
)
print(res.content)
print(res.aisg_metadata.pii_detected) # True
print(res.aisg_metadata.entity_types_detected) # ["EMAIL_ADDRESS"]
Prefer the OpenAI SDK? Point its base URL at the gateway — no new dependency:
from openai import OpenAI
client = OpenAI(
base_url="https://api.aisecuritygateway.ai/v1",
api_key="oah_...",
)
Stable identifiers (unchanged by design)
Occludra is the officially branded distribution of the SDK — it re-exports the
stable aisg client, so this package is fully functional today. A few identifiers
stay unchanged because they are permanent wire/product contracts that existing
integrations depend on:
- Proxy base URL:
https://api.aisecuritygateway.ai/v1 - Response field:
response.aisg_metadata - Environment variables:
AISG_API_KEY,AISG_BASE_URL
Both client names work: Occludra is the branded name; AISG is kept for
backward compatibility.
Links
- Docs: https://occludra.ai/docs
- Homepage: https://occludra.ai
- Source: https://github.com/occludra/gateway
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file occludra-0.1.0.tar.gz.
File metadata
- Download URL: occludra-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31cd61382867cdd44f653e072f2d7b979e64e763bf2666235b6ca0518643cd7c
|
|
| MD5 |
9f6536b0e60ba2c751d970eaafe8a6ce
|
|
| BLAKE2b-256 |
9e555a1d5fd397312c9836e79ce37e328f24caaa4e63e4b63f02a986f2e737b7
|
File details
Details for the file occludra-0.1.0-py3-none-any.whl.
File metadata
- Download URL: occludra-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dab5626d64be3eee95c62d2a3a9dec1c736c3131c1379bd1ce1882e7c6bc4a0
|
|
| MD5 |
e0def881db7ae0be13e08fde108dd2d7
|
|
| BLAKE2b-256 |
fe30ab2af2dd6d60d35e1ba81d6a98ce5b035acabcad132df9f9cc3c34fcfa98
|