cd /news/developer-tools/show-hn-localmask-local-first-cli-th… · home topics developer-tools article
[ARTICLE · art-56185] src=localmaskpro.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Show HN: LocalMask – local-first CLI that masks PII and secrets before LLMs

LocalMask, a new open-source CLI tool, masks personally identifiable information (PII) and secrets in code repositories before sending them to large language models (LLMs). The tool creates private, masked git mirrors that AI tools can safely read, supporting GitHub, GitLab, Bitbucket, and self-hosted git. It addresses security concerns around exposing sensitive data when using AI coding assistants.

read1 min views1 publishedJul 12, 2026
Show HN: LocalMask – local-first CLI that masks PII and secrets before LLMs
Image: source

with pipx — recommended, works anywhere

pipx install localmask

or with pip — inside a virtualenv

python3 -m venv .venv && .venv/bin/pip install localmask

then scan any repo

localmask scan ./your-repo

It's on PyPI as localmask

. On a Mac you can also brew install sgury/localmask/localmask

, or

[grab the tarball](/dl?f=free).

Then `localmask publish <scan> <masked-repo-url>`

creates a private masked git mirror your AI tools can safely read.

Works with GitHub, GitLab, Bitbucket, self-hosted git & Google Secure Source Manager. Tokens are handled via GIT_ASKPASS

— never in a URL, process args, or .git/config

— and only masked content is ever pushed. In free you use your

own AI (paste the masked files or point it at the mirror); Pro adds built-in Ask-AI + the proxy.
[Full guide & security on GitHub →](https://github.com/sgury/localmask#readme)
── more in #developer-tools 4 stories · sorted by recency
── more on @localmask 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-localmask-lo…] indexed:0 read:1min 2026-07-12 ·