What OpenDunes logs, Algeria Law 18-07 compliance, PII redaction, and data residency.
OpenDunes is built for the Algerian market and operates under Law 18-07 — Algeria's data protection law. This page describes exactly what the platform records, what it does not, and the protections in place.
For every API request, OpenDunes records:
prompt_tokens, completion_tokens, total_tokens — used for billing.X-Request-Id response header.This metadata powers your usage dashboard, billing ledger, and support tracing.
messages array is not stored in OpenDunes' database.The prompt and response pass through in memory during the request lifecycle and are then discarded.
Before any request is forwarded upstream, it passes through an active PII redaction stage. The following patterns are detected and replaced with placeholders:
| Data type | Pattern matched |
|---|---|
| Algerian national ID (NIN) | 18-digit numeric identifier |
| Algerian phone number | 0XX XX XX XX / +213 format |
| CCP (postal account) | Algerian postal account number format |
| RIB (bank account number) | Algerian bank RIB format |
Redaction is applied before the payload reaches any external system, including the upstream AI provider. Downstream, the model sees [REDACTED] tokens in place of the original values.
Note. Redaction is best-effort pattern matching. Do not rely on it as your sole control for handling sensitive data — design your application to avoid sending PII in prompts where possible.
OpenDunes maintains an append-only audit log for:
These records are retained for the minimum period required by Law 18-07 and are available to account owners via the dashboard and, on request, via the API.
All data — request metadata, billing records, audit logs — is stored and processed within infrastructure subject to Algerian jurisdiction. OpenDunes does not replicate your data to regions outside Algeria's legal framework without your explicit consent.
Law 18-07 (relative to the protection of natural persons in the processing of personal data) governs how OpenDunes handles any data that could identify an individual. Key obligations honored:
For data protection inquiries, contact us via your account dashboard.