Install
openclaw skills install totpTOTP-based OTP verification for sensitive operations (env vars, gateway restarts, backup deletions, critical config changes). Uses otplib with window:2 (1 minute tolerance).
openclaw skills install totpSecure OTP verification using TOTP (Time-based One-Time Password) for sensitive operations.
Protect access to:
.env variablesopenclaw.json configurationInstall dependencies:
npm install
Generate secret and QR:
npm run generate
Optionally pass service and account name:
node scripts/generate-secret.js MyService myuser
Send the QR image (qr.png) to the user, then delete it immediately:
rm qr.png
Set TOTP_SECRET in .env:
TOTP_SECRET=YOUR_BASE32_SECRET_HERE
Configure Google Authenticator/Authy with the generated secret or QR.
When a sensitive operation is requested:
TOTP_SECRET=$TOTP_SECRET node scripts/verify.js 123456
scripts/generate-secret.js - Generate new TOTP secret and QRscripts/verify.js - Verify OTP tokens (window:2 = 1 minute tolerance)SKILL.md - This documentation.env as TOTP_SECRETThis skill should be integrated into the agent's decision flow when:
.env variablesopenclaw.json contents