All stories

Privacy deep dive

Zero Data Retention for AI Agents: How Melaya ZDR Works

Zero Data Retention keeps your AI agents' prompts, chats, files, memory and credentials on your own computer. Melaya keeps metadata only. See how it works.

Zero data retentionAI agents without data retentionKeep data on your own computerLocal credential vaultAI privacy controlsGDPR AI data processingOn-premise AI agent runnerAI agent security
Zero Data Retention for AI agents: the Melaya cube mascot beside a laptop and a server that keep your content, while only faint metadata reaches the cloud, with the title Your content stays home

Some organisations cannot let a vendor store their work, however well it is protected. Zero Data Retention lets your AI agents run as before while prompts, chats, files, memory and credentials stay on a computer or server you control.

This guide is written in layers. The executive summary and the business view are for decision-makers and need no technical background. The deep dive, the threat model and the compliance mapping are for security architects, DPOs and IT teams. A glossary near the end defines every technical term, and the FAQ answers the questions both groups ask.

Zero data retention executive summary: what it guarantees and what it costs

Zero Data Retention (ZDR) is a setting in Melaya, live in production since 24 November 2026. When it is on, Melaya's servers keep no content of your work. The content lives on your own computer or server, inside the Melaya runner: the small program from Melaya that runs agents and keeps their records on your machine.

Zero Data Retention in one minute
  • What it guarantees: Melaya stores no prompts, outputs, files, chats, tool results, memory or connector credentials. It keeps metadata only: ids, status, times, usage counts, billing and audit records, and your pipeline configurations.
  • What it does not do: it does not control what your chosen AI model provider or your connected apps receive, and it does not protect content while it passes through Melaya's servers.
  • Who it is for: teams with confidential data, regulated teams under GDPR or sector rules, and security teams that want a vendor breach to expose no content.
  • What it costs operationally: the computer that holds the content must be online to show it or use it, so plan an always-on server for team work. Scheduled runs that need it wait until it is back.
  • What it costs in money: nothing extra. It is one switch in Settings, Privacy, or one per project.
Standard mode or Zero Data Retention
Standard mode
  • Run history and chats kept by Melaya under your retention setting
  • Credentials encrypted and sealed by Melaya's separate credential service
  • Memory and documents can live on Melaya's servers
  • History readable from any device at any time
Zero Data Retention
  • Content kept on your computer or server; Melaya keeps metadata only
  • Credentials encrypted in a local vault on your machine
  • Memory, documents and vaults kept on your machine
  • History readable while the computer that holds it is online
Standard mode or Zero Data Retention at a glance for business readers: where the work is kept, API keys, memory, model training, support access, history when the computer is off, and scheduled cloud runs
Standard mode or Zero Data Retention at a glance for business readers: where the work is kept, API keys, memory, model training, support access, history when the computer is off, and scheduled cloud runs
2independent enforcement layersThe application, then the database
2 minlongest life of a credential grantSigned for 90 s, usable once
1 hlongest hold for cloud run filesIn memory only, then deleted
24 hevent hold while you are offlineUp to 100 events per trigger

Zero data retention for business: the risks it removes

Three definitions make the rest of this section easy to read. Content is the substance of your work: what you type, what agents write, files, chat messages, the results of actions. Metadata is information about the work: when a run started, whether it succeeded, how many tokens it used. In transit means data that is moving between two places and held in a computer's working memory only for that trip, never written to disk.

Vendor breach exposure: content that was never stored cannot leak

Every vendor that stores your data adds a place it can leak from: its database, its logs, its backups. Under ZDR, Melaya's database, logs and backups never receive the content of your work, so a breach of any of them exposes metadata, not your documents, conversations or customer data. This is the single biggest change ZDR makes to your risk profile.

Data residency and retention obligations

Under ZDR, content rests where you run the runner: your office, your data centre, your cloud account, your country. Melaya's production servers are in Singapore and, under ZDR, hold metadata only. Retention becomes your decision too: history stays on your machine until you delete it there or through Melaya's Delete data, and none of it sits in Melaya's backups waiting to expire.

Procurement and the Data Processing Agreement

