Does OpenClaw policy give central admin control over staff agents?
OpenClaw policy gives an operator a way to write down the configuration requirements for an OpenClaw installation and to check the running setup against them, but it does not stop an agent at the moment it acts. The Policy capability is delivered through the openclaw policy command set and a policy.jsonc file. It is part of the open-source project, which has no paid tier, hosted service or token, so there is no enterprise license to buy for it. Treat it as a configuration assurance tool that sits alongside your own runtime controls, not as a central switch that governs what each staff member's agent does in real time.
To use it, you need three things. First, a policy.jsonc file that you write and own, stating the rules you require. According to the OpenClaw docs, those rules cover channels, MCP servers, model providers, network SSRF posture, ingress and channel access, gateway exposure, sandbox posture, data handling, secrets, exec approvals and tool posture. Second, an active workspace that OpenClaw observes as evidence against that file. Third, a schedule or owner for the checks. The docs list the subcommands check, compare and watch, with watch used for drift detection, and drift is reported through openclaw doctor --lint. Policy can also produce a policy attestation hash for audit evidence, and scoped overlays can hold named agents or channels to stricter rules. Confirm with the project's current documentation which of these outputs your reviewers will accept as evidence.
Which policy capabilities are built in, paid or outside components
This table sorts each OpenClaw policy capability by its source: built in to the Policy plugin, dependent on a component you supply, or not available. OpenClaw's README states it has no paid tier, so no row depends on a paid edition and that column is omitted. The main takeaway is that Policy checks and reports drift against written requirements, but it does not enforce tool calls at runtime or attest per-agent credential stores.
| Capability | Built in | Needs outside component | Not available |
|---|---|---|---|
| Requirements in policy.jsonc | Rules covering channels, MCP servers, model providers, sandbox posture, secrets, exec approvals and tool posture | Version control and change review of the file, if you need an approval trail | Not applicable |
| Check | policy check observes the active workspace as evidence and tests it against policy.jsonc | Not applicable | Not applicable |
| Compare | policy compare subcommand listed in the docs; confirm its inputs in the policy CLI reference | Not applicable | Not applicable |
| Watch (drift detection) | policy watch is the subcommand used for drift detection | Scheduling and alerting on watch output, handled by your own tooling | Not applicable |
| openclaw doctor --lint reporting | Drift from the policy requirements is reported through openclaw doctor --lint | Collecting lint output into your ticketing or SIEM process | Not applicable |
| Policy attestation hash | Policy produces an attestation hash for audit evidence | Retaining the hash and the policy file in your evidence system | Not applicable |
| Scoped overlays for named agents or channels | Overlays hold named agents or channels to stricter rules than the base policy | Not applicable | Not applicable |
| Runtime tool-call enforcement | Not applicable | Not applicable | Policy does not enforce tool calls or change runtime behavior at request time |
| Per-agent credential store attestation (openclaw-agent.sqlite) | Not applicable | Separate review of the credential store on the gateway host, using your own controls | Policy does not attest per-agent credential stores such as openclaw-agent.sqlite |
How policy.jsonc, observation and drift reporting fit together
The policy.jsonc file is where an operator writes the requirements for an OpenClaw deployment. According to the OpenClaw docs, those rules cover channels, MCP servers, model providers, network SSRF posture, ingress and channel access, gateway exposure, sandbox posture, data handling, secrets, exec approvals and tool posture. Treat the file as the single written statement of what the gateway is supposed to look like. Before a rollout, have security and platform owners agree on each rule section, because the file only proves what its author chose to require. A rule left out of policy.jsonc is not checked at all, so the review of that file is the control that matters most.
Requirements alone do not show what is running. OpenClaw observes the active workspace as evidence, and the policy subcommands check and compare evaluate that observed state against the file. The policy watch subcommand is the one used for drift detection, meaning it reports when the live workspace has moved away from the declared requirements. Drift is surfaced through openclaw doctor --lint, so the team that owns the gateway should decide who reads that output, how often, and who is accountable for closing a finding. Confirm with the project docs how watch runs in your environment before you rely on it as a continuous signal.
Policy can also produce a policy attestation hash, which gives auditors a fixed fingerprint of the evaluated state to cite as evidence. Store each hash with the date, the gateway identity and the reviewed policy version, so a later comparison has a baseline. Scoped overlays let you hold named agents or channels to stricter rules than the gateway default, which fits a case where one agent reads customer data while others do not. Remember the limits documented for this layer: Policy does not enforce tool calls or change runtime behavior at request time, and it does not attest per-agent credential stores such as openclaw-agent.sqlite. Those gaps need compensating controls, which the sibling sections on permissions and secrets address.
Decisions to make before writing policy.jsonc
Before any rule is written, the operator needs to settle who sets the baseline, which agents or channels are held to stricter standards, who controls changes, and where evidence lives. Each choice below shapes what the policy file can prove later, so the answers should be recorded before the first policy.jsonc is committed.
Mandatory rules versus overlay scope
Decide which rules apply org-wide and which only apply through scoped overlays. Org-wide rules typically cover gateway exposure, secrets, data handling and model providers, because every gateway should meet them. Overlays are the place for named agents or channels that need stricter rules, such as tighter tool posture or exec approvals. Writing this split first keeps the baseline small and auditable. Confirm the overlay syntax against the policy CLI reference before drafting.
Policy CLI docsStricter overlays for sensitive agents
Identify which agents or channels hold credentials, reach internal systems or receive messages from outside the organization, then assign them overlays. An agent reachable from public chat channels carries a different risk than one used by a single trusted operator. Overlays let you hold those named agents to stricter rules without forcing the same restrictions on every workspace. Record the reason for each overlay so reviewers can test whether the scope still fits.
Ownership and change control of the policy file
Name one owner for policy.jsonc and a second approver for changes, and keep the file in version control with reviewed commits. Policy rules describe what the organization requires, so an unreviewed edit can silently weaken a control. Define who may change channel, provider or exec rules and how emergency changes are recorded. Ask the team to confirm that the file used in a check is the same reviewed version deployed to each gateway.
Storage of attestation hashes and drift output
Decide where each policy attestation hash and each drift report is kept, who can read them and how long they are retained. The attestation hash is audit evidence only if it is stored outside the gateway host and tied to the reviewed policy version. Drift output from openclaw doctor --lint should go to the same evidence store so changes can be traced over time. Remember that Policy does not attest per-agent credential stores such as openclaw-agent.sqlite, so those need separate controls.
Frequency of watch runs and review of findings
Set how often policy watch runs for drift detection, who receives its findings and the deadline for acting on each one. Drift that goes unreviewed is no better than no detection, so assign a named reviewer and an escalation path for findings that touch exposure or secrets. The schedule should match how often the workspace changes in practice. Confirm with the vendor or project how watch is run continuously versus on demand in your environment.
Separate gateways for mixed-trust teams
Decide whether teams with different trust levels will share one gateway or each receive their own. The OpenClaw trust model assumes one trusted boundary per gateway, and mixed-trust deployments should use separate gateways and credentials, ideally on separate OS users or hosts. Policy can flag misconfiguration but cannot make a shared gateway a security boundary between adversarial users. Settle this choice before writing rules, because it determines how many policy files and attestation records you will maintain.
OpenClaw security docsHow policy governance changes by team structure and data sensitivity
A single team running one gateway sits inside the trust boundary the OpenClaw docs describe: one trusted boundary per gateway. Policy is most useful here as a repeatable baseline. The team writes its requirements in a policy.jsonc file, runs checks against the active workspace, and reviews drift before changes reach production use. Because everyone on the gateway is trusted to the same degree, the main question is whether the baseline is correct and whether it stays correct over time.
- Baseline rules: Decide which channels, MCP servers, model providers and exec approval settings are allowed, and write them into the policy file.
- Drift review: Use
openclaw doctor --lintand thepolicychecks to find where the live workspace has moved away from the file. - Continuous watch: Run
policy watchif the team wants drift surfaced as configuration changes happen, rather than at review time. - Attestation hash: Keep the policy attestation hash with change records so each reviewed state can be matched to evidence later.
- Limits: Policy does not enforce tool calls at request time, so runtime behavior still depends on the gateway's own settings.
Confirm with your own engineering owner who may edit the policy file and how changes to it are reviewed and approved.
When several teams with different trust levels want OpenClaw, the project's guidance is to split them. The security docs advise separate gateways and separate credentials, ideally on separate OS users or hosts. Policy cannot make one shared gateway safe for mutually distrusted users, because the project says plugins run in-process with gateway privileges and the gateway is not a boundary between adversarial users. Policy's role is to check each gateway against its own rules, not to reconcile teams sharing one gateway.
- One policy per gateway: Maintain a separate
policy.jsoncfor each gateway so each team's rules match its own trust level. - Scoped overlays: Use overlays to hold named agents or channels to stricter rules inside a single gateway, where the rules differ within one trust boundary.
- Separate credentials: Keep channel credentials and agent credential stores separate per gateway, recognizing that Policy does not attest per-agent credential stores such as
openclaw-agent.sqlite. - Plugin review: Limit which plugins each gateway loads, since plugins run with that gateway's privileges.
- Comparison: Use the
comparesubcommand to check how team gateways differ from the baseline.
Ask whether each team's gateway has its own host or OS user and whether its credentials are isolated from other teams.
When a deployment handles personal or patient data, policy rules for data handling, secrets and logging become evidence rather than preference. The OpenClaw docs say Policy covers data handling and secrets among its rule areas, and it can produce an attestation hash for audit evidence. That hash shows a reviewed configuration state at a point in time. It does not prove runtime behavior, and it does not cover every credential store, so a compliance file needs supporting evidence from other sources.
- Data handling rules: Write explicit requirements for what the workspace may hold and which channels may carry regulated content.
- Secrets posture: Check how secrets are referenced in policy and confirm where credentials are stored on the gateway host, since per-agent stores fall outside attestation.
- Attestation records: Retain attestation hashes alongside change tickets and review sign-offs so an auditor can trace a state to a decision.
- Stricter overlays: Apply overlays to agents or channels that touch the most sensitive data.
- Gap analysis: Document what Policy cannot show, such as request-time tool calls, and cover those gaps with other controls.
Ask your compliance lead which regulatory controls the attestation hash can support and which must be evidenced another way.
OpenClaw runs on the user's own hardware and has no hosted service, so drift output can stay entirely inside your network. This suits air-gapped or tightly segmented environments, where lint results, watch output and attestation hashes are written locally and reviewed by staff. The tradeoff is that nothing reports drift to the project or to a vendor, so your team owns the entire review loop, from collecting output to acting on it.
- Local output: Confirm where
policyanddoctor --lintoutput is written on the gateway host and who can read it. - Transfer path: If evidence must leave an isolated network, define an approved manual process for moving hashes and reports.
- Version control: Keep
policy.jsoncunder internal version control so changes are reviewed locally. - Node requirements: Track the Node.js versions the README lists as minimum and recommended for security, and update them through your own change process.
- Offline review: Plan how advisories from the project's security policy reach your team when the network cannot reach outside sources.
Confirm that the policy tooling runs fully offline in your environment before you rely on it for approval decisions.
Putting policy checks into production in order
This sequence moves OpenClaw policy from a written requirement to a checked, attested and re-tested control on each gateway. Each step produces evidence that a security reviewer can inspect before the next change is approved.
Agree the required baseline with security
Security, platform engineering and the gateway owner agree which rules the baseline must hold: channels, MCP servers, model providers, network SSRF posture, gateway exposure, sandbox posture, secrets, exec approvals and tool posture. Record each rule with an owner and the reason for it. The step is done when the reviewer has a written baseline that maps each rule to a policy area the OpenClaw docs list, so nothing is left to memory during later reviews.
Write policy.jsonc and scoped overlays
The gateway owner writes the requirements into a policy.jsonc file that sits with the workspace under review. Where a named agent or channel handles more sensitive work, add a scoped overlay that holds it to stricter rules than the base file. The reviewer should see the file in version control, with each overlay's scope stated, so the stricter rules are visible rather than implied.
Run check and compare on a representative workspace
Run the policy subcommands check and compare against a workspace that reflects real use, not an empty test directory. Check evaluates the workspace against the written requirements, and compare shows where the observed state differs from the policy. Keep the output with the policy file. The step is done when the reviewer can see each failing rule, its evidence and a named fix, and the team has either remediated it or recorded an accepted exception.
Schedule policy watch and route doctor lint output
Schedule policy watch for drift detection on each gateway, and send openclaw doctor --lint output to the team that owns the affected setting, not to a shared inbox. Confirm the schedule and the alert destination with the gateway owner in writing. The step is done when a deliberate test change produces a drift report that reaches the owning team, which proves the route works before anyone relies on it.
Generate and file the attestation hash at each approved change
After a change is approved, generate the policy attestation hash and file it with the change record, the policy file version and the approver's name. The hash is audit evidence for the policy state at that point. Note in the record that Policy does not attest per-agent credential stores such as openclaw-agent.sqlite, so those stores need their own review. The step is done when each approved state has a hash that a reviewer can match to a specific policy file.
Retest the policy after every OpenClaw upgrade
Treat each OpenClaw upgrade as a change to the control set. Rerun check and compare, confirm that watch still runs and that doctor --lint still reaches the owning team, and generate a fresh attestation hash. Confirm with the vendor's release notes which policy behavior changed, since the docs do not fix a schedule for this. The step is done when the post-upgrade results match or explain any difference from the previous filed state.
How policy evidence flows from policy file to review
The flow starts with the policy.jsonc file, which holds the requirements. OpenClaw checks the active workspace against those requirements through the check and compare subcommands, and policy watch reports drift. openclaw doctor --lint surfaces the findings, and Policy can produce an attestation hash for audit evidence. The separate box on the right marks what Policy does not touch: runtime tool calls and per-agent credential stores such as openclaw-agent.sqlite. Reviewers should treat the attestation as evidence about configuration at a point in time, not as proof of runtime behavior.
Policy checks workspace configuration against policy.jsonc; runtime calls and agent credential stores sit outside it.
What a security reviewer asks to see for policy controls
This table lists the evidence a reviewer should request from an OpenClaw deployment, what each item proves, and where it comes from. Read it as a checklist: the first rows show what Policy can document, and the last row marks what sits outside Policy and needs its own proof.
| Evidence item | What it proves | Where it comes from in OpenClaw |
|---|---|---|
| The policy.jsonc under change control | The approved requirements for channels, MCP servers, model providers, sandbox posture, secrets, exec approvals and tool posture, and who changed them | The policy.jsonc file in the workspace, kept in your version control system with reviewed commits |
| Check and compare output | Whether the active workspace matches the written requirements at a given time, and what differs between two states | Output of the openclaw policy check and openclaw policy compare subcommands |
| Watch drift history | Whether the workspace changed away from the approved state between reviews, and when | Output of openclaw policy watch, which the docs use for drift detection; retain its logs as dated records |
| Doctor lint findings | Which requirements currently fail, with the rule that failed for each finding | Output of openclaw doctor --lint, which reports drift from policy.jsonc |
| Attestation hash for each approved state | That a specific policy state was recorded at a specific point, so a later state can be compared against it | The policy attestation hash that Policy can produce for audit evidence; store one per approved release |
| Scoped overlay definitions for named agents or channels | That named agents or channels were held to stricter rules than the baseline, and what those rules were | Overlay sections of policy configuration; keep each overlay with its owner and approval record |
| Gateway trust boundary evidence | That each gateway serves one trust boundary, and that mixed-trust groups run on separate gateways | Deployment records for each gateway host, OS user and network exposure settings, kept outside Policy |
| Per-agent credential store evidence | Who can read the credential stores, such as openclaw-agent.sqlite, and how they are protected | Host file permissions, backup records and access reviews, because Policy does not attest these stores |
Questions buyers ask before approving OpenClaw policy controls
Does OpenClaw policy cost extra to use?
No paid tier applies. The OpenClaw README states that OpenClaw has no paid tier, hosted service or token and runs on your own hardware, so the Policy plugin and the openclaw policy commands carry no license fee from the project. Your recurring costs are the infrastructure that runs the gateway, the staff time to write and maintain policy.jsonc, and any outside help you buy. If you engage an implementation partner, the cost is the written scope, which you should ask to see before work starts. Confirm the plugin's terms and version directly with the project's repository before you rely on them in an approval memo.
Does OpenClaw policy stop an agent from running a command?
No. Policy does not enforce tool calls or change runtime behavior at request time. It checks the active workspace against the rules you write, and it reports where the workspace has drifted from them. Blocking a command is the job of other controls, such as exec approvals, allowlists, sandbox posture and per-agent tool allow and deny lists, which you should review separately. Treat policy as a configuration check and evidence source, not as a runtime guard. Your approval memo should say so in plain words so no reviewer assumes the policy file blocks risky actions.
How long does setting up OpenClaw policy take, and what drives the effort?
The docs do not give a duration, so ask for one in writing rather than planning against an assumed figure. The effort scales mainly with two things: how much of the workspace you must cover, and how many scoped overlays you need. Each overlay holds named agents or channels to stricter rules, so a gateway with several teams and channels requires more rule design, testing and review. Other drivers include how many rule families you enable (channels, MCP servers, model providers, network SSRF posture, ingress, gateway exposure, sandbox posture, data handling, secrets, exec approvals and tool posture) and how many gateways you run. Ask a provider to split the estimate by these items.
Can our own team set up OpenClaw policy without outside help?
Often yes, if your team already operates the gateway host and can read the OpenClaw security documentation. The work is configuration and review: writing policy.jsonc, running openclaw policy check, compare and watch, reading drift reports from openclaw doctor --lint, and deciding how overlays map to your agents and channels. The skills that matter most are an understanding of the gateway's trust boundary and the ability to test that a rule fails when it should. Teams without that background usually need time to learn the trust model first. Decide ownership before rollout: who edits the file, who approves changes, and who reviews drift.
What should we ask for in a quote for OpenClaw policy work?
Ask for a written scope that names the gateways, hosts and channels in scope, the rule families to be written, the overlays to be created, and the testing you will see before sign-off. Request the deliverables in writing: the policy.jsonc file, the documented test results, the procedure for running policy watch and reviewing drift, and the handover notes for your staff. Ask what is one-time (initial rule design, testing, handover) and what recurs (rule updates after OpenClaw upgrades, periodic drift review, retained evidence). Confirm the fixed scope, timelines and any ongoing support terms in writing before work starts, and ask which items are excluded, such as runtime enforcement or credential stores.
Does OpenClaw policy satisfy a compliance control for us?
No single tool satisfies a compliance control on its own, and the OpenClaw documentation does not claim that it does. Policy can produce a policy attestation hash that serves as audit evidence, and it records what the active workspace looks like against your rules. It does not attest per-agent credential stores such as openclaw-agent.sqlite, so you need a separate method to evidence those. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make that determination. Ask your auditor which control objectives your policy evidence can support before you count on it.
How DeployOpen helps you scope and test OpenClaw governance
DeployOpen plans and documents how your team defines policy.jsonc requirements, runs the Policy checks against your gateway hosts and tests what the policy does and does not cover. We work inside your own infrastructure, so the gateway, workspace and evidence stay under your control.
How we scope
- Engagements are fixed-scope, with the policy rules, gateway hosts and agents agreed in writing first.
- We confirm which channels, MCP servers, model providers and exec approval settings the policy must cover.
- We identify named agents or channels that need scoped overlays with stricter rules than the default.
How we build
- We draft policy.jsonc requirements mapped to your approved channel, network, sandbox and secrets standards.
- We set up recurring policy check, compare and watch runs so drift from the required baseline is reported.
- We document which controls rely on separate gateways, OS users or hosts, since Policy does not enforce those boundaries.
How we hand over
- You receive the policy file, drift test results and documented procedures for reviewing policy attestation hashes.
- The handover lists gaps Policy does not check, including tool calls at request time and per-agent credential stores.
- We walk your operators through openclaw doctor --lint output so they can triage drift findings on their own.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainers can cover re-running policy checks after OpenClaw version changes and policy updates.
- Security testing of agent and gateway configurations can be added to the retainer as your scope changes.

