macOS menu bar app

Stop leaking your API keys to AI tools

NoHack sits in your menu bar and automatically masks secrets before they reach ChatGPT, Cursor, Claude, or any other app. When you need them back, it restores them invisibly.

Download for macOS View source

Requires macOS 13+ · Free · Open source

// You type your API key into ChatGPT...
client = openai.OpenAI(api_key=sk-proj-a8f3...x9z2)
↓ NoHack intercepts ↓
// ChatGPT sees this instead:
client = openai.OpenAI(api_key=[OPENAI_KEY])
↓ You copy the response & paste ↓
// Your real key is silently restored:
client = openai.OpenAI(api_key="sk-proj-a8f3...x9z2")
How it works

Three layers of protection

1

Type Protection

NoHack monitors your keystrokes system-wide. The moment you type an API key, it's instantly replaced with a safe placeholder like [OPENAI_KEY].

2

Clipboard Masking

Copy-paste a secret? NoHack catches it in the clipboard and swaps it with a placeholder before it reaches any app.

3

Silent Restore

When you copy AI-generated code containing placeholders, NoHack swaps them back to real keys. You paste working code, every time.

Detection

Secrets we catch

OpenAI
sk-proj-...
🤖
Anthropic
sk-ant-...
💳
Stripe
sk_live_...
🐙
GitHub
ghp_...
AWS
AKIA...
🔎
Google
AIza...
💬
Slack
xoxb-...
🔑
Generic
api_key=...
Security

Your keys never leave your Mac

All secrets are stored in the macOS Keychain, encrypted and locked to your device. NoHack runs entirely offline — no servers, no accounts, no telemetry. Everything happens locally, in real time.

Download NoHack