Data & security
Only what you send leaves your systems. The SDK records model requests and responses and the tool calls you wrap. It does not read your environment, files or network. Pass redact to drop or edit any step before it is sent:
const ov = new Overturn({ redact: (step) => (step.name === "lookup_customer" ? { ...step, output: null } : step) });Keys. API keys are shown once and stored hashed. Revoke from Settings; a revoked key stops working immediately. Browser code never needs a key: CorrectButton posts to your own server.
Replay never executes side effects. Tools declared sideEffect: true are refused during replay; the trajectory stops and the report says so. Nothing is re-sent, re-charged or re-written by a replay.
Isolation. Workspaces are separate rows in one Postgres; every query is scoped by project id and covered by tests. There is no cross-workspace access path in the API.
Retention. Per project, default 90 days for runs without a case. Runs behind a case are kept because they are the evidence.
Regulated data. The record stores what the expert saw, as they saw it, encrypted at rest; redaction is applied at the export boundary, never at capture, because replay has to see the real input. Content is never pooled across customers: your corrections train nothing but your own models, and that is written into the DPA. Do not send protected health information (workers’ comp, medical claims) to the hosted service: there is no BAA yet. Teams with PHI run Overturn themselves, where nothing leaves their network, model calls included: turn off Allow hosted model calls in Settings (settings.privacy.hostedModelCalls) and every openai/, anthropic/, google/, openrouter/ and together/ call is refused server-side, for replays, the judge, embeddings and fine-tunes alike; local/ models (LOCAL_MODEL_BASE_URL) and lexical retrieval keep working.
Hosted vs self-hosted. The hosted service runs on Railway in the US. If your data cannot leave your network, run Overturn yourself: one Postgres with pgvector, two containers, documented in Self-hosting. The hosted and self-hosted builds are the same image.