ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

cloakclaw

Automatic privacy proxy for AI conversations. Redacts sensitive data (names, companies, financials, SSNs, emails, phones, addresses, API keys, IPs, passwords, and 14 more types) from documents before sending to cloud LLMs, then restores originals in the response. 24 entity types across 6 profiles (General, Legal, Financial, Email, Code, Medical). Use when: (1) user attaches a document (PDF, TXT, etc.), (2) user pastes sensitive text, (3) user mentions contracts, financials, HR docs, medical, or legal documents, (4) user explicitly asks for privacy/cloaking. Always-on by default. Requires: Node.js 22+, CloakClaw installed (`npm install -g cloakclaw`). Optional: Ollama for name/company detection (works without in regex-only mode). Optional: poppler for better PDF extraction (`brew install poppler`).

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/canonflip-git/cloakclaw
Or

CloakClaw — Always-On Privacy Proxy

Prerequisites

# Required
npm install -g cloakclaw

# Optional but recommended
brew install poppler       # Better PDF text extraction
ollama pull qwen2.5:7b     # AI-powered name/company detection

Verify: cloakclaw --version should return 0.1.2 or higher.

How It Works

  1. Detect: When user sends a document or sensitive text, auto-detect the document type
  2. Cloak: Run the cloaking engine (regex + local LLM) to replace sensitive entities with realistic fakes
  3. Send: Forward cloaked text to the cloud LLM for analysis
  4. Decloak: When response arrives, reverse all replacements to restore originals
  5. Deliver: Send the restored response to user with a privacy footer

Entity Types (24)

CategoryTypes
IdentityPeople, Companies, Passports, Drivers License
ContactEmails, Phones, Addresses
FinancialDollars, Percentages, Accounts, Banks, SSNs
LegalCase Numbers, Jurisdictions
TechIP Addresses, MAC Addresses, Passwords/Secrets, API Keys, URLs
OtherCrypto Wallets, GPS Coordinates, VIN Numbers, Medical IDs, Dates

Profiles (6)

  • general — all 24 types (default for unknown documents)
  • legal — contracts, NDAs, filings (10 types)
  • financial — bank statements, P&L, investor docs (11 types)
  • email — correspondence (10 types)
  • code — .env files, configs, infra docs (9 types)
  • medical — HIPAA-adjacent records (11 types)

Auto-Detection Rules

Always cloak (document attached):

  • PDF, TXT, MD, CSV, JSON, YAML, code files → auto-detect profile from content
  • Legal keywords (agreement, contract, whereas, hereby) → legal profile
  • Financial keywords (revenue, P&L, balance sheet, quarterly) → financial profile
  • Code files (.env, .yaml, .json with secrets) → code profile
  • Default for unrecognized → general profile

Always cloak (sensitive content in text):

  • Contains SSN patterns (###-##-####)
  • Contains dollar amounts > $1,000
  • Contains multiple proper names + company names
  • Contains IP addresses, API keys, or passwords
  • User explicitly says "cloak", "private", "redact", or "protect"

Skip cloaking:

  • Simple questions with no sensitive data
  • User says "raw", "uncloak", "no cloak", or "cloakclaw off"

Execution Flow

Step 1: Cloak the document

node scripts/cloak.js --profile <general|legal|financial|email|code|medical> --input /path/to/file

Output JSON:

{
  "sessionId": "a5cc1496-15b9-4b43-8506-3ea75dfe1304",
  "cloaked": "...cloaked text...",
  "entityCount": 20,
  "profile": "legal"
}

Or use the CLI directly:

cloakclaw cloak document.pdf --profile legal -o cloaked.txt

Step 2: Send cloaked text to cloud LLM

Use the cloaked text as the document content. The user's question stays unchanged — only the document data is cloaked.

Step 3: Decloak the response

Metadata

Stars4072
Views0
Updated2026-04-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-canonflip-git-cloakclaw": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.