@drakon-systems/shieldcortex-realtime
v3.4.4
Published
OpenClaw plugin for ShieldCortex real-time defence scanning and optional memory extraction.
Maintainers
Readme
@drakon-systems/shieldcortex-realtime
OpenClaw plugin for ShieldCortex real-time defence scanning and optional memory extraction.
What it does
| Hook | Action |
|------|--------|
| llm_input | Scans prompts and history through the ShieldCortex defence pipeline. Threats are logged to audit and can forward to ShieldCortex Cloud. |
| llm_output | Extracts high-signal memories from assistant replies and writes them into ShieldCortex with novelty filtering and dedupe. |
The plugin is intentionally fire-and-forget: it should not stall the OpenClaw turn loop if ShieldCortex is unavailable.
Installation
1. Install ShieldCortex
This plugin resolves the main shieldcortex package at runtime, so the CLI must also be installed somewhere the machine can reach.
npm install -g shieldcortexIf shieldcortex is not on PATH, set binaryPath in the plugin config.
2. Install the plugin
openclaw plugins install @drakon-systems/shieldcortex-realtimeIf you also want the companion session hook, install it from the main package:
openclaw hooks install shieldcortexRestart OpenClaw after installing:
openclaw gateway restartLocal development
From the monorepo root, you can link the working plugin directory directly:
openclaw plugins install --link /path/to/ShieldCortex/plugins/openclawConfiguration
The plugin reads config from plugins.entries.shieldcortex-realtime.config in your OpenClaw config and merges it over ~/.shieldcortex/config.json.
Example:
{
"plugins": {
"entries": {
"shieldcortex-realtime": {
"enabled": true,
"config": {
"binaryPath": "/usr/local/bin/shieldcortex",
"openclawAutoMemory": true,
"openclawAutoMemoryDedupe": true,
"openclawAutoMemoryNoveltyThreshold": 0.88,
"openclawAutoMemoryMaxRecent": 300
}
}
}
}
}Supported plugin config keys:
binaryPath: absolute path to theshieldcortexbinarycloudApiKey: optional ShieldCortex Cloud API key for realtime threat forwardingcloudBaseUrl: optional API base URL overrideopenclawAutoMemory: enable or disable output memory extractionopenclawAutoMemoryDedupe: enable or disable duplicate suppressionopenclawAutoMemoryNoveltyThreshold: dedupe similarity threshold,0.6to0.99openclawAutoMemoryMaxRecent: dedupe cache size,50to1000
Auto-memory
Auto-memory extraction is enabled when openclawAutoMemory is true. It complements your existing memory setup with deduplication to avoid noisy repeats.
You can manage the same settings through ShieldCortex itself:
shieldcortex config --openclaw-auto-memory true
shieldcortex config --openclaw-auto-memory falseOr by editing ~/.shieldcortex/config.json:
{
"openclawAutoMemory": true,
"openclawAutoMemoryDedupe": true,
"openclawAutoMemoryNoveltyThreshold": 0.88,
"openclawAutoMemoryMaxRecent": 300
}Cloud forwarding
Threat forwarding is optional. Configure it in ShieldCortex:
{
"cloudApiKey": "sc_...",
"cloudBaseUrl": "https://api.shieldcortex.ai"
}Or in the plugin entry config if you want plugin-specific overrides.
Audit logs
Realtime events are written to:
~/.shieldcortex/audit/realtime-YYYY-MM-DD.jsonlEach line is a JSON object with input-scan, threat, and output-memory activity.
