Signet Openclaw Plugin

Signet Auth@signet-auth

Signet plugin for OpenClaw — Ed25519-signed audit receipts and policy enforcement for every tool call

Readme

@signet-auth/openclaw-plugin

Cryptographic tool-call receipts for OpenClaw, powered by Signet.

Every tool call dispatched by your OpenClaw gateway is:

  1. Signed with an Ed25519 key (Signet receipt v1+)
  2. Appended to a hash-chained audit log (~/.signet/audit/*.jsonl)
  3. Optionally policed by a Signet policy — denied calls return { block: true } from the before_tool_call hook
  4. Optionally encrypted at rest — action.params is wrapped in an XChaCha20-Poly1305 envelope keyed off the signing key, so a third party can verify the signature chain without seeing the parameters

The plugin shells out to the local signet CLI via @signet-auth/node, so it inherits everything Signet already does — keystore unlocking, encrypted audit envelopes, trust bundle support — without re-implementing any of it in the OpenClaw process.

Prerequisites

Install

bash
openclaw plugins install @signet-auth/openclaw-plugin

OpenClaw checks ClawHub first and falls back to npm.

Configure

Add the plugin to your OpenClaw config (~/.openclaw/config.json):

json
{
  "plugins": {
    "entries": {
      "signet": {
        "config": {
          "keyName": "openclaw-agent",
          "target": "openclaw://gateway/local",
          "policy": "/Users/me/.signet/policies/openclaw.yaml",
          "encryptParams": true,
          "blockOnSignFailure": true,
          "priority": 50
        }
      }
    }
  }
}

Note: receipt.signer.owner is taken from the identity's stored metadata (set with signet identity create --owner <name>), not from this plugin config — Signet's CLI does not accept a per-call owner override.

If your identity is passphrase-protected, export it before starting the gateway:

bash
export SIGNET_PASSPHRASE='...'
openclaw start

What the plugin registers

HookBehavior
before_tool_callSigns the call via api.on('before_tool_call', ...). On policy deny returns { block: true, blockReason }.
after_tool_callLogs tool errors (warning level).
Security audit collectorEmits signet:configured, signet:policy, signet:trust-bundle, signet:fail-mode, signet:params-encryption findings.

Verifying receipts

bash
# Hash-chain integrity
signet verify --chain

# Replay against a trust bundle (for an external auditor)
signet audit --verify --trust-bundle ./trust.yaml

Configuration reference

FieldDefaultNotes
keyNameopenclaw-agentIdentity name in ~/.signet/identities/. Owner comes from identity metadata, not plugin config.
targetopenclaw://gateway/localLogical target string; the active session key is appended as a fragment.
policy(none)Path to a Signet policy YAML. When set, denials block tool execution.
trustBundle(none)Surfaced in the security audit collector so operators see whether verifiers have an anchor.
auditDir(CLI default — ~/.signet)Override SIGNET_HOME.
passphraseEnvSIGNET_PASSPHRASEEnv var that holds the keystore passphrase.
encryptParamsfalseEncrypt action.params in the audit log.
signetBin(uses $PATH)Path to the signet binary.
blockOnSignFailuretrueFail-closed (true) aborts the tool call on signing errors; fail-open (false) logs and lets the call run.
priority50Hook priority. Higher values run earlier in OpenClaw's before_tool_call chain.

Compat range policy

OpenClaw uses calendar versioning (v2026.4.24 style) and ships multiple releases per day. The openclaw.compat.pluginApi range in this plugin is a floor, not a tracking target — it declares the oldest OpenClaw build we have verified the plugin against. We deliberately do not bump it on every OpenClaw release for two reasons:

  1. Every floor bump excludes operators still on older OpenClaw builds. There is no upside unless we start using a newer plugin SDK API.
  2. ClawHub treats the range as >=. The current floor is satisfied by every OpenClaw release that has shipped after it, so publishing is not blocked.

The floor only moves when we adopt a plugin SDK API that does not exist on the old floor, or when OpenClaw removes an API we depend on. Drift is caught by the daily openclaw-contract-check workflow (.github/workflows/openclaw-contract-check.yml), not by mechanical floor bumps.

License

Apache-2.0 OR MIT