Procurement teams usually ask three questions: what does the vendor hold, under which contract, and how do we verify it. Melaya's Data Processing Agreement (the contract that governs how Melaya processes personal data for business customers) states that under the Zero Data Retention setting, Melaya stores no customer content and keeps only metadata. The subprocessor list names every company Melaya uses to deliver the service. In the product, every privacy setting change is written to a tamper-evident audit log, and each run shows where its history is kept.

What stays the same for your team day to day

People build and run agents exactly as before. Pipelines, schedules, event triggers, approvals, the Assistant, phone, browser and computer agents, knowledge vaults and the MCP server all keep working. The visible differences are small: a run's history shows Stored on computer, it shows "(offline)" when that computer is off, and the model training switch is locked off.

What stays where under Zero Data Retention: prompts, run history, chats, files, memory, documents and the local credential vault stay on your computer or server, while Melaya's servers keep metadata only
What stays where under Zero Data Retention: prompts, run history, chats, files, memory, documents and the local credential vault stay on your computer or server, while Melaya's servers keep metadata only

How zero data retention works: architecture and trust boundaries

From here on, the guide is technical. A trust boundary is the line between systems controlled by different parties. ZDR has three: your environment, Melaya's cloud, and the third parties you choose. Melaya still orchestrates the work under ZDR. It routes runs, approvals, triggers and live updates, but content only crosses its servers on the way to your screen, to a waiting run or to your runner, and comes to rest only inside your boundary.

Zero Data Retention system architecture with trust boundaries: your environment with the browser, the Melaya runner, its local credential vault and an optional local model; Melaya cloud with servers in transit only and a metadata-only database; third parties with the model provider, connected apps and chat apps; arrows labelled content, metadata and calls to providers
Zero Data Retention system architecture with trust boundaries: your environment with the browser, the Melaya runner, its local credential vault and an optional local model; Melaya cloud with servers in transit only and a metadata-only database; third parties with the model provider, connected apps and chat apps; arrows labelled content, metadata and calls to providers

A run executed on your runner calls your model and your connected apps from your machine. A run executed in Melaya's cloud calls them from the cloud, with credentials fetched from your runner just in time. Either way, the history is kept on your runner.

Data classification: what is content and what is metadata

DataClassWhere it is stored under ZDRHow long
Prompts, model outputs, agent messagesContentYour runnerUntil you delete it
Tool arguments and results, full tracesContentYour runnerUntil you delete it
Run inputs: brief, values, attached filesContentYour runner; a cloud run holds them in memory while it runsUntil you delete it
Output files of cloud runsContentYour runner, in Documents, Melaya-PipelinesIn Melaya's memory for 1 hour at most if no runner is online
Assistant chats, their names and standing instructionsContentYour runnerUntil you delete it
Memory, retrieval documents and their index, Obsidian vaultsContentYour runnerUntil you delete it
Connector keys, OAuth tokens, passwords, cookies, trigger secretsSecretLocal credential vault on your runnerUntil you disconnect the service
Approval arguments while a run waitsContentTemporary memory, then your runner's history6 hours at most in memory
Run errors and evaluation notesContentShown live; Melaya keeps an error codeThe code follows the run's metadata
Ids, status, start and end times, token and credit countsMetadataMelayaPrivacy Policy periods
Tool names, models, providers, digests of requestsMetadataMelayaPrivacy Policy periods
Pipeline configurations, including your agent instructionsMetadataMelayaWhile the pipeline exists
Connected service names, account labels, credential fingerprintsMetadataMelayaWhile the service is connected
Security audit events, without contentMetadataMelaya, in a tamper-evident logPrivacy Policy periods
Billing recordsMetadataMelayaPrivacy Policy periods

A digest is a short fingerprint computed from a piece of content. It lets Melaya match an approval decision to its request without keeping the request. A credential fingerprint is computed with a key that exists only on your machine, so Melaya cannot use it to test guesses about the secret.

Zero Data Retention data classification matrix: data type, class (content, secret or metadata), where it is stored and for how long
Zero Data Retention data classification matrix: data type, class (content, secret or metadata), where it is stored and for how long

Two layers of enforcement: application write gate and database triggers

The first layer is in the application. Every part of Melaya that writes runs, chats, memory or credentials asks the privacy setting first, and keeps content out of the database, the logs, phone notifications and third-party telemetry. Logs for a ZDR run carry codes and lengths, never text.

