A lightweight macOS menu bar app that wraps any web-hosted chatbot in a native popover. Click the icon in your menu bar, chat with your bot, click away to dismiss. That's it.
Works with Zapier Chatbots, Botpress, Tidio, Intercom, Drift, or literally any chatbot that lives at a URL.
- Lives in the macOS menu bar (no Dock icon)
- Opens your chatbot in a native popover on click
- Right-click menu with reload, new conversation, open in browser, quit
- "New Conversation" clears all session data for a fresh start
- External links open in your default browser
- Files the bot serves download to
~/Downloadsand get revealed in Finder - Follows light/dark mode, including live switches
- Universal binary (Apple Silicon + Intel)
- Auto-starts at login via LaunchAgent
- Optional code signing for the app and installer package
git clone https://github.com/NYCesar/MenuBarBot.git
cd MenuBarBot
cp config.sh.example config.shOpen config.sh and set your chatbot URL:
BOT_URL="https://your-chatbot.zapier.app/"
APP_DISPLAY_NAME="My IT Bot"
APP_NAME="MenuBarBot"
APP_IDENTIFIER="com.yourorg.menubarbot"
APP_VERSION="1.0"config.sh is gitignored, so your internal bot URL stays out of the repo.
chmod +x build.sh
./build.shThis compiles a universal binary, creates a .app bundle, and packages everything into a .pkg installer.
open build/payload/Applications/MenuBarBot.appOr install the package:
sudo installer -pkg build/MenuBarBot-1.0.pkg -target /All configuration lives in config.sh. Edit once, and the build script, uninstall script, and all packaging pick it up automatically.
| Variable | What it does | Example |
|---|---|---|
BOT_URL |
The URL your chatbot is hosted at | https://mybot.zapier.app/ |
APP_DISPLAY_NAME |
Name shown in the popover title, tooltip and About dialog | My IT Bot |
APP_NAME |
Internal name (no spaces) — used for the binary and .app bundle | MyITBot |
APP_IDENTIFIER |
macOS bundle identifier | com.yourcompany.itbot |
APP_VERSION |
Version string | 1.0 |
| Variable | What it does | Default |
|---|---|---|
APP_COPYRIGHT |
Copyright line in the About dialog | empty |
POPOVER_WIDTH |
Popover width in pixels | 420 |
POPOVER_HEIGHT |
Popover height in pixels | 640 |
MIN_MACOS_VERSION |
Minimum macOS version (14 = Sonoma) | 14 |
PERSISTENT_SESSION |
Keep cookies and local storage between launches | false |
SIGNING_IDENTITY |
Developer ID Application identity for the .app | empty (unsigned) |
INSTALLER_IDENTITY |
Developer ID Installer identity for the .pkg | empty (unsigned) |
By default the web view uses an in-memory data store. Nothing touches disk and every launch starts clean, which is the right default for a shared or kiosk Mac.
The tradeoff: if your bot sits behind SSO, users re-authenticate on every launch. Set PERSISTENT_SESSION=true to keep the session. "New Conversation" wipes everything either way.
Use https://. App Transport Security stays fully enabled for HTTPS bots.
If you set an http:// URL, the build adds an ATS exception scoped to that one host and prints a warning. It does not turn on NSAllowsArbitraryLoads, so cleartext is never permitted for anything else the page loads.
Unsigned builds install and run fine, which is why signing is optional. But macOS treats an unsigned app's permission grants as disposable, so users can get re-prompted after every update, and Apple keeps tightening what unsigned code is allowed to do.
Find your identities:
security find-identity -v -p codesigningThen set them in config.sh:
SIGNING_IDENTITY="Developer ID Application: Acme Inc (AB12CD34EF)"
INSTALLER_IDENTITY="Developer ID Installer: Acme Inc (AB12CD34EF)"The build signs the app with the hardened runtime and a secure timestamp, then signs the resulting package with productsign. If either value is empty, that step is skipped and the build tells you so.
Packages deployed through Jamf don't need notarization, since they aren't quarantined. If you plan to distribute the .pkg any other way (email, a download link, Self Service with a direct URL), run it through notarytool afterward.
To use your own icon instead of the default SF Symbol:
- Create a folder called
AppIcon.iconset/in the project root - Add PNG files at these sizes:
icon_16x16.png (16x16)
icon_16x16@2x.png (32x32)
icon_32x32.png (32x32)
icon_32x32@2x.png (64x64)
icon_128x128.png (128x128)
icon_128x128@2x.png (256x256)
icon_256x256.png (256x256)
icon_256x256@2x.png (512x512)
icon_512x512.png (512x512)
icon_512x512@2x.png (1024x1024)
The icon_32x32.png is also used as the menu bar icon. If you want a different menu bar icon, you can replace menubar_icon.png in the built .app bundle.
The build script will automatically detect AppIcon.iconset/ and compile it into an .icns file. If the folder isn't there, the app falls back to an SF Symbol.
The build script outputs a .pkg file that's ready to upload to Jamf.
- Go to Settings → Computer Management → Packages → New
- Upload
build/MenuBarBot-1.0.pkg(or whatever yourAPP_NAME-APP_VERSIONis)
- Go to Computers → Policies → New
- Set it up:
- Display Name: Install MenuBarBot (or your
APP_DISPLAY_NAME) - Trigger: Recurring Check-in (and/or Enrollment Complete)
- Frequency: Once per computer
- Packages tab: Add your
.pkg→ Action: Install - Maintenance tab: Check "Update Inventory"
- Scope: All Managed Clients, or a Smart Group targeting specific machines
- Display Name: Install MenuBarBot (or your
The jamf/ea_version.sh script reports the installed version back to Jamf. This lets you build Smart Groups to target machines that need updates.
- Go to Settings → Computer Management → Extension Attributes → New
- Set Data Type to String, Input Type to Script
- Paste the contents of
jamf/ea_version.sh - Important: Update the
APP_IDENTIFIERvariable in the script to match yourconfig.sh
The script finds the app by bundle identifier rather than by path, so it keeps reporting correctly even if someone renames the .app.
Example Smart Group criteria:
MenuBarBot Versionis not1.0→ machines needing an updateMenuBarBot Versionis (blank) → machines without it installed
In your policy, go to the Self Service tab and enable "Make available in Self Service." Set a category, icon, and description so users can install it themselves.
- Go to Computers → Policies → New
- Add
uninstall.shas a Scripts payload (not a package) - If you're running it through Jamf (where
config.shisn't available), pass the app name and bundle ID as script parameters:- Parameter 4: Your
APP_NAME(e.g.,MyITBot) - Parameter 5: Your
APP_IDENTIFIER(e.g.,com.yourcompany.itbot)
- Parameter 4: Your
The uninstaller removes the app and LaunchAgent, forgets the installer receipt with pkgutil --forget (so receipt-based Smart Groups stop reporting the machine as installed), and clears the per-user WebKit caches the app leaves behind.
MenuBarBot/
├── config.sh.example # Template — copy to config.sh and edit
├── config.sh # Your configuration (gitignored)
├── MenuBarBot.swift # Main app source
├── Config.swift # Dev defaults; build.sh generates its own
├── build.sh # Build + package script
├── uninstall.sh # Uninstall script (local or Jamf)
├── jamf/
│ └── ea_version.sh # Jamf extension attribute script
├── AppIcon.iconset/ # (optional) Your custom icon PNGs
├── LICENSE
└── README.md
The app uses AppKit's NSStatusItem for the menu bar icon and NSPopover with a WKWebView to display your chatbot. No Xcode project, no SwiftUI, no storyboards — just Swift files compiled with swiftc.
Configuration is compiled in, not read at runtime. build.sh reads config.sh and generates a build/Config.swift containing properly escaped Swift literals, then compiles that alongside MenuBarBot.swift. The sources in the repo are never modified, so they stay valid Swift you can open in an editor or compile directly:
swiftc -framework Cocoa -framework WebKit MenuBarBot.swift Config.swift -o MenuBarBotThat uses the development defaults in the repo's Config.swift, which build.sh ignores entirely.
The LaunchAgent (/Library/LaunchAgents/) ensures the app starts automatically when any user logs in. It's installed to /Library/LaunchAgents/ (not ~/Library/LaunchAgents/) so it works for all users on the machine.
- Minimum: macOS 14 (Sonoma)
- Tested: macOS 15 (Sequoia), macOS 26 (Tahoe)
- Architecture: Universal (arm64 + x86_64)
The app uses NSStatusItem, NSPopover, and WKWebView — all stable, non-deprecated AppKit/WebKit APIs that have been around for over a decade. No private APIs, no undocumented behavior.
Anything with a URL works. Some platforms we've tested:
- Zapier Chatbots
- Botpress
- Tidio
- Intercom
- Drift
- HubSpot Chatbot
- Any custom web app or internal tool
MIT — do whatever you want with it.