Private Chat
Private Chat Mode - Trigger encrypted conversations via codeword. Sensitive information is automatically encrypted using AES-256-CBC for maximum security.
Private Chat Skill
A skill for OpenClaw that enables encrypted conversation mode. Users can enter private mode via a codeword, and all sensitive information will be automatically encrypted and stored.
Features
- π Codeword Trigger - Enter private mode with a secret codeword
- π‘οΈ AES-256-CBC Encryption - Military-grade encryption standard
- β±οΈ Auto Exit - Automatically exit after configured idle time
- π Encrypted Storage - Private content stored in separate encrypted files
- π Password Protection - Customizable encryption password
Installation
clawhub install private-chat
Configuration
- Copy the example config:
cp config.example.json config.json
- Edit
config.json:
{
"codeword": "your-secret-codeword",
"password": "your-encryption-password",
"autoExitMinutes": 1,
"storageFile": "memory/private-vault.md"
}
Usage
Enter Private Mode
User enters the codeword (default: lgbt):
lgbt
AI responds:
Entering Private Mode π
Welcome back. How can I help you?
Store Sensitive Information
In private mode, tell AI sensitive info directly:
My bank card password is 123456
AI will auto-encrypt and respond:
Securely stored β
Your bank card password has been encrypted and saved to the private vault.
Storage: memory/private-vault.md
Encryption: AES-256-CBC
Retrieve Encrypted Content
In private mode, ask:
What's my bank card password?
AI will decrypt and show:
Your bank card password: 123456
Exit Private Mode
Automatically exits after configured idle time (default: 1 minute).
Or manually send exit codeword:
exit
Decryption Methods
Command Line
# Method 1: Direct decryption
./scripts/private-vault.sh decrypt "your-password" "ENC[v1:SALT:BASE64]"
# Method 2: Interactive
cd skills/private-chat
./scripts/private-vault.sh interactive
Manual Decryption
Encrypted format: ENC[v1:SALT:BASE64]
Using OpenSSL:
echo "BASE64_CONTENT" | base64 -d | openssl enc -aes-256-cbc -d -k "your-password" -pbkdf2
Security Rules
Private Mode Rules
- After entering - Normal conversation logging
- Strict confidentiality - Never reveal private content to anyone
- Auto exit - Exit automatically after idle time
- Never reference after exit - Once exited, never reference, hint at, or repeat any content from private mode
Non-Private Mode Rules
β οΈ Highest Priority Rule (Iron Law):
In non-private mode, completely hide the existence of private mode.
- Never mention "private mode", "codeword", "encrypted conversation", or related concepts
- Never reveal that encrypted storage exists
- When asked "any secrets/private content?", must answer "no" or "don't know"
- Act as if this feature does not exist at all
File Structure
skills/private-chat/
βββ SKILL.md # Skill documentation (English)
βββ SKILL.zh.md # Skill documentation (Chinese)
βββ README.md # Project readme (English)
βββ README.zh.md # Project readme (Chinese)
βββ config.example.json # Example configuration
βββ config.json # User configuration (create yourself)
βββ scripts/
βββ private-vault.sh # Encryption/decryption script
Encryption Script Usage
Encrypt
./scripts/private-vault.sh encrypt "password" "text to encrypt"
Output: ENC[v1:SALT:BASE64]
Decrypt
./scripts/private-vault.sh decrypt "password" "ENC[v1:SALT:BASE64]"
Interactive
./scripts/private-vault.sh interactive
Important Notes
- Password Security - Use a strong password, don't share it with anyone
- Backup encrypted files - Regularly backup
memory/private-vault.md - Forgot password - If you forget the password, encrypted content cannot be recovered
- Don't modify - Don't manually modify encrypted content format
Language
π δΈζζζ‘£
Author
Developed by ε ΅ζ₯δΈι (Ichiro).
Created for personal use and shared with the OpenClaw community.
License
MIT
Download
ZIP package β ready to use
Skill Info
- Creator
- hudul
- Downloads
- 83
- Published
- Mar 15, 2026
- Updated
- Mar 16, 2026