Lmsk — AI skill for Claude Code
Masks API keys, passwords, .env values and emails before Claude Code or pi sends them to the LLM, and restores them in tool calls.
How to install Lmsk
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open HugoLopes45/lmsk and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Lmsk does
Masks API keys, passwords, .env values and emails before Claude Code or pi sends them to the LLM, and restores them in tool calls. Local proxy and pi extension.
Alternatives in AI
- DontFeedTheAI — Transparent anonymization proxy for AI-assisted pentesting 654 ★
- Prismor — Self-hosted runtime control plane for AI agents 334 ★
- OpenKeylet — OpenKeylet — Local password and credential manager for AI agents via MCP 136 ★
README
Real keys for your agent. Fakes for the model.
`lmsk` replaces detected API keys, passwords, tokens and emails with fakes before your AI coding agent sends a request to the model. Supported file and shell tools get the original values back. Keep useful context in your coding workflow, with masking handled on your computer.
[Website](https://hugolopes45.github.io/lmsk/) · [Install](#install) · [Agents](#agents) · [FAQ](#faq) · [Good to know](#good-to-know)
[](https://github.com/HugoLopes45/lmsk/actions/workflows/ci.yml)  [](LICENSE)
Choose your agent and follow its commands.
**Claude Code**
npm install -g @hugolopes45/lmsk
lmsk claude
Requires Node.js 22.19+ and Claude Code 2.1.295+. Use `lmsk claude` in place of `claude`. Setup and compatibility: [Claude Code guide](docs/claude-code.md).
**pi**
pi install npm:@hugolopes45/lmsk
Then start pi, or type `/reload` in an open pi. Guide: [lmsk with pi](docs/pi.md).
The default rules work with no configuration. Local only: no model, no account, no telemetry.
Keep the context. Mask the secrets.
Debug from logs, configure your app and run tests with your coding agent. lmsk replaces the sensitive values it detects while preserving the surrounding text.
| Your workflow | What lmsk adds |
|---|---|
| Debug from application logs. | Detected keys, emails and tokens become fakes; the surrounding error stays readable. |
| Write a configuration file with a detected API key. |
Related Skills
Mask2ai
PII redaction for ChatGPT, claude.ai and Claude Code. Masks names, emails, phone numbers, cards, IBANs and IDs
Local Secure Prompt Agent
Browser extension that redacts PII (emails, phone numbers, Aadhaar/PAN, API keys, names, locations) from promp
Claude Code Redact
Claude Code mod that redacts secrets and PII before the model reads them, stores placeholders in the conversat
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
PrivAiTe
Self-hosted PII redaction proxy for LLM APIs and agent CLIs. Scrubs names, emails and secrets from Claude Code
Cloakroom
A privacy layer for Claude Code: names, emails, addresses and API keys are swapped for placeholders before the
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Email Reviewer
Recipient-proxy reviewer for outreach emails drafted by the email-agent skill. Dispatched with the draft, rese
Owner Proxy
Deputy owner for autonomous work sessions. Decides what the project docs prove; settles cheap, reversible ques