Skip to main content

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.

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)

Source distribution for occludra 0.1.1
File Size Uploaded
occludra-0.1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for occludra 0.1.1
File Interpreter ABI Platform
occludra-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page