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

sgury1 pts0 comments

LocalMask — AI reads your code, not your secrets

See it in action<br>AI should read your code,<br>not your secrets.

LocalMask masks secrets, PII, and org data into safe tokens on your machine. Your AI tools read the tokens. The real values stay home.

-10s<br>+10s<br>0:00 / 0:00

CC

Click to unmute 

Download the free CLI<br>Register for early access

Open source, runs offline. localmask scan finds the secrets;<br>localmask publish pushes a masked git mirror your AI tools can read —<br>GitHub, GitLab, Bitbucket, or self-hosted.<br>How the masked mirror works ↓

Local-first privacy for AI coding<br>This is what the AI<br>actually sees.

Scan the repo, mask credentials and PII into reversible tokens, and send only tokens to Claude, GPT, or Gemini. Answers come back and rehydrate on your machine. Try the sensitivity levels on the real .env file →

Get early access

No spam — one note when the private beta opens.

That didn't send. Check the address and try again.

You're on the list. We'll reach out when the beta opens.

Sensitivity level

Without<br>Standard<br>Strict

payments-service / .env

scanning…<br>8 secrets masked · safe to send<br>no masking · secrets exposed

# payments-service/.env — sent to ClaudeDATABASE_URL=postgres://payments_rw~[DB_USER_0]~:pV9$kQ2!zR~[PASSWORD_0]~@db-prod-01.acme.internal~[HOST_0]~:5432~[PORT_0]~/payments~[DB_NAME_0]~STRIPE_SECRET_KEY=sk_live_51MspeZv8Klo2CqR7xY~[API_KEY_0]~JWT_SIGNING_KEY=hs256-9f3a7c1e8b2d4061~[API_KEY_1]~AWS_ACCESS_KEY_ID=AKIA5J7QX9P2M4RTUVWX~[AWS_KEY_0]~ONCALL_EMAIL=[email protected]~[EMAIL_0]~INTERNAL_API=https://vault.acme.internal~[HOST_1]~/v2

real secret<br>becomes →<br>token the AI sees

What you get<br>Mask in your editor, or hand the AI a masked mirror.

LocalMask doesn't decide what may reach the AI — it helps make what reaches the AI safe to send. And with your reviews and teaching, it keeps getting better.

Masked repo mirror

Scan a repo, publish a private masked copy the AI reads

Every secret becomes a stable ~[TOKEN]~

Finance Mode: AI computes on ratios, never your figures

Git sync keeps the mirror current

AI proxy · masking before your AI Pro

Point any AI tool at LocalMask — prompts are masked on your machine, then forwarded

Chains to your company's existing AI gateway: compliance sees clean prompts and stops blocking developers

Bring your own AI + key — OpenAI, Claude, Azure, self-host

Local, learning, yours

Persistent encrypted vault — stable tokens across restarts

Editable detection rules, no code

8 language packs — CNP, ת״ז, DNI, passports (checksum-validated)

Local AI model that learns (Pro)

Team-shared vault, LDAP/AD, SSO (Enterprise)

Free & open source on<br>GitHub ↗<br>— run it entirely offline with the CLI + MCP server.

New · Finance Mode<br>AI analysis for your finances —<br>without showing it a single number.

1. LocalMask replaces every amount with a ratio to R — a random number only your machine knows. $42,000 becomes 1.15×R.

2. Your AI reads the ratios and does the analysis — it never sees amounts, currency, or scale.

3. Answers come back translated to real numbers, locally.

on your disk

salary Dana: $42,000<br>salary John: $35,000

what the AI sees

salary Dana: 1.15×R<br>salary John: 0.96×R

you ask

"Is Dana paid fairly compared to John?"

the AI answers — correctly

"Dana earns about 20% more than John."

Relative mode is free & open source . Choosing the opacity level and locking it org-wide are Pro / Team — see pricing.

LOCALMASK_MONEY_MODE=relative localmask scan .

Also new: 8 language packs — Romanian (CNP) · Hebrew (ת״ז) · Russian · Arabic ·<br>Spanish (DNI) · French · German · Italian. National IDs are checksum-validated.

Pricing<br>Free forever. Pro and Enterprise are annual, per seat.

Free · OSS

$0

open source

Regex + entropy engine

Finance Mode: AI computes on ratios

8 language packs

Masked-repo mirror the AI reads

CLI + MCP server

Edit detections

Get the CLI

Pro

$49

one-time · 12 months of updates

Everything in Free

Local AI model + learning

Web dashboard

AI proxy — masking before your AI / gateway

Finance Mode: you choose what the AI sees

Buy Pro

Team

$199

per seat / year · 5+ seats

Everything in Pro

Shared org rules

Lock security settings org-wide

Priority support

Buy Team

Enterprise

Custom

let's talk

Everything in Team

Central proxy fleet

LDAP/AD + SSO

Audit + support

Contact sales

✓ 14-day money-back guarantee — no questions asked.

Pro is a one-time purchase: every version released within your 12-month update window is yours to keep and run forever. Validated offline — no phone-home, no monthly re-activation. Team & Enterprise are annual, per seat.

By purchasing you agree to our License Terms · Refund Policy · Privacy.

Free CLI · open source<br>Install and mask a repo in two commands.

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...

localmask masked secrets free repo scan

Related Articles