guide
Oct 7, 2026A practical how-to: stop secrets in env files and shell output from leaving the workstation when developers use ChatGPT, Cursor, or Claude Code.
API keys and .env contents show up in AI coding sessions more often than security reviews expect — not because developers are reckless, but because agents read files and run commands by default.
This guide covers what usually leaks, what ignore lists and chat settings do not stop, and how hook DLP redacts secrets before they reach ChatGPT, Cursor, or Claude Code.
Common paths:
.env, .env.local, .envrc, or a config that embeds a tokenenv, printenv, failed deploys, or scripts that echo credentialsIf the control only filters search indexes, those paths still send plaintext to the provider.
.cursorignore / .gitignore — hygiene for indexing and git; not egress redaction. See why .cursorignore is not DLP..env — agents open files without a human clickYou need a control that rewrites high-risk content before the request leaves the machine.
ReclaimLLM hooks sit at the assistant’s tool/file/shell boundary. For supported CLIs and editors (including Cursor and Claude Code), matched secrets in file reads and command output can be replaced with labeled placeholders such as [REDACTED:API_KEY] so the model never receives the raw value.
Configure substitutions and folder include/exclude filters in sensitive data docs. Sync shared rules with rclm-update after changing Global Substitutions in the app.
Install hooks:
rclm-hooks-install --cursor
rclm-hooks-install --claude
Browser and API paths differ: ChatGPT-style workflows need capture/proxy coverage rather than native Cursor/Claude hooks — see AI coding assistant DLP and install.
Hook redaction is the primary prevention layer. Sessions that still look sensitive can be reviewed before share or export; Enterprise plans add org-oriented DLP scanning. Details and current limitations are documented under sensitive data.
For the full control stack — redact at hook, sensitive session handling, and gateway options — read DLP governance and Claude Code DLP & hooks.
include_folders / exclude_folders)Prevention is local and deterministic for known patterns. Treat vendor privacy modes as complementary, not sufficient.