The second layer is in the database itself. Database triggers (rules the database runs on every write) rewrite or refuse a row before it is written, so content never reaches the database, its change log or the backups made from it. A code path added later that forgets the first gate still cannot store content. Credentials have their own database rule: a sealed secret for a ZDR account or project is refused outright.

Zero Data Retention enforcement: content crosses Melaya's servers in transit and rests on your runner, while an application write gate and database triggers keep it out of the database, logs and backups
Zero Data Retention enforcement: content crosses Melaya's servers in transit and rests on your runner, while an application write gate and database triggers keep it out of the database, logs and backups

What passes through Melaya in transit, and for how long

ZDR does not mean content never touches Melaya's servers. It means content is never written there. While it is in use, it sits in working memory or in a separate temporary store that has no persistence and is not backed up. These are the longest holds:

In transitHeld in memory for
Live events of a run you watchRelayed as they happen; a short replay buffer for reconnecting viewers is dropped 10 minutes after the run ends
Connector credentials for a run or a tool callThat call or that run only
OAuth access tokens refreshed by Melaya10 minutes at most; renewed tokens are written back to your computer
Approval arguments while a run waits6 hours at most
Inputs of a cloud runThe run; cleared when it finishes, 6 hours at most
Output files of a cloud run with no runner online1 hour at most
Event trigger payloadsUntil the run takes them; up to 24 hours while your runner is offline
Browser task results for the waiting agent5 minutes
Phone commands and results2 minutes
Files staged for tools and Assistant file outputsUntil used, 1 hour at most

Cloud AI agent runs under ZDR: the sequence step by step

ZDR does not force everything onto your laptop. A pipeline can still run in Melaya's cloud. Under ZDR it works in a memory-backed folder (a folder that lives in working memory instead of on disk), keeps content only while it is in progress, and hands its files to your runner at the end. If Melaya cannot provide such a folder, the run is refused and reported as failed rather than run on disk.

Sequence of one cloud AI agent run under Zero Data Retention: start, credentials fetched with a signed grant, prompts and tool calls to your model and apps, each event copied to your runner as history, live view not stored, output files handed over, database keeps ids, status, times and tokens
Sequence of one cloud AI agent run under Zero Data Retention: start, credentials fetched with a signed grant, prompts and tool calls to your model and apps, each event copied to your runner as history, live view not stored, output files handed over, database keeps ids, status, times and tokens
  1. 01The run starts in Melaya's cloudStarted by you, a schedule or an event trigger. Attached files are held in memory, never written to the server's disk.
  2. 02Credentials arrive just in timeFetched from your runner with a signed grant and held in memory only while the run lasts.
  3. 03History is copied as it happensEach event goes to one of your online computers. With none online, you can follow the run live and its content is not kept.
  4. 04Outputs are handed overThe working folder is wiped and the files land in Documents, Melaya-Pipelines on your computer. With no computer online they are held in memory for up to one hour, then deleted.

A cloud run hands over up to 50 output files of up to 50 MB each this way. Run again reads the original brief, values and files back from the computer that holds the run.

Local credential vault: the signed grant lifecycle

In standard mode, Melaya encrypts each credential and seals it with a separate credential service. Under ZDR, Melaya does not keep credentials at all, not even sealed. When you connect a service, the key or tokens go to your online computers and are encrypted there one by one with AES-256-GCM (a widely used authenticated encryption standard), under a key made for that installation. Melaya keeps the service name, the account label, times and a fingerprint.

A secret that never leaves your machine is only useful if it comes out under strict rules. That is the job of the credential grant: a short permission slip that Melaya's server signs for one request.

Credential grant lifecycle for the local credential vault: a run needs keys, the Melaya server signs a grant bound to that run, those keys, 90 seconds and one nonce, the runner checks signature, keys, expiry and nonce, releases the values into memory, and refuses the same grant again or after expiry
Credential grant lifecycle for the local credential vault: a run needs keys, the Melaya server signs a grant bound to that run, those keys, 90 seconds and one nonce, the runner checks signature, keys, expiry and nonce, releases the values into memory, and refuses the same grant again or after expiry
  1. Request. A cloud, scheduled or triggered run, or a single tool call, needs the credentials it declared.
  2. Grant. Melaya's server signs a grant bound to that run or operation and to the exact keys it may read. The server signs grants for 90 seconds.
  3. Check. The runner verifies the signature, the keys and the expiry, and refuses any grant that would last longer than 120 seconds. It records the grant's nonce (a random one-time number) in a ledger that survives a restart, so the same grant cannot be used twice.
  4. Release. The runner decrypts the values on your machine and returns them for that run, where they are held in memory only.
  5. Expiry. A grant that is expired, reused or made for other keys is refused. Without a valid grant, the runner does not answer at all.

