This guide covers optional, high-control features that are disabled by default.
- Remote registry sync uses quarantine and trust policy controls.
- Constrained transforms execute trusted Python modules with strict runtime limits.
- Both features are fail-closed when disabled.
- Optional operational log hygiene:
OPENCLAW_LOG_TRUNCATE_ON_START=1clears staleopenclaw.logat backend startup (once per process).
Enable remote registry sync:
OPENCLAW_ENABLE_REGISTRY_SYNC=1Trust policy:
OPENCLAW_REGISTRY_POLICY=audit(default): records signature/provenance issues for reviewOPENCLAW_REGISTRY_POLICY=strict: rejects non-compliant artifacts
Behavior highlights:
- Quarantine lifecycle is persisted under the state directory:
registry/quarantine/index.json
- Entries are tracked with audit trail records.
- Anti-abuse controls include bounded dedupe windows and rate limiting.
- Integrity and policy checks are enforced before activation paths.
If registry sync is not enabled, registry operations fail closed.
Enable constrained transforms:
OPENCLAW_ENABLE_TRANSFORMS=1Runtime limits:
OPENCLAW_TRANSFORM_TIMEOUT(seconds, default5)OPENCLAW_TRANSFORM_MAX_OUTPUT(bytes, default65536)OPENCLAW_TRANSFORM_MAX_PER_REQUEST(default5)
Trusted module paths:
- Default trusted directory:
data/transforms - Add extra trusted directories with
OPENCLAW_TRANSFORM_TRUSTED_DIRS- Use OS path separator (
;on Windows,:on Linux/macOS)
- Use OS path separator (
Security controls:
- Only
.pymodules are allowed - Module size is capped
- Module hash is pinned at registration time
- Integrity is re-checked before execution
- Execution is bounded by timeout and output budget
If transforms are disabled, transform execution is denied and mapping-only behavior continues.
OPENCLAW_ENABLE_REGISTRY_SYNC=1
OPENCLAW_REGISTRY_POLICY=strict
OPENCLAW_ENABLE_TRANSFORMS=1
OPENCLAW_TRANSFORM_TIMEOUT=3
OPENCLAW_TRANSFORM_MAX_OUTPUT=32768
OPENCLAW_TRANSFORM_MAX_PER_REQUEST=3- Enable one feature at a time in a non-production environment.
- Review logs and operator diagnostics after startup.
- Keep strict policies for public or multi-tenant deployments.
- Treat trusted transform directories as code deployment boundaries.