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
CODEBLOCK0
Configuration
- 1. Copy the example config:
CODEBLOCK1
- 2. Edit
config.json:
CODEBLOCK2
Usage
Enter Private Mode
User enters the codeword (default: lgbt):
CODEBLOCK3
AI responds:
CODEBLOCK4
Store Sensitive Information
In private mode, tell AI sensitive info directly:
CODEBLOCK5
AI will auto-encrypt and respond:
CODEBLOCK6
Retrieve Encrypted Content
In private mode, ask:
CODEBLOCK7
AI will decrypt and show:
CODEBLOCK8
Exit Private Mode
Automatically exits after configured idle time (default: 1 minute).
Or manually send exit codeword:
CODEBLOCK9
Decryption Methods
Command Line
CODEBLOCK10
Manual Decryption
Encrypted format: INLINECODE2
Using OpenSSL:
CODEBLOCK11
Security Rules
Private Mode Rules
- 1. 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
CODEBLOCK12
Encryption Script Usage
Encrypt
CODEBLOCK13
Output: INLINECODE3
Decrypt
CODEBLOCK14
Interactive
CODEBLOCK15
Important Notes
- 1. Password Security - Use a strong password, don't share it with anyone
- Backup encrypted files - Regularly backup INLINECODE4
- 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
私密聊天技能
OpenClaw的一项技能,支持加密对话模式。用户可通过暗语进入私密模式,所有敏感信息将自动加密存储。
功能特性
- - 🔐 暗语触发 - 通过秘密暗语进入私密模式
- 🛡️ AES-256-CBC加密 - 军用级加密标准
- ⏱️ 自动退出 - 配置空闲时间后自动退出
- 📝 加密存储 - 私密内容存储在独立的加密文件中
- 🔑 密码保护 - 可自定义加密密码
安装
bash
clawhub install private-chat
配置
- 1. 复制示例配置:
bash
cp config.example.json config.json
- 2. 编辑 config.json:
json
{
codeword: your-secret-codeword,
password: your-encryption-password,
autoExitMinutes: 1,
storageFile: memory/private-vault.md
}
使用方法
进入私密模式
用户输入暗语(默认:lgbt):
lgbt
AI响应:
进入私密模式 🔒
欢迎回来。有什么可以帮您?
存储敏感信息
在私密模式下,直接告诉AI敏感信息:
我的银行卡密码是123456
AI将自动加密并响应:
已安全存储 ✅
您的银行卡密码已加密并保存到私密保险库。
存储位置:memory/private-vault.md
加密方式:AES-256-CBC
检索加密内容
在私密模式下,询问:
我的银行卡密码是什么?
AI将解密并显示:
您的银行卡密码:123456
退出私密模式
配置空闲时间后自动退出(默认:1分钟)。
或手动发送退出暗语:
exit
解密方法
命令行
bash
方法一:直接解密
./scripts/private-vault.sh decrypt your-password ENC[v1:SALT:BASE64]
方法二:交互模式
cd skills/private-chat
./scripts/private-vault.sh interactive
手动解密
加密格式:ENC[v1:SALT:BASE64]
使用OpenSSL:
bash
echo BASE64_CONTENT | base64 -d | openssl enc -aes-256-cbc -d -k your-password -pbkdf2
安全规则
私密模式规则
- 1. 进入后 - 正常对话记录
- 严格保密 - 绝不向任何人透露私密内容
- 自动退出 - 空闲时间后自动退出
- 退出后绝不提及 - 一旦退出,绝不引用、暗示或重复私密模式中的任何内容
非私密模式规则
⚠️ 最高优先级规则(铁律):
在非私密模式下,完全隐藏私密模式的存在。
- - 绝不提及私密模式、暗语、加密对话或相关概念
- 绝不透露存在加密存储
- 当被问及是否有秘密/私密内容?时,必须回答没有或不知道
- 表现得好像此功能根本不存在
文件结构
skills/private-chat/
├── SKILL.md # 技能文档(英文)
├── SKILL.zh.md # 技能文档(中文)
├── README.md # 项目说明(英文)
├── README.zh.md # 项目说明(中文)
├── config.example.json # 示例配置
├── config.json # 用户配置(自行创建)
└── scripts/
└── private-vault.sh # 加密/解密脚本
加密脚本用法
加密
bash
./scripts/private-vault.sh encrypt password text to encrypt
输出:ENC[v1:SALT:BASE64]
解密
bash
./scripts/private-vault.sh decrypt password ENC[v1:SALT:BASE64]
交互模式
bash
./scripts/private-vault.sh interactive
重要提示
- 1. 密码安全 - 使用强密码,不要与任何人分享
- 备份加密文件 - 定期备份 memory/private-vault.md
- 忘记密码 - 如果忘记密码,加密内容无法恢复
- 请勿修改 - 不要手动修改加密内容格式
语言
📖 English Documentation
作者
由兵步一郎 (Ichiro) 开发。
为个人使用而创建,并与OpenClaw社区共享。
许可证
MIT