/install anydef-enc
anydef-enc: Local Security Toolkit
This skill provides mandatory encryption for OpenClaw agents. It operates in Local Manual Mode, meaning no external network requests are made, and encryption keys are derived from a user passphrase.
Key Hierarchy
- Master Key (MK): Derived from your passphrase using PBKDF2 (100,000 iterations).
- Persistence: A unique "Salt" is stored in your environment. As long as you remember your passphrase, the same Master Key will be generated across reboots.
- Key Encryption Key (KEK): Generated randomly and encrypted by your MK. Stored in
window.storage. - Data Encryption Keys (DEKs): Scoped keys (e.g.,
memory,assets) encrypted by the KEK and stored inwindow.storage.
Security Disclosure
- Zero Network: This skill does NOT perform any external network requests. All
cryptooperations happen via standard Web APIs in your browser. - No Cleartext Keys: Keys are never stored in cleartext. They are always "wrapped" (encrypted) by a higher-level key.
- Passphrase Obligation: You must provide your passphrase to "unlock" the vault after هر reboot or session expiry. If you forget your passphrase, existing encrypted data is lost forever.
Selective Encryption
Configure which scopes to protect in your settings:
history: Conversation logs.memory: Agent's semantic memory.assets: All uploaded files.
Usage
import { EncryptionService } from './encryption-service.js';
// Unlock once per session
await EncryptionService.unlock('your-passphrase');
// Use throughout the session
const secretData = await EncryptionService.encrypt('memory', 'Sensitive intelligence...');
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install anydef-enc - After installation, invoke the skill by name or use
/anydef-enc - Provide required inputs per the skill's parameter spec and get structured output
What is Anydef Enc?
Local-Only Agent Data Encryption. High-security MK->KEK->DEK hierarchy for local agent data. It is an AI Agent Skill for Claude Code / OpenClaw, with 91 downloads so far.
How do I install Anydef Enc?
Run "/install anydef-enc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Anydef Enc free?
Yes, Anydef Enc is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Anydef Enc support?
Anydef Enc is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Anydef Enc?
It is built and maintained by anydefai (@anydefai); the current version is v2.1.1.