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 customer | From |
|---|---|
| Each document's title and text, kept as the source the facts were drawn from | POST /v1/memory/documents |
| Facts: who or what, the property, its value, from when it held, and what it replaced, each linked to its source | Documents, 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 servers | Every 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 starts | Documents |
Which documents share each external_ref, so a revision and a repeat are found | Documents |
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
- Each customer's content is encrypted under data keys of that customer's own, one per document, each wrapped by your project's key in AWS Key Management Service (KMS) and bound to that customer, so it opens for no other. A customer holding health data has a KMS key of its own.
- One customer's keys cannot open another customer's records, and no log line carries content. Both are tested on every build.
- Disks, backups, logs and stored files are encrypted with our environment's KMS key. Only the web ports are open. Staff have no direct login to our servers: every staff session goes through AWS Systems Manager and is recorded.
- Nothing is edited in place. A changed value is a new version, and the old one stays with the date it stopped being true.
Where
Amazon Web Services, in the United States (us-east-1).
How long
| What | Kept |
|---|---|
| Documents, facts, memories and embeddings | Until you delete the customer. /v1/memory/forget stops a memory appearing in answers; it does not destroy it. To destroy content, delete the customer. |
| Backups | A 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 day | Kept 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 document | 24 hours |
Who can read it
- Your credential, and only for customers you created. A request for another partner's customer is answered exactly as one for a customer that does not exist.
- Your admins, signed in to the localmem app: the list of your customers, their counts and usage, and your credential's state. Not their content.
- Our staff have no standing access to servers, and do not look at content except to answer a support request you make, to fix a problem, or when the law requires 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.
| Provider | Training on what we send |
|---|---|
| Amazon Bedrock, in our own AWS account | Amazon states that model providers do not have access to Bedrock's logs or to customers' prompts and completions. |
| OpenAI | OpenAI 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. |
| Anthropic | Anthropic 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.