> ## Documentation Index
> Fetch the complete documentation index at: https://alibi.itsdote.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK overview

> Packages, modes, plugins, resilience, and where Python vs Node sit.

## Packages

| Package | Role |
| - | - |
| `alibi-sdk` (Python) | FastAPI middleware + Postgres/Redis/Kafka/S3/queue plugins |
| `@alibi/sdk-node` | Express middleware (record/verify → control plane) |
| `@alibi/plugin-contract` | Plugin interface + sandbox ALS / observation buffer |
| `@alibi/plugin-sql` / `@alibi/plugin-redis` | Node Postgres (`pg`) + Redis |
| `@alibi/plugin-kafka` / `@alibi/plugin-s3` / `@alibi/plugin-queue` | Kafka, object store, generic queue |
| `@alibi/domain` | Shared TypeScript types |

Install: monorepo-local only for now.

## Production foundations

| Area | Behavior |
| - | - |
| Auth / tenancy | API keys (`x-alibi-api-key` / Bearer). Live Record private to recorder; saved cases/runs shared. Seed demos: `junnu-key-demo` / `laddu-key-demo`. |
| Baselines | Object-store refs under `ALIBI_OBJECT_STORE_DIR`, sha256 checksums, rebase |
| CI | Default **immediate** verify-live Action; optional **queued** batch. Artifacts: junit + SARIF |
| Observability | Spans/metrics; secret redaction (`ALIBI_REDACT=1`) |
| Policy | Retention, PII scrub, approve roles, env promotion |

## Resilience

| Concern | Behavior |
| - | - |
| Orphan reaper | Reclaims stale `checked_out` sandboxes; `POST …/sandboxes/reap` |
| Pool wait/backoff | Optional wait before overflow-create on warm-pool checkout |
| CP retry | SDK retries transient transport/5xx with full-jitter backoff |
| Offline queue | Queueable writes buffer when CP is down; flush on recovery |
| Idempotent stop/release | Double-stop and double-release are safe |

## Language guides (SDK-first)

Alibi is **SDK-first**: extend, customize, and integrate through the language SDKs. Control-plane OpenAPI is the HTTP contract underneath — not the preferred starting point.

1. [Python SDK reference](https://alibi.itsdote.tech/sdk/python.md) — primary / reference implementation
2. [Node SDK reference](https://alibi.itsdote.tech/sdk/node.md) — Express parity

Examples: [Python](https://alibi.itsdote.tech/examples/sdk-python.md) · [Node](https://alibi.itsdote.tech/examples/sdk-node.md)

Both SDKs **consume** the control-plane HTTP API (TypeScript routes → OpenAPI). They are not an alternate HTTP source of truth.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.