In short, every credential release is valid for at most two minutes and usable once. A run executed on the computer that holds the key reads it from its own encrypted store, so the value does not pass through Melaya; only OAuth connections that Melaya refreshes are still prepared just in time. In every mode, credentials are used only when a tool runs and are never placed in a model prompt.

OAuth connections under ZDR

The provider's sign-in callback still lands on Melaya, because providers require a fixed address. The code is exchanged in memory and the tokens go straight to your computer. If no computer of yours is online, nothing is redeemed or stored, and the sign-in window asks you to start the runner. Melaya's shared token caches are not used for a ZDR account.

Protect the machine that now holds the keys

The vault is encrypted, and its key sits beside it under the same operating system account, like an SSH key. Anyone who can read that account's home folder can open it. Run the runner under its own user account, turn on disk encryption, and reconnect services on a new machine instead of copying the vault.

Offline queueing: schedules, triggers and approvals without data retention

What happens when the computer that holds your credentials and history is off? Under ZDR, work that needs it waits instead of failing, and nothing falls back to being stored at Melaya.

Offline queueing under Zero Data Retention: while the runner is offline, scheduled runs wait and trigger events are held in temporary memory for up to 100 events and 24 hours per trigger, then replayed in order when it reconnects
Offline queueing under Zero Data Retention: while the runner is offline, scheduled runs wait and trigger events are held in temporary memory for up to 100 events and 24 hours per trigger, then replayed in order when it reconnects
  • Scheduled runs that need your computer are held, shown as waiting, and sent when it reconnects. They are not counted as skipped, and the next slot still fires.
  • Event triggers hold their events in temporary memory, up to 100 events and 24 hours per trigger, and replay them in order when one of your computers connects. Beyond 100 the oldest is dropped; older events expire.
  • Webhooks whose hold is full, or whose secret is on an offline computer, are asked to retry later, so the sending service keeps the event. Poll triggers pause and see the same items again once the computer is back.
  • A cloud run started by hand whose credentials are on an offline computer does not start, and says why.
  • A run that needs nothing from your computer goes ahead in the cloud. You can follow it live; its content is not kept.

Human-in-the-loop approvals under ZDR

Approvals are the one place where content must reach a person. Under ZDR, the approval card Melaya stores holds the tool, the agent, the pipeline and a digest of the request, never the arguments. The arguments wait in temporary memory for at most 6 hours, or are read back from the computer that holds the run. Phone notifications read only "Approval needed" and "Open Melaya to review it." Cards you choose to receive in Slack, Microsoft Teams or Telegram are kept by those services under their own terms. See our guide to human-in-the-loop AI agents for approval gates in general.

Memory, knowledge and device agents under zero data retention

Knowledge and memory are the features that would otherwise keep content with a vendor the longest. Under ZDR they move to your machine and keep working.

Knowledge and memory under Zero Data Retention
  • Memory stays your choice: with Memory on, pipeline crews and the Assistant remember on your computer only; with Memory off, nothing is remembered anywhere
  • Retrieval documents are stored, indexed and searched on your computer, also for pipelines that run in the cloud
  • Embeddings use a local embedder through Ollama or LM Studio, or a cloud embedder you chose, running on your computer with your own key
  • Obsidian vaults stay on your machine: a folder you pick, or an uploaded or Git vault that your computer hosts, with no copy at Melaya
  • Static context documents from a pipeline's Docs tab are kept on your computer and read by each run when it starts

Melaya's hosted embedder and the Keep a cloud copy option for vaults are not offered under ZDR, because they would put content on Melaya's servers. Agents that operate a phone, a browser or a desktop follow the same rule: what they read passes through Melaya to the agent and the model, and Melaya keeps metadata only.

SurfaceMelaya keepsNot kept by Melaya
Phone agentsWhich tool ran, status, timingScreen text and pixels, typed text, results
Browser extensionAn outcome code and a digestPage text, values, the full outcome
Browser on your runnerMetadata spansPage content
Computer agentsTool, effect class, outcome, timingArguments, results, screenshots, recognised text
MCP clientsTool, outcome, timingFree-text reasons and intent; transcripts are read live from your computer

