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
Metadata
Release files for occludra 0.1.1
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 | Actions |
|---|---|---|---|---|
| occludra-0.1.1.tar.gz | 3.6 kB | Without provenance | Details for occludra-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| occludra-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for occludra-0.1.1-py3-none-any.whl |
Total release size: 7.7 kB
Release files / occludra-0.1.1.tar.gz
| Download URL | occludra-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8002cc1f1e08b16d7415ac7790ff209e6592e59d62bb03d5e57839c64c579175
|
|
BLAKE2b-256 checksum How to use checksums |
7b150af655867c49777addcb92459872663ac058389d8e055cad469e505af873
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.2
|
Release files / occludra-0.1.1-py3-none-any.whl
| Download URL | occludra-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d693a2256eeaa6e93593af1bb1e22bf41655a760caf5210d776e7fce592df3d9
|
|
BLAKE2b-256 checksum How to use checksums |
1ff01f8a0ca63513f90e99b918ff61ce5d5defa5279bc8c7050dfb5417d772c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.2
|
Security for occludra 0.1.1
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.