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.

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

occludra-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

occludra-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file occludra-0.1.1.tar.gz.

File metadata

  • Download URL: occludra-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for occludra-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8002cc1f1e08b16d7415ac7790ff209e6592e59d62bb03d5e57839c64c579175
MD5 eefb203e832500558f31edf1234612fd
BLAKE2b-256 7b150af655867c49777addcb92459872663ac058389d8e055cad469e505af873

See more details on using hashes here.

File details

Details for the file occludra-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: occludra-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for occludra-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d693a2256eeaa6e93593af1bb1e22bf41655a760caf5210d776e7fce592df3d9
MD5 71a2397334a1a974598577c8c486ca05
BLAKE2b-256 1ff01f8a0ca63513f90e99b918ff61ce5d5defa5279bc8c7050dfb5417d772c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page