App and site allow-lists, approvals and every stop control work exactly as they do without ZDR. Read more about AI computer use on Windows and the Melaya MCP server.

Export and deletion under ZDR, including offline computers

Data subject rights have to reach where the data lives. Under ZDR, Export data and Delete data in Settings, Privacy reach your computers too.

  • Export data produces one JSON file with a readme. It includes what your online computers keep, memory included, and names the computers that were offline so you know what is missing. For each connected service it says where the credential is kept, never the value.
  • Delete data works one category at a time (chat history, run history, uploaded files, memory, connected services, imported contacts, connected devices), or item by item with Manage. With two-factor authentication on, every delete asks for your security code, and each one is recorded in the audit log without content.
  • Offline computers receive a pending delete: an instruction that waits at Melaya, without content, and runs the next time that computer connects. The card lists them under Waiting for a computer. A computer whose runner token was revoked is let back in only to carry out its pending deletes, then disconnected.
  • Account deletion also deletes what ZDR kept on your connected computers and servers: at once when they are online, otherwise the next time they connect within 400 days.

A pending delete can only run if the machine connects again. If a laptop is lost or retired without reconnecting, delete the local stores on it directly or wipe the disk.

Failure modes: how ZDR behaves when something goes wrong

A privacy control is judged by its behaviour under failure. ZDR is designed to refuse rather than fall back to storing content.

SituationWhat ZDR does
The runner that holds the content is offlineHistory shows "(offline)"; cloud runs that need its credentials do not start and say why; scheduled runs and events wait; memory and documents are skipped for that run
No computer is online when you connect a serviceNothing is stored; you are asked to start the runner and try again
The runner is older than version 1.1.95It is given no ZDR work, and nothing is stored at Melaya instead
The privacy setting cannot be readThe last value read successfully is used; with none known, the account is treated as under ZDR
A credential write cannot confirm the settingIt is treated as ZDR, so a secret is never sealed at Melaya by mistake
The temporary memory store is unavailableZDR content is refused rather than written to a persistent store; accounts without ZDR keep working
No memory-backed folder for a cloud runThe run is refused and reported as failed, never run on disk
The runner cannot write a run's historyThat run is not started on that computer, and says why
A credential grant is expired, reused or for other keysThe runner refuses it
The local vault file is damaged or fullA damaged file is set aside and refused, never read as empty; a full vault refuses new keys instead of dropping old ones
No computer collects a cloud run's output filesThey are deleted from memory after one hour

Zero data retention threat model: what it protects and what it does not

A threat model lists who or what could expose your data and whether a control stops them. Enterprise reviewers trust a stated limit more than a broad claim, so here are both columns.

Zero Data Retention threat model: protects against a breach of Melaya's database or backups, leaked logs, staff browsing stored data, legal demands for stored content and code paths that forget the first gate; does not protect against a Melaya server controlled while it runs, a compromised user computer, the cloud model provider seeing prompts, connected apps, metadata, or content stored before ZDR
Zero Data Retention threat model: protects against a breach of Melaya's database or backups, leaked logs, staff browsing stored data, legal demands for stored content and code paths that forget the first gate; does not protect against a Melaya server controlled while it runs, a compromised user computer, the cloud model provider seeing prompts, connected apps, metadata, or content stored before ZDR

What ZDR protects against

  • A vendor-side breach. Someone who copies Melaya's database, backups or logs gets metadata, not the content of your work.
  • A legal demand served on Melaya for stored content. Melaya holds no stored copy of the content of work done under ZDR. Your own machines remain subject to the law that applies to you.
  • An insider browsing stored data. Melaya staff and support have no content in the database, logs or backups to look at. Support cannot see the content of your runs or chats.
  • A future bug. A new code path that forgets the application gate is still stopped by the database layer.

