← Back to Plugins
Tools

Trusted Mode

darkelogix By darkelogix 👁 73 views ▲ 0 votes

OpenClaw Trusted Mode plugin with standalone hardening and optional Guard Pro governance

Homepage GitHub

Install

npm install @darkelogix/openclaw-trusted-mode

Configuration Example

{
  "toolPolicyMode": "ALLOWLIST_ONLY",
  "allowedTools": ["read_file", "list_files", "search_files"],
  "failClosed": true,
  "certificationStatus": "LOCKDOWN_ONLY"
}

README

# @darkelogix/openclaw-trusted-mode

[![npm version](https://img.shields.io/npm/v/%40darkelogix%2Fopenclaw-trusted-mode)](https://www.npmjs.com/package/@darkelogix/openclaw-trusted-mode)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)
[![CI](https://github.com/darkelogix/openclaw-trusted-mode/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/darkelogix/openclaw-trusted-mode/actions/workflows/ci.yml)

Terminology and acronyms: [`GLOSSARY.md`](./GLOSSARY.md).

## Acronym Expansions

- `SDE`: Strategic Decision Engine
- `PDP`: Policy Decision Point
- `WSL`: Windows Subsystem for Linux
- `CI`: Continuous Integration

OpenClaw plugin that enforces Trusted Mode policy checks on `before_tool_call`.
Documentation index (by audience and task): [`docs/README.md`](./docs/README.md).

## npm Package

Install the public MIT adapter/plugin package with:

```bash
npm install @darkelogix/openclaw-trusted-mode
```

## What `npm install` gives you

`npm install @darkelogix/openclaw-trusted-mode` gives you the MIT adapter/plugin layer and standalone hardening flow only. It does not grant access to the proprietary SDE runtime, enterprise deployment packs, or governed tenant entitlements.

## Need governed mode?

If you want SDE-backed governed mode, obtain your licensed SDE runtime and deployment instructions from the Darkelogix customer console. Use the public npm package for adapter installation, then connect it to your licensed SDE environment for governed authorization, evidence, and rollout controls.

The npm package contains the MIT plugin files and standalone hardening logic only.
It does not include the proprietary `sde-enterprise` runtime.

## Licensing

`openclaw-trusted-mode` is licensed under the MIT License.

`sde-enterprise`, including the SDE PDP runtime and related enterprise deployment assets, is proprietary software and is not covered by the plugin's MIT license. Use, copying, modification, distribution, or deployment of the SDE runtime requires a separate commercial license or written permission from Darkelogix.

First-time setup (download/install/configure/test/run): [`START_HERE.md`](./START_HERE.md).
Troubleshooting decision tree: [`SELF_SERVICE_FAQ.md`](./SELF_SERVICE_FAQ.md).
Org defaults and support metadata are delivered through the customer console and the licensed runtime-secrets package.
One-command setup is generated per customer in the console Downloads page alongside the licensed runtime bundle.
For full install/reinstall/uninstall/startup/config/troubleshooting guidance across both plugin and SDE-PDP, see [`OPERATIONS_GUIDE.md`](./OPERATIONS_GUIDE.md).
For a simpler operator runbook, see [`RUNBOOK_NON_TECHNICAL.md`](./RUNBOOK_NON_TECHNICAL.md).
For go-live gating, use [`PRODUCTION_READINESS_CHECKLIST.md`](./PRODUCTION_READINESS_CHECKLIST.md).
For a pre-filled starting point, use [`PRODUCTION_READINESS_CHECKLIST_EXAMPLE.md`](./PRODUCTION_READINESS_CHECKLIST_EXAMPLE.md).
For alternate port deployments, use [`PRODUCTION_READINESS_CHECKLIST_EXAMPLE_ALT_PORTS.md`](./PRODUCTION_READINESS_CHECKLIST_EXAMPLE_ALT_PORTS.md).
For public launch readiness, use [`PUBLIC_RELEASE_READINESS_CHECKLIST.md`](./PUBLIC_RELEASE_READINESS_CHECKLIST.md).
For end-to-end public release execution steps (what/where/how), use [`PUBLIC_RELEASE_PROCESS_RUNBOOK.md`](./PUBLIC_RELEASE_PROCESS_RUNBOOK.md).
For certified runtime support status, see [`COMPATIBILITY_MATRIX.md`](./COMPATIBILITY_MATRIX.md).
For vulnerability reporting and security posture, see [`SECURITY.md`](./SECURITY.md).
For release hardening process, see [`RELEASE_OPERATIONS.md`](./RELEASE_OPERATIONS.md).
For security evidence indexing, see [`SECURITY_EVIDENCE_BUNDLE.md`](./SECURITY_EVIDENCE_BUNDLE.md).
For performance baseline evidence, see [`PERFORMANCE_BASELINE.md`](./PERFORMANCE_BASELINE.md).
For governed release declaration, see [`RELEASE_v1.0.0.md`](./RELEASE_v1.0.0.md).

## What it does

- Free standalone mode defaults to local hardening with a minimal allowlist:
  - `read_file`
  - `list_files`
  - `search_files`
- Blocks high-risk tools such as `exec`, file writes/edits, and deletes unless you deliberately widen the policy.
- Sends tool call context to a Policy Decision Point (PDP) endpoint.
- Denies execution when PDP returns a deny decision.
- Optionally enforces returned constraints.
- Supports fail-closed (default) or fail-open behavior.

## Free vs Paid

The product boundary should be explicit at install time:

- `npm install` gets you the adapter/plugin and standalone hardening path
- governed mode requires a separately licensed SDE deployment
- the customer console is the supported way to obtain governed runtime artifacts and deployment instructions


- Free standalone use:
  - useful as a local hardening layer
  - works without `sde-enterprise`
  - best for "read/search only" OpenClaw sessions
- Paid / enterprise use:
  - PDP-backed authorization and deny decisions
  - signed policy packs
  - tenant entitlements and governed rollout
  - release attestation and compatibility certification

## Build and test

```powershell
npm run build
npm test
npm run adversarial-check
npm run performance-benchmark
npm run test-pack-matrix
```

## Trusted Mode Check

```bash
npm run trusted-mode-check
npm run trusted-mode-check -- --json
```

`trusted-mode-check` is a PDP-backed validation path. It is useful for SDE-integrated deployments, not for standalone free-mode validation.

JSON output status values:
- `ENFORCED_OK`
- `LOCKDOWN_ONLY`
- `UNSAFE`

Attestation pack inputs:
- `attestation/trusted_mode_attest_v1.json`
- `attestation/trusted_mode_attest_v1.sig`

Runtime/certification env vars:
- `CERTIFICATION_STATUS` (`CERTIFIED_ENFORCED` | `LOCKDOWN_ONLY` | `UNSUPPORTED`)
- `OPENCLAW_VERSION`
- `EXPECTED_STATUS` (optional CI assertion override)

## Local install in OpenClaw (WSL)

```bash
openclaw plugins install /mnt/c/path/to/openclaw-trusted-mode
openclaw plugins info openclaw-trusted-mode
```

For a standalone free-mode config, start from [`openclaw.user-config.entry.example.json`](./openclaw.user-config.entry.example.json).

For governed mode, install/register the plugin first, then write the OpenClaw host config with:

```bash
openclaw-trusted-mode-configure \
  --tenantId darkelogix \
  --gatewayId gw-dev \
  --environment dev \
  --pdpUrl http://10.90.0.6:8001/v1/authorize \
  --certificationStatus LOCKDOWN_ONLY
```

This command updates `~/.openclaw/openclaw.json`, adds `openclaw-trusted-mode` to `plugins.allow`, and writes the governed plugin settings under `plugins.entries.openclaw-trusted-mode`.

## Plugin config

See [`openclaw.plugin.json`](./openclaw.plugin.json) for config schema and defaults, including:

- `pdpUrl`
- `policyVariant`
- `pdpTimeoutMs`
- `failClosed`
- `tenantId`
- `certificationStatus`
- `openclawVersion`
- `certifiedOpenClawVersions`
- `highRiskTools`
- `toolPolicyMode`
- `allowedTools`
- `requireTenantId`
- `allowedTenantIds`
- `contextCurator`

Recommended standalone free-mode baseline:

```json
{
  "toolPolicyMode": "ALLOWLIST_ONLY",
  "allowedTools": ["read_file", "list_files", "search_files"],
  "failClosed": true,
  "certificationStatus": "LOCKDOWN_ONLY"
}
```

Recommended paid / PDP-backed baseline:

```json
{
  "toolPolicyMode": "PDP",
  "pdpUrl": "http://localhost:8001/v1/authorize",
  "tenantId": "trial-tenant",
  "gatewayId": "gw-smoke-1",
  "environment": "prod",
  "failClosed": true,
  "certificationStatus": "LOCKDOWN_ONLY"
}
```

## Compatibility Matrix Automation

```bash
npm run update-compatibility-matrix
npm run verify-compatibility-matrix
```

## Security Gates

```bash
npm run collect-security-evidence
npm run generate-security-release-index
npm run verify-security-gates
```

## Schema Contract and Evidence Bundle

```bash
npm run verify-plugin-schema-contract
npm run bundle-release-evidence
```

## Startup Health Verification

```bash
npm run startup-health-check -- --skip-plugin-check
```


tools

Comments

Sign in to leave a comment

Loading comments...