Data contract

Documentation · updated 29 October 2026

In short: each of your customers is its own tenant, encrypted under data keys of its own, reachable only with your credential. Text goes to a model provider only when you send a document, to the one provider named on that document, and each provider states it does not train on what we send. Deleting a customer destroys its data keys: its content cannot be read on localmem from that moment, and no copy can be read once our backups age out, within 35 days. A customer holding health data has an encryption key of its own, and its deletion reaches its backups within 7 days.

What is kept

Kept, per customerFrom
Each document's title and text, kept as the source the facts were drawn fromPOST /v1/memory/documents
Facts: who or what, the property, its value, from when it held, and what it replaced, each linked to its sourceDocuments, and facts you extracted yourself (/v1/memory/facts)
Memories you write, with the tags you give them/v1/memory/write
Embeddings (the numbers search uses), made on our own serversEvery write
Each document's record: the provider and model that read it, tokens used, the prompt version, the values it replaced and why, its type, size and fingerprint (SHA-256 of its text), the sections it was read in, and each fact's quote and where in the text it startsDocuments
Which documents share each external_ref, so a revision and a repeat are foundDocuments
Your own reference for the customer (external_ref) and whether it may hold PHI (phi)Creating the customer

Deleting a document (DELETE /v1/memory/documents/{id}) destroys its keys, then removes everything derived from it: its text, its facts and its record's content. A value it replaced is current again. Only its id, the time and the deletion job's id stay, so its state can still be read.

A document over 20 KB is read in the background. Until its facts are written, a separate copy of its text waits with the job; that copy is destroyed once they are written, or after 7 days if they never are.

How it is protected

Where

Amazon Web Services, in the United States (us-east-1).

How long

WhatKept
Documents, facts, memories and embeddingsUntil you delete the customer. /v1/memory/forget stops a memory appearing in answers; it does not destroy it. To destroy content, delete the customer.
BackupsA daily snapshot, kept 35 days. Once a deleted customer's key is gone, its content in them cannot be read.
Usage counts per customer and dayKept under your account after a customer is deleted, so it can be billed. Counts only, never content.
The access log: one record per request (customer, route, status, size, duration, request id)5 years. Never content.
An Idempotency-Key you send with a document24 hours

Who can read it

Which provider sees text

Only a document's title and text, and the customer's own facts that relate to it, are sent to a model provider: the text to draw facts from, the facts so the same thing keeps the same name and the model can tell what the document changed. No other customer's facts are ever sent. Writes, facts you send, searches and recalls stay on our servers. The provider is the one your project's admins chose in Team → API, under AI model, or else localmem's default. If that provider refuses us or stops serving us, its backup reads documents instead and your admins are emailed the same day; when it serves again, it takes over again. Every document's answer names the provider and model that read it.

ProviderTraining on what we send
Amazon Bedrock, in our own AWS accountAmazon states that model providers do not have access to Bedrock's logs or to customers' prompts and completions.
OpenAIOpenAI states that data sent to its API is not used to train or improve its models unless the customer opts in. We never opt in.
AnthropicAnthropic states that by default it does not use inputs or outputs from its commercial products, its API included, to train its models; the exceptions are feedback a customer sends and opting in. We do neither.

We never use your customers' content to train or tune any model. These statements were checked against each provider's own pages on 28 October 2026. Every other company that processes data for us is listed in our Privacy Policy.

Protected health information

We do not accept protected health information (PHI) until a business associate agreement (BAA) is signed between you and us. Until then, send only synthetic or de-identified data.

Create a customer with phi: true if its documents may hold PHI. Its documents are then sent only to a provider covered by a BAA. While none is, a document for that customer is refused with 409 no_baa_provider and nothing is sent to any provider.

Deleting a customer

DELETE /v1/partner/tenants/{tenant} stops all access at once. The customer's data is removed with its data keys, so nothing of it can be read on localmem from then. Each customer's data keys are wrapped by your project's key in AWS KMS, bound to that customer alone, so no other customer's key can open them. Copies in our backups can be read only by restoring a backup, and our backups are kept for 35 days, so after that no copy of the customer's content can be read anywhere.

A customer created with phi: true has a KMS key of its own instead. Deleting it also schedules that key for deletion in AWS KMS, and once its 7-day wait is over no copy can be read, backups included.

GET /v1/partner/tenants/{tenant} then shows when the data was removed, the KMS key retired if the customer had its own, and unreadable_everywhere_after, as proof you can give your customer.

Deleting a project, by an admin in the app, deletes every customer of it the same way and schedules the project's KMS key for deletion: 7 days later no copy of anything in the project can be read, backups included.

Questions about this contract: support@localmem.org.