What ZDR does not protect against

  • A Melaya server controlled by an attacker while it runs. Content passes through Melaya's servers in memory while it is in use. Single-use grants narrow what such an attacker could reach, but ZDR does not protect content in transit.
  • A compromised computer or operating system account of yours. The runner now holds the content and the credential vault. Its protection is your operating system account, disk encryption and access control.
  • Your model provider. A cloud model receives the prompts of the steps that use it, under its own terms. Use a local model to keep prompts on your hardware.
  • Connected apps and chat apps. They receive what your agents send them.
  • Metadata. Melaya keeps names you give things, counts, times and your pipeline configurations, which include the instructions you write for your agents. Do not put secrets or personal data in names or agent instructions.
  • Content stored before ZDR, until you move it to your computer or delete it.

GDPR compliance mapping for AI agents: data minimisation, Article 28 and Article 32

ZDR is a technical control, not a certification, and it does not make an organisation compliant on its own. It does change how several GDPR obligations play out when AI agents process personal data. This mapping is a starting point for your DPO, not legal advice.

GDPR principle or articleHow ZDR helpsWhat remains with you
Data minimisation, Art. 5(1)(c)Melaya processes content only in transit and stores metadata onlyChoosing which data agents may read in the first place
Storage limitation, Art. 5(1)(e)No content sits in Melaya's systems or backups; deletes reach your computersRetention rules on your own machines and backups
Processor duties, Art. 28The DPA states that under ZDR Melaya stores no customer content; the subprocessor list is publishedYour controller duties, lawful basis and records of processing
Security of processing, Art. 32Two enforcement layers, AES-256-GCM credential vault, single-use grants, encryption in transit with TLS 1.2 or higher, two-factor step-up for deletes, tamper-evident audit logSecuring the computers that run the runner
Breach notification, Art. 33Business customers are notified within 72 hours of Melaya becoming aware of a personal data breach; under ZDR, content is not stored at Melaya to be exposedYour own notification duties
International transfers, Chapter VContent rests where your runner runs; Melaya's servers hold metadata, and transfers rely on the Standard Contractual Clauses in the DPA, with the UK Addendum and Swiss adaptationsTransfers made by your model providers and connected apps

How ZDR fits a DPIA

A DPIA (Data Protection Impact Assessment, GDPR Article 35) describes a processing activity, its risks to people, and the measures that reduce them. ZDR simplifies the vendor part of that document:

  1. Describe the flows with the data classification table above: content on your runner, metadata at Melaya, prompts at the model provider you chose.
  2. Record the measures: ZDR on for each person and project, local models where prompts must stay in-house, a dedicated runner account, disk encryption, two-factor authentication.
  3. State the residual risks from the threat model: content in transit, the security of your own machines, model providers and connected apps, and metadata.
  4. Plan the rights requests: export and deletion reach online computers at once and offline ones on reconnect.

For the wider security picture, read our AI agent security guide and security and compliance at Melaya. Melaya does not hold a SOC 2 report or an ISO/IEC 27001 certificate today.

AI privacy controls: Settings, Privacy and the Privacy & Data tab

ZDR sits among five privacy preferences. Each is saved as soon as you change it and recorded in the audit log with who changed it, the old and new values and the Privacy Policy version.

AI privacy controls in Melaya Settings, Privacy with Zero Data Retention on: model training off and locked, history retention replaced by a Zero Data Retention badge, memory kept on the user's own computer
Settings, Privacy with Zero Data Retention on. Demo data.
Five preferences, one place

Help improve Melaya models, Location metadata, History retention, Memory and Zero Data Retention. With ZDR on, training is off and locked, history retention shows a Zero Data Retention badge because Melaya keeps no history to retain, and the Memory row names the computer where memory is kept.

Turn on zero data retention step by step

  1. Step 1Start the runner on a machine you keep onThe desktop app or the command-line runner, version 1.1.95 or later, on a workstation, server or VM.
  2. Step 2Switch on Zero Data RetentionIn Settings, Privacy for yourself, or in the project's Privacy & Data tab as its owner.
  3. Step 3Read the conditions and confirmThe dialog lists what changes. Tick I understand, then Turn on.
  4. Step 4Move or delete what was saved beforeCredentials, crew memory, retrieval documents and vault copies: Move to my computer, or Delete from Melaya. Never both copies.
  5. Step 5Check the badgeOpen a run or a chat. Its history now shows Stored on your computer.

Project-wide ZDR for teams

Once a project owner saves the project's privacy settings, they govern every member's runs in that project, including a member whose own ZDR is on. The app tells such a member so. If your organisation requires ZDR, the owner turns it on in each project and members check the tab before working there. Only the owner can change these settings. Under project ZDR, the project's credentials, crew memory, retrieval documents and vaults are held by the owner's computer, and credentials move to the new owner's computer when the project changes hands.

Turning ZDR off: keep on your computer, or bring back

Turning ZDR off loses and hides nothing. Keep on my computer is the default: what ZDR kept stays there and is still read from there. Bring back to Melaya copies run transcripts, chats and credentials into Melaya so they are available while the computer is off. It needs the computer online and your security code, it is recorded in the audit log, and your computer keeps its copy. From then on, new content is stored under your History retention setting.

On-premise AI agent runner: deploy ZDR on workstations, servers or VMs

Deploying ZDR is mostly a decision about which machines hold the content. The runner connects out to Melaya over HTTPS on port 443 and opens no inbound port, so it fits behind a normal company firewall.

On-premise AI agent runner layouts for Zero Data Retention: workstations, a company server or VM, and a local model with Ollama or LM Studio, with runner 1.1.95 or later, outbound HTTPS only, disk encryption and two-factor authentication
On-premise AI agent runner layouts for Zero Data Retention: workstations, a company server or VM, and a local model with Ollama or LM Studio, with runner 1.1.95 or later, outbound HTTPS only, disk encryption and two-factor authentication
NeedWorkstationsCompany server or VMPlus a local model
Personal Assistant chats and ad hoc runsBest fitWorksWorks
Schedules and triggers around the clockOnly while the laptop is onBest fitWorks
Project credentials held centrallyThe project owner's laptopThe server, if the owner's account runs itSame
Prompts never leave your networkNo, unless a local modelNo, unless a local modelYes

On a server, run the runner as a service under a dedicated user account, and give it its token through a file only that user can read rather than on the command line:

Bash
npx -y @melaya/runner@<version> --token-file ~/.config/melaya/runner-token

Use the exact version Melaya gives you in the setup command. An account can connect up to three computers at once, and each appears by name in Stored on computer. For a team, the account that owns the important projects should run the always-on server, so project credentials and history do not depend on anyone's laptop. Our self-hosted AI agents guide covers the wider deployment picture, and the Melaya desktop app is the quickest way to start on a workstation.

Fully on-premise inference with local models

ZDR decides what Melaya stores. The model you choose decides who reads your prompts. Pick a local model in Ollama or LM Studio on the same machine as the runner, and a local embedder for retrieval, and the content of a run stays on that machine from start to finish. What still reaches Melaya is metadata and the live view in transit. Small local models are weaker at long, multi-step tool use than frontier cloud models, so choose per agent: a local model for the sensitive step, a cloud model where quality matters more.

How to start with zero data retention

  1. Pick the machine. One always-on server or VM for team projects, or the desktop app on your own computer to try it.
  2. Pick the model policy. Local models where prompts must stay in-house, your own provider keys elsewhere.
  3. Turn on ZDR for yourself, then for each project in its Privacy & Data tab.
  4. Reconnect or move credentials while the machine that should hold them is online.
  5. Protect the machine: dedicated user, disk encryption, backups, two-factor authentication for everyone.
  6. Write down who holds what: each project, its owner, and the machine that holds its credentials and history.

Zero data retention glossary

TermMeaning
Zero Data Retention (ZDR)The Melaya setting under which Melaya's servers store no content of your work, only metadata
ContentThe substance of the work: prompts, outputs, files, chats, tool arguments and results, memory
MetadataInformation about the work: ids, status, times, counts, names, configurations, audit events
Melaya runnerThe Melaya program on your computer or server that runs agents and, under ZDR, keeps their history, memory and credentials
In transitData moving between systems, held in working memory for that trip and never written to disk
At restData stored on a disk, in a database or in a backup
Trust boundaryThe line between systems controlled by different parties
Local credential vaultThe encrypted store on your runner that holds connector keys, tokens and secrets under ZDR
AES-256-GCMAn authenticated encryption standard used to seal each credential in the vault
Credential grantA permission signed by Melaya's server for one run or operation and named keys, valid for at most two minutes and usable once
NonceA random one-time number that lets the runner detect and refuse a reused grant
DigestA short fingerprint computed from content, used to match records without keeping the content
Memory-backed folderA folder that lives in working memory instead of on disk, used by cloud runs under ZDR
Pending deleteA delete instruction, without content, that waits for an offline computer and runs when it reconnects
Database triggerA rule the database runs on every write; under ZDR it rewrites or refuses rows that would hold content
Local modelAn AI model running on your own hardware, for example through Ollama or LM Studio
EmbedderThe model that turns documents into searchable vectors for retrieval
DPAData Processing Agreement: the contract that governs how a processor handles personal data
SCCsStandard Contractual Clauses: the EU's model clauses for transferring personal data outside the EEA
DPIAData Protection Impact Assessment, the GDPR Article 35 risk assessment for a processing activity

Frequently asked questions

What is zero data retention for AI agents?
Zero data retention means the vendor stores no content of your AI agents' work. In Melaya, Zero Data Retention keeps prompts, outputs, chats, files, tool results, memory and credentials on the computer or server that runs your Melaya runner, while Melaya's servers keep metadata such as ids, status, times and usage counts.
Does Melaya store my prompts or chats with Zero Data Retention on?
No. With Zero Data Retention on, Melaya's servers store no prompts, outputs, chats, tool arguments or results, and no memory. That content passes through Melaya only in transit and is kept on your own computer or server. Melaya keeps metadata and your pipeline configurations so your agents can run.
What does Zero Data Retention cost my team in practice?
Zero Data Retention has no extra price. The operational cost is that the computer holding the content must be online to show history, supply credentials and memory, and run scheduled work that needs it. Teams usually run the Melaya runner on an always-on server or VM so nothing depends on a laptop being open.
Can AI agents run without data retention when my computer is off?
Yes, with conditions. A cloud run that needs nothing from your computer still runs, and you can follow it live, but its content is not kept. Scheduled runs and trigger events that need your computer wait for it, up to 100 events and 24 hours per trigger, then run when it reconnects.
Where are my API keys and OAuth tokens kept under Zero Data Retention?
Melaya's Zero Data Retention keeps connector keys and OAuth tokens in a local credential vault on your computer or server, encrypted with AES-256-GCM. Melaya keeps only which services are connected. The runner releases a value only for a grant the server signs for one run and named keys, valid for at most two minutes and usable once.
Does Zero Data Retention protect us if Melaya is breached?
Zero Data Retention protects content at rest: a breach of Melaya's database, logs or backups exposes metadata, not the content of your work, because that content was never written there. It does not protect content in transit against someone who controls Melaya's servers while they run, and it does not protect your own computers.
Does zero data retention stop my AI model provider from seeing prompts?
No. Zero Data Retention controls what Melaya stores. Your prompts still go to the model you choose: a cloud provider receives them under its own terms. To keep prompts on your hardware, run a local model with Ollama or LM Studio on the same machine as the Melaya runner.
Does Zero Data Retention help with GDPR AI data processing?
Zero Data Retention supports data minimisation and storage limitation by keeping the personal data inside your agents' content on machines you control, while Melaya holds metadata. Melaya's Data Processing Agreement covers it, with the EU Standard Contractual Clauses and a published subprocessor list. ZDR is a control, not a certification.
Can a project owner turn on Zero Data Retention for a whole team?
Yes. The project owner turns on Zero Data Retention in the project's Privacy & Data tab, and it then governs every member's runs in that project. The project's credentials, crew memory, retrieval documents and vaults are held by the owner's computer, so an always-on server under the owner's account works best.
What happens if we turn Zero Data Retention off?
Nothing is lost. What Zero Data Retention kept stays on your computer and is still read from there. You can choose Bring back to Melaya, which copies run transcripts, chats and credentials into Melaya after you confirm your identity with your security code, and records the action in the audit log.
Can I run Melaya AI agents fully on-premise?
You can keep the content of the work on-premise. With Zero Data Retention on, the Melaya runner on your workstation, server or VM holds history, credentials and memory, and a local model in Ollama or LM Studio answers the prompts. Melaya's service still provides the web app, scheduling, approvals and metadata, over an outbound connection.
What do I need to install for Zero Data Retention?
Zero Data Retention needs the Melaya runner version 1.1.95 or later on at least one machine: the desktop app for Windows, macOS or Linux, or the command-line runner with Node.js 18 or newer. An older runner is given no Zero Data Retention work, and nothing is stored on Melaya's servers instead.