Skip to main content
Python is the reference implementation. Install from the monorepo (not published to PyPI yet):

Modes

Per-request override (when sandbox header present): x-alibi-mode: record|verify|off.

Fail-closed sandbox marker

  • Default header: x-alibi-sandbox (override via init / ALIBI_SANDBOX_HEADER)
  • Fail-closed (default): record/verify without the header → 403
  • Escape hatches: ALIBI_FAIL_CLOSED=0 or ALIBI_RECORD_ALL=1 (record only)

FastAPI

Reference app: apps/demo-coffee-py (Compose on :4200).

Environment

Control plane calls the SDK uses

Full HTTP surface: API overview (OpenAPI from control-plane TypeScript routes).
Full Python API: SDK Reference (generated from python/alibi_sdk).