Does OpenClaw keep staff data private on disk? What the docs say
OpenClaw is open source under the MIT license and has no paid tier, hosted service or token, so it runs entirely on the gateway host you operate. Its privacy posture therefore depends on the controls you put around that host, not on a vendor plan or a managed data boundary. A security reviewer deciding whether local storage meets an internal data privacy requirement needs to know exactly what lands on that disk and in what form.
The short answer is that session transcripts, tool arguments, tool results and .env reads keep their original text, including credentials. The OpenClaw docs state that logging.redactPatterns does not change model context or transcripts, so redaction rules do not reduce what is written to the transcript store. Transcripts for each agent sit in agents/<agentId>/agent/openclaw-agent.sqlite and can contain private messages and tool output. File logs are written with 0600 permissions as raw, unmasked records. Masking applies to log tails, console output, support bundles and OTel export, so a copy of the log file on disk is not masked.
What it takes is host-level control. Confirm that the gateway host uses full-disk encryption, which the docs recommend, and that ~/.openclaw is restricted to a dedicated OS user, with openclaw.json at 600 and the directory at 700 as the secrets and storage docs recommend. On shared hosts, run the gateway under its own OS user. Then decide retention and backup for the SQLite transcript files and log files, and who may read them, before any staff member sends sensitive material through a channel.
Storage and privacy controls by edition and option
This table compares where OpenClaw keeps configuration, credentials, transcripts and logs on the gateway host, and which protections are built in or depend on the operator's own host tooling. OpenClaw has a single edition with no paid tier, so the last column shows what must come from outside OpenClaw. Read each row as a question to answer for your own host before approving staff use.
| Control | What OpenClaw provides | What needs outside components |
|---|---|---|
| Configuration file location | Settings stored in ~/.openclaw/openclaw.json | Host access controls and backup handling for the file |
| Channel credential location | Channel credentials stored under ~/.openclaw/credentials/ | Secrets management if you need central rotation or audit |
| Recommended permissions | Docs recommend 600 for the config file and 700 for the ~/.openclaw directory | Enforcement and drift checks by your configuration management tooling |
| Session transcript storage | Transcripts kept in agents/<agentId>/agent/openclaw-agent.sqlite, including private messages and tool output | Retention schedule, deletion process and backup scope for the database |
| File log permissions | File logs written with 0600 permissions | Host monitoring of file access if you need an audit trail |
| Raw content in file logs | File logs hold raw, unmasked records | Restricted log storage and a deliberate decision on who may read them |
| Masked outputs | Log tails, console output, support bundles and OTel export mask sensitive values | Confirm masking covers your own patterns before sharing exports |
| Redaction scope | logging.redactPatterns applies to logs only, not to model context or transcripts | Controls for transcripts and raw tool results, such as storage encryption and access limits |
| Full-disk encryption | Recommended by the docs for the gateway host | Host-level encryption tooling that you select, deploy and verify |
| Dedicated OS user | Recommended by the docs on shared hosts | Host account management and separation from other workloads |
Where OpenClaw writes configuration, credentials, transcripts and logs
OpenClaw keeps its sensitive state in plain files and a SQLite database on the gateway host. The main configuration sits in ~/.openclaw/openclaw.json, channel credentials for chat integrations sit under ~/.openclaw/credentials/, and session transcripts are written to agents/<agentId>/agent/openclaw-agent.sqlite. The OpenClaw docs recommend permissions of 600 on the config file and 700 on the ~/.openclaw directory, and they recommend full-disk encryption on the host. Before approval, ask the team operating the gateway to show the actual modes on the host, confirm who else holds an account on it, and confirm the disk is encrypted at rest.
Transcripts deserve the most scrutiny because they can contain private messages and tool output from every conversation the agent handled. The docs state that session transcripts, tool arguments, tool results and .env reads keep their original text, including credentials, and that logging.redactPatterns does not change model context or transcripts. File logs carry 0600 permissions but hold raw, unmasked records. Log tails, console output, support bundles and OTel export mask sensitive values. A reviewer should treat masking as a property of those outputs only, and plan retention, access and deletion for the SQLite file and the raw logs as if they hold secrets.
The trust model sets the scope of this risk. OpenClaw assumes one trusted boundary per gateway, so every agent on that host reads from the same configuration, credential directory and transcript store. The docs advise separate gateways, credentials and ideally OS users or hosts for mixed-trust use. Decide before rollout which people and which channels will share a gateway, and ask whether a dedicated OS user is available on any shared machine. Mixing a sensitive channel with a general-purpose one on the same store means an agent serving one group can, in principle, reach data stored for the other.
How data moves from channel to disk and out
The diagram starts at a chat channel message reaching the OpenClaw gateway on the host. From there the message text, model context, tool arguments and results, and any .env reads are kept in the SQLite transcript with their original text, and file logs are written raw and unmasked at 0600. Masked copies leave the host only through log tails, console output, support bundles and OTel export. Check that the redaction boundary sits where you expect, since logging.redactPatterns covers logs only.
Raw data stays on the host, while only masked log outputs are exported.
Where log redaction stops and what covers the gap
OpenClaw masks sensitive values in some outputs, but the records that matter most for privacy sit on the gateway host in their original form. The cards below separate what is stored raw from what redaction covers, and set out the host, account and routine controls that cover each gap.
Transcripts keep original credentials
Session transcripts in agents/<agentId>/agent/openclaw-agent.sqlite can contain private messages and tool output, and the docs say they keep original text, including credentials. Treat that SQLite file as sensitive data. Check that the gateway host uses full-disk encryption, that the ~/.openclaw directory is mode 700, and that a retention and deletion routine exists for old sessions. Ask the vendor or your own team how deletion works for a single session.
Tool arguments and results stored unchanged
Tool arguments and tool results are written to the transcript store without redaction, so a shell command that echoes a token or an API response with personal data is kept as-is. Limit which tools can run against sensitive systems through per-agent allow and deny lists, and review those lists after each new plugin or skill is added. Because plugins run in-process with gateway privileges, a tool that reads secrets should be a deliberate, documented choice.
.env reads keep original text
When an agent reads a workspace .env file, the original text is kept in the transcript, including credential values. OpenClaw blocks provider credential variables and keys beginning with OPENCLAW_ from untrusted workspace .env files, but that block does not remove values already read from a trusted file. Keep secrets out of workspaces that agents can open, and confirm with your own testing which .env files an agent can reach.
`logging.redactPatterns` has limited reach
The logging.redactPatterns setting changes only what is masked in log output. It does not change model context or session transcripts, so a pattern that hides a token in the console will not remove it from the SQLite store. Write down which outputs your redaction rules cover (log tails, console output, support bundles and OTel export) and which do not (transcripts and file logs), and test each one before you rely on it.
File logs are raw and 0600
File logs are written with 0600 permissions as raw, unmasked records. Only the owning OS user can read them, which makes a dedicated OS user on shared hosts the main control. Set log retention and rotation with your own tooling, because the gateway's file logs are not a masked record you can hand to a third party. Restrict backup jobs so that log archives are encrypted and access-controlled like the transcript store.
One store per gateway
The trust model assumes one trusted boundary per gateway, so every user of that gateway shares one transcript store, one credential directory and one set of logs. Mixed-trust teams should run separate gateways with separate credentials, ideally under separate OS users or hosts, so one person's transcripts and channel tokens are not readable by another. Confirm this separation before granting a second team access, and document who holds the host account.
- Trust boundary per gateway
- One
How the storage answer changes by deployment situation
A single operator running OpenClaw on a personal laptop is the case the project describes as its own trust model: one trusted operator and one boundary per gateway. Configuration, channel credentials and session transcripts all sit under the operator's home directory, so any process running as that user can read them. The docs' recommended permissions limit access to the operator account, but they do not protect against other software that runs as the same user.
- Config location:
~/.openclaw/openclaw.jsonholds the configuration, with permissions 600 recommended. - Credentials location: channel credentials live under
~/.openclaw/credentials/, with the~/.openclawdirectory at 700 recommended. - Transcripts: session data sits in
agents/<agentId>/agent/openclaw-agent.sqliteand can hold private messages and tool output in original form. - Logs: file logs are written with 0600 permissions as raw, unmasked records.
- Host control: confirm that full-disk encryption is enabled on the laptop, since the docs recommend it for the gateway host.
Confirm with your endpoint management team whether laptops with staff data are encrypted and whether backups or sync tools copy the ~/.openclaw directory off the device.
When several staff share one Linux host, the docs point to a dedicated OS user for the gateway. The storage paths stay the same, but the operating system account becomes the main access boundary. If staff log in under their own accounts and can use sudo or read other home directories, they may read another person's transcripts and credentials. The docs describe one trusted boundary per gateway, so a shared host with several gateways still needs separate OS users for each one.
- Dedicated user: run each gateway under its own OS account so the
~/.openclawdirectory belongs to that account only. - Directory modes: keep
~/.openclawat 700 andopenclaw.jsonat 600, and check them after every upgrade or restore. - Shared paths: review any shared temporary, log or backup directories that could receive copies of the SQLite transcript file.
- Admin access: list which administrators can switch to the gateway user or read the disk as root, since those accounts bypass file modes.
- Log handling: decide who receives the raw file logs, because they are unmasked even though console and support output is masked.
Ask the host owner to show the output of the permission checks for each gateway user and to confirm who holds root on the host.
When staff with different levels of trust, or different clients or business units, need OpenClaw, the project's documentation says to use separate gateways and separate credentials. The storage answer changes because each gateway holds its own transcripts and channel credentials, so one team's data can be exposed to another if the gateways share a user, a host or a credential store. The security policy also states that the model is not a trusted principal and that plugins run in-process with the gateway's privileges, so separation at the file level does not contain a plugin that has been installed by one team.
- Separate gateways: give each team its own gateway with its own
~/.openclawtree. - Separate credentials: issue distinct channel and provider credentials per gateway, so revoking one does not affect another.
- Separate hosts or users: the docs suggest separate OS users or hosts, which is the stronger option where trust levels differ.
- Plugin review: treat every installed plugin as code with the gateway's privileges and limit who can install one.
- Transcript scope: agree in advance which team can read which transcript database.
Confirm the boundary design in writing before rollout, including which team owns each gateway's files and who can restore a backup.
When the content that flows through OpenClaw includes regulated data, the question is whether the files can stay on hosts the organization controls and whether access to them can be shown. The docs support local storage on the gateway host and recommend full-disk encryption. They do not say how the files satisfy any specific legal or regulatory obligation, so any statement about compliance has to come from your own assessment and counsel. Raw transcripts and raw file logs will contain regulated values if staff send them through the agent, so the storage design has to account for that.
- Controlled hosts: place the gateway only on hosts inside your own environment, with the storage paths documented.
- Encryption: confirm full-disk encryption on every gateway host and check that backups are encrypted too.
- Access evidence: record who holds OS accounts on the host and keep records of permission checks.
- Retention: decide how long transcripts and logs stay on disk and how deletion is performed, since the docs describe the files as raw.
- Redaction limits: plan for raw content in transcripts, tool results and
.envreads, which redaction settings do not change.
Before approving regulated use, ask your compliance lead to review the storage design against your own obligations and document the answer.
Order of work before the gateway handles staff data
This sequence confirms the host and runtime, locks down where OpenClaw writes credentials and transcripts, and sets retention and sharing rules before any staff member sends the gateway real work. Each step ends with a check you can record as evidence.
Confirm host and Node.js version
The platform owner checks that the gateway host runs macOS, Linux or Windows and that Node.js meets the requirement in the OpenClaw README: 24.16.0 or later on the 24.x line, or 26.1.0 or later. The README recommends 24.22.1 or later, or 26.12.1 or later, for security, so record which of those versions is installed and confirm it against the version the project currently recommends. The step is done when
node --versionoutput is saved with the host build record and the version is on the approved list.Set documented permissions on config and state
The platform owner applies the permissions the OpenClaw secrets and storage docs recommend: 600 on
~/.openclaw/openclaw.jsonand 700 on the~/.openclawdirectory, which holds the credentials folder and agent data. Run a listing of the directory tree after the change and confirm that no other local account can read the config, the credentials folder or the SQLite transcript files. The step is done when the listing is captured and a second account on the host is shown to be denied access.Enable full-disk encryption on the host
The infrastructure team turns on full-disk encryption for the gateway host, as the OpenClaw docs recommend, so that data at rest, including transcripts and file logs, is protected if the disk or machine is removed. Confirm the method your platform uses, record how the recovery key is held, and check that the key is not stored on the same unencrypted volume. The step is done when the encryption status is exported from the host management tooling and attached to the deployment record.
Dedicate an OS user to the gateway
The platform owner creates a separate operating system account that runs only the OpenClaw gateway, and moves the installation and state directory under it. The OpenClaw docs recommend this on shared hosts, and the security docs say mixed-trust use should separate gateways and credentials, ideally by OS user or host. Confirm that administrators and other service accounts cannot read the dedicated user's home directory. The step is done when a process listing shows the gateway running under that account and the access test has been recorded.
Decide transcript and log retention and deletion
The data owner, with security and legal input, sets how long session transcripts in
agents/<agentId>/agent/openclaw-agent.sqliteand file logs are kept, who may request deletion, and how deletion is carried out and recorded. Transcripts can hold private messages and tool output, and tool results and.envreads keep their original text, so the rule must cover them. Ask the OpenClaw project and your own records team which retention controls the release you run supports before writing the rule. The step is done when a signed retention schedule names each store and its disposal method.Verify that only masked output leaves the host
The security engineer confirms which outputs are approved for sharing. The OpenClaw docs state that log tails, console output, support bundles and OTel export mask sensitive values, while file logs, transcripts, tool arguments, tool results and
.envreads are raw and are not changed bylogging.redactPatterns. Write this boundary into the handling procedure so that staff do not copy file logs or database contents into tickets, chats or external tools. The step is done when the approved-output list is published to the operators who will handle gateway data.Test that support bundles hold no raw secrets
Before anyone sends a support bundle to the vendor or an internal ticket, the security engineer generates one from a test gateway that holds dummy credentials in a known channel and a planted secret in a test
.envread. Search the bundle for those values and for the provider credential names, and confirm that the markers are absent. Repeat the check after each upgrade, because the masking rules are part of the release you run. The step is done when the search output is recorded and the bundle is cleared for use only if no planted value appears.
Questions reviewers ask about OpenClaw data on disk
Does OpenClaw send our transcripts to a vendor?
OpenClaw itself has no hosted service, paid tier or token, and the README says it runs on the user's own hardware, so the project does not operate a server that receives your transcripts. Session transcripts are written to the gateway host under agents/<agentId>/agent/openclaw-agent.sqlite. The data that leaves your environment depends on your setup: the model provider you configure receives the prompts and context sent to it, and each chat channel (such as Slack, Teams or WhatsApp) carries messages through its own provider. Confirm with your engineering team which model provider endpoints and channel integrations are enabled, what each provider's retention and training terms say for the plan you use, and whether outbound traffic from the gateway host is restricted to those destinations.
Can we rely on log redaction to keep secrets out of logs for compliance?
No. The OpenClaw docs say file logs are stored with 0600 permissions as raw, unmasked records, and that session transcripts, tool arguments, tool results and .env reads keep their original text, including credentials. Masking applies to log tails, console output, support bundles and OTel export, and the docs state that logging.redactPatterns does not change model context or transcripts. Treat redaction as a way to reduce exposure in some outputs, not as a control you can cite to an auditor. Your compliance evidence should rest on where raw data lives, who can read it, how long it is kept and how it is encrypted and deleted.
What does a retention review of OpenClaw data involve?
A retention review maps each data store on the gateway host and sets a keep-or-delete rule for it. The stores to inspect are ~/.openclaw/openclaw.json for configuration, ~/.openclaw/credentials/ for channel credentials, the agent SQLite transcript files, file logs, and any support bundles or OTel exports you produce. For each one, the reviewer needs to know who must be able to read it, how long it persists by default in your deployment, whether any downstream exporter copies it, and how deletion is performed and verified, including backups. Ask your team to confirm the file permissions on the host match the documented recommendations of 600 for the config file and 700 for the ~/.openclaw directory, and that full-disk encryption is enabled.
Who pays for what if a partner helps us review OpenClaw data handling?
In a fixed-scope engagement, the client pays for the agreed scope in writing, and the partner's effort covers the work listed in that scope. For this topic, the work usually splits into a review of the gateway host and its data stores, a review of which model providers and channels receive data, a retention and deletion procedure, and evidence collection for your own compliance team. Costs rise with the number of gateways, the number of channels and providers in use, the state of the host (for example, shared hosts that need a dedicated OS user), and how much evidence your assessors expect. Ask any provider for a written scope listing each review item, the deliverables, and the client-side inputs they need, such as host access and a list of connected services. DeployOpen does not publish prices, so request a quote from a written scope.
What can our own team do about OpenClaw data on disk without outside help?
Most of the first steps are within an internal platform or security team's reach. Start by listing the gateway hosts and the OS users that can read the OpenClaw directory. Check that ~/.openclaw/openclaw.json and the credentials directory are set to the documented permissions and that the host uses full-disk encryption. Next, identify every model provider and chat channel configured, and record what data each one receives. Then write a deletion procedure for transcripts and file logs, and test it on a non-production gateway. Where you run mixed-trust teams, follow the project's guidance to use separate gateways and credentials, ideally on separate OS users or hosts. Outside help becomes more useful when the review must be documented for an assessor or when multiple gateways need consistent controls.
Are OpenClaw credentials safe from untrusted workspace files?
Partly. The OpenClaw docs say provider credential variables and any key starting with OPENCLAW_ are blocked from untrusted workspace .env files, which limits one route by which a repository could inject or read those values. That protection does not cover everything. Channel credentials live under ~/.openclaw/credentials/, and the security policy describes plugins as trusted code that runs in-process with the gateway's privileges, so a plugin can reach the same files the gateway can. The model itself is not a trusted principal. Ask your engineers to confirm which plugins are installed, who approved them, and whether the OS user running the gateway can read credentials belonging to other teams.
How do we check which OpenClaw data stores hold raw secrets?
Check every store that the docs list as keeping original text. Session transcripts in the agent SQLite file can contain private messages and tool output. Tool arguments and tool results are kept as they were, and .env reads are stored with their credentials. File logs are raw and unmasked, even though their 0600 permissions limit who can read them. Run a search for known secret patterns across these locations in a test gateway that has been used with dummy credentials, and record what you find. Repeat the check after any change to logging settings, because the docs state that redaction settings do not change transcripts or model context.
Evidence a security reviewer asks to see
This table maps each evidence request a reviewer typically makes about OpenClaw data on the gateway host to its source: a command the operator runs on the host, the OpenClaw documentation, or the operator's own records. Use it to build an evidence pack before approval, and treat any item the documentation does not cover as something to confirm in your own environment. The main takeaway is that most storage and log facts can be checked directly on the host, while retention and handling procedures must come from your own written records.
| Evidence requested | Where it comes from | What a reviewer should look for |
|---|---|---|
| File permissions on config and credential paths | Host check of ~/.openclaw/openclaw.json and ~/.openclaw/credentials/ (OpenClaw docs recommend 600 for the config file and 700 for the directory) | Config file at 600, ~/.openclaw at 700, and no broader group or world access on credential files |
| Host disk encryption status | Operator's host configuration records and OS encryption status output (OpenClaw docs recommend full-disk encryption on the gateway host) | Full-disk encryption enabled on every host that stores transcripts, credentials or logs |
| OS user layout on shared hosts | Operator's account inventory and the gateway service definition (OpenClaw docs recommend a dedicated OS user on shared hosts) | A dedicated OS user for the gateway, with no other staff or services sharing that account |
| Transcript storage location and retention settings | OpenClaw docs on session transcripts in agents/<agentId>/agent/openclaw-agent.sqlite, plus the operator's retention policy | Documented location, a stated retention period set by the operator, and a deletion procedure that covers the SQLite file |
| File log permissions and raw content | OpenClaw docs state file logs are 0600 and unmasked; host check of log file modes | Log files at 0600, and a written acceptance that the raw file logs hold unmasked values |
| Redaction configuration | Operator's config file (logging.redactPatterns) and OpenClaw docs on its limits | Patterns the operator set, plus a note that redaction does not change transcripts, tool results or .env reads |
| Support bundle handling procedure | Operator's own written procedure; OpenClaw docs say support bundles mask sensitive values | A review step before any bundle leaves the host, and a record of who approved each transfer |
| Node.js version in use | Host command reporting the installed Node.js version, compared with the README requirements and recommended security versions | Installed version at or above the recommended security line (24.22.1 or later on 24.x, or 26.12.1 or later on 26.x) |
What to confirm with the project and your own environment
The supplied sources do not settle three questions that matter for approval, so confirm them before any staff use. First, whether any model provider or chat channel integration sends data outside the gateway host. Session transcripts, tool results and .env reads are stored with their original text, but the sources do not say what each provider or channel receives or retains on its side. Ask the project and check the current OpenClaw security docs for each integration you plan to enable, then verify with network captures in a test environment.
Second, how the SQLite files are backed up. Transcripts live in agents/<agentId>/agent/openclaw-agent.sqlite, and the sources do not describe whether backup tooling copies that file while the gateway is writing to it, whether backups inherit the 600 and 700 permissions, or where copies end up. Decide whether backups are needed at all, and if they are, test a restore and confirm that the backup target is encrypted and covered by the same access rules as the gateway host.
Third, retention. The sources do not state whether transcripts, file logs or channel credentials are ever pruned automatically, or how long they persist after a session ends or a user is removed. Confirm the retention behavior at the current version, then write a deletion procedure that your team can run and verify on the gateway host. Record the answers and the version tested in your approval file, and repeat the check after each upgrade.
How DeployOpen helps you scope OpenClaw data controls
DeployOpen plans and implements self-hosted open-source platforms inside your own infrastructure, so the gateway host, its disk and its logs stay under your control. We approach OpenClaw data privacy as a written scope covering where transcripts, credentials and logs sit on disk, what is stored raw, and what your controls must cover before staff use the agent.
How we scope
- Map the gateway host, OS users and the ~/.openclaw paths holding configuration, credentials, transcripts and logs.
- Record which data stays raw, including transcripts, tool results and .env reads, and which outputs are masked.
- Agree the scope in writing before work starts, with deliverables and timelines fixed in advance.
How we build
- Set file permissions on the config file and the ~/.openclaw directory to the values the OpenClaw docs recommend.
- Configure full-disk encryption and a dedicated OS user for the gateway, separating mixed-trust workloads onto separate hosts.
- Test whether log redaction and channel credential handling behave as documented in your own environment, and record the results.
How we hand over
- Document the storage map, retention and access settings, and the owner for each sensitive file or database.
- Provide a runbook for reviewing logs, support bundles and transcript access without exposing raw credential values.
- Deliver evidence for your security and compliance reviewers, noting that independent auditors make any formal assessment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Re-check data storage and permissions after OpenClaw upgrades, since the docs and defaults may change.
- Ask us to repeat the data review when your trust boundary, channels or host layout changes.

