macOS menu bar utility that watches your Screenshots folder and instantly renames every new screenshot using AI vision.
macOS names screenshots Screenshot 2026-03-18 at 9.41.23 AM.png — completely useless when you're searching for something weeks later. Slug fixes that automatically.
The moment a new screenshot lands in your folder, Slug sends it to Gemini Vision AI and renames it to something meaningful — instantly, silently, in the background.
- Watches your Screenshots folder with zero CPU overhead
- Renames files instantly using AI vision (Gemini 2.5 Flash)
- Generates short, slug-friendly names like
figma-login-error.pngorstripe-invoice-march.png - Lives in your menu bar — no Dock icon, no UI to manage
- Shows your 8 most recent renames at a glance
- Launches at login, stays out of your way
- macOS 13.0 (Ventura) or later
- Homebrew
- A free Gemini API key — no credit card required
brew tap winner14/slug
brew install --cask slugSince Slug is not yet notarized, macOS will show a security warning on first launch.
To open it:
- Go to System Settings → Privacy & Security
- Scroll down to find "slug was blocked"
- Click Open Anyway
- Enter your password
This is a one-time step.
- Click the Slug icon in your menu bar
- Click Settings
- Paste your Gemini API key — get one free at aistudio.google.com
- Click Test to confirm the key works
- Set your Screenshots folder if needed (default:
~/Desktop) - Toggle Slug on
Take a screenshot (⌘⇧4) — it will be renamed within a second.
- Click the Slug icon in your menu bar
- The toggle at the top turns renaming on or off
- The Recent list shows your last 8 renames
- Click Settings to change your API key or watched folder
- Click Quit to stop Slug completely
To pause renaming temporarily, toggle the switch off. Slug will keep watching but won't rename until you turn it back on.
| Before | After |
|---|---|
Screenshot 2026-03-18 at 9.41.23 AM.png |
figma-login-error.png |
Screenshot 2026-03-18 at 11.02.47 AM.png |
stripe-invoice-march.png |
Screenshot 2026-03-19 at 2.14.09 PM.png |
github-pr-review-comments.png |
Screenshot 2026-03-19 at 4.55.31 PM.png |
slack-standup-thread.png |
Screenshot 2026-03-20 at 8.30.12 AM.png |
xcode-build-failure.png |
brew uninstall --cask slugYour screenshots folder and existing files are left untouched.
A few things to check:
- Make sure the toggle is on in the menu bar
- Confirm your Gemini API key is saved — open Settings and click Test
- Check that Slug is watching the right folder — macOS saves screenshots to
~/Desktopby default unless you've changed it in Screenshot app settings
To check where your screenshots go: open the Screenshot app (⌘⇧5) → Options → Save to.
See the First launch section above — go to System Settings → Privacy & Security → Open Anyway.
- Make sure you created your key at aistudio.google.com and not Google Cloud Console
- Keys created in Google Cloud Console start with 0 quota — AI Studio keys come with a free tier pre-configured
- Check that your Mac has an active internet connection
Gemini Vision reads the visible content of the screenshot to generate the name. Very sparse screenshots (blank pages, solid colors) may get a generic name. This will improve as the AI model improves.
Your Gemini API free tier may have hit its daily limit (1,500 requests/day on the free tier). Usage resets every 24 hours. You can check your usage at ai.dev/rate-limit.
Slug uses two things:
FSEventStream watches your Screenshots folder at the OS level — zero polling, zero CPU usage at idle. The moment macOS writes a new file matching the default screenshot naming pattern (Screenshot *.png), Slug is notified within milliseconds.
Gemini Vision AI receives the screenshot as a base64-encoded image and returns a short, descriptive, slug-friendly filename. The image is resized before sending to keep API usage low. The response is sanitized to ensure it's a valid filename before the rename happens.
Your API key is stored in macOS Keychain — never in plain text or UserDefaults.
- Swift + SwiftUI
- FSEventStream (folder watching)
- Gemini 2.5 Flash Vision API (AI naming)
- macOS Keychain (API key storage)
- ServiceManagement (launch at login)
- Auto-organize into subfolders by app or category
- Undo last rename from the menu bar
- Custom naming rules and prefix templates
- App Store distribution with notarization
- Support for JPEG and other screenshot formats
MIT