Chapter 35
The menu bar app
Dozable's daemon is the background process that runs your sandboxes.
On this page
Dozable's daemon is the background process that runs your sandboxes. The menu bar app, Dozable.app, puts it in your Mac's menu bar: whether it is running, which version, how many sandboxes are up — and Start, Stop, Restart and Open Dashboard, one click each, and Start at Login. It has no chat and no settings of its own; everything else is doz and the dashboard.
It comes with doz (Homebrew and the release tarball carry it) and does nothing until you install it.
Install it#
doz app installThis copies the app that came with your doz into /Applications (into ~/Applications when you cannot write to /Applications). Then open Dozable from Finder, Launchpad or Spotlight — or install and open in one go:
doz app install --openIt has no Dock icon and no window: look for its icon in the menu bar, at the top right of the screen. It is signed and notarised by Dozable, so macOS opens it without a warning.
doz app install checks the copy before it installs it (its signature, that it is Dozable's, that it is the version of your doz) and then swaps it in whole — a copy that is already running keeps running the version it started with until you open it again. --dest DIR installs it somewhere else.
What the menu shows#
The first line is the daemon's state:
| the menu says | what it means |
|---|---|
| Dozable is running · 0.50.7 | It runs, and this is its version. The next line says whether it stays running with nothing open ("Always on") and how many sandboxes run. |
| Dozable is stopped | Nothing runs. Start Dozable, or any doz command, starts it. |
| Dozable is stopped until a doz command starts it | You stopped it with doz daemon stop (or the menu): it stays stopped until you start it — "or your next login" when a login item starts it at login. |
| Dozable was started from ssh — it cannot read your Keychain | It was started over ssh, where your login Keychain is locked, so it cannot use your Claude login. Restart Dozable starts a new one from your desktop session, which can. |
| Dozable runs an older build (0.50.6) — Restart to update | doz was upgraded while the daemon ran. Restart Dozable switches to the new version. |
| doz is not installed | The app found no doz (it looks at /opt/homebrew/bin/doz, /usr/local/bin/doz and ~/.local/bin/doz). How to Install doz… opens this manual's install page. |
| doz 0.50.3 is older than this app needs | Upgrade doz (doz upgrade -y). Meanwhile the menu still shows the state and offers Start, Stop, Restart and Open Dashboard. |
The icon is Dozable's toy bulldozer; its rear wheel is a light that shows the state:
| the wheel | what it means |
|---|---|
| green | The daemon runs. |
| amber | An agent needs you: it stopped restarting, waits for your consent or its account, or asks a question only you can answer. The line under the first says which; choosing it opens the dashboard. |
| grey (the icon dimmed) | The daemon is stopped. |
| red | Something needs attention: a Restart is due, the state cannot be read, or there is no doz. The menu's first line says what. |
| none | The app has not read the state yet (a moment after it opens). |
The icon is drawn for a light and a dark menu bar, and follows when the menu bar changes.
What it does#
- Start Dozable — the same as
doz daemon start. - Stop Dozable… — the same as
doz daemon stop. When sandboxes are running it asks first: they hibernate, and wake when you use them again. Sessions on this Mac keep running. - Restart Dozable — the same as
doz daemon restart: stop (sandboxes hibernate), then start on the current version. - Open Dashboard — the dashboard in the app's own window: one window, reused and brought forward each time, so copies never pile up as browser tabs. The first time, the app starts the dashboard if it is not running (without opening a browser tab) and signs the window in once with a one-use link from doz; the sign-in is then kept, so later opens just show the page. If the window cannot be signed in or the dashboard cannot be reached, the window says why. Links that leave the dashboard open in your browser. The window remembers its size and place; Cmd-W closes it and Cmd-Q quits the app. When you quit the app, a dashboard it started for its window stops once no page of it is open (at once when none is); a dashboard you started yourself keeps running. Only one copy of the app runs at a time: opening it again brings the running one forward. It needs doz 0.60.10 or later; with an older doz, Open Dashboard opens your browser as before.
- Open in Browser — the same as
doz ui --detach --open: the dashboard opens in your browser, signed in. The sign-in link goes straight from doz to your browser. - When the app is busy — while one of its actions runs (a start, a stop, opening the dashboard), the menu says what it is doing, and a click on another item says so instead of doing nothing. An action that does not finish in time frees the menu and says what did not finish.
- Start at Login — see below.
- Open Menu at Login — the menu itself comes back when you log in, even when the daemon's Start at Login is off. It is on by default: the first time you open the app from Applications (after
doz app installor onboarding put it there), it adds itself to your login items, and macOS says so once. Click it to turn it off; that choice is kept, and so is removing Dozable in System Settings › Login Items. The dev build never adds itself. - Workspaces — your workspaces, the ones waiting on you first, each with its state in the dashboard's words ("waiting on you", "working", "idle", "asleep", …). Under each: Open (its page in the dashboard's window — with an older doz, the same as
doz ui open NAME) and Sleep or Wake, whichever its state allows (the same asdoz workspace sleep NAME/doz workspace wake NAME). The menu lists the first ten; All Workspaces… opens the Workspaces page. It needs doz 0.60.8 or later; with an older doz the section is not shown. - Quit Dozable Menu — quits the app only. The daemon and your sandboxes keep running.
The app runs doz for each of these, so it does exactly what the command does — including refusing what the command refuses (it shows doz's reason in the menu). It never starts the daemon just by looking: the state is read with doz daemon status, which never starts one.
The menu refreshes when you open it (and every two seconds while it is open), once a minute while it is closed, when your Mac wakes, and after every action.
Start at Login#
One switch for both: with Start at Login checked, the daemon starts when you log in (from your desktop session, so it can read your login Keychain) and the menu comes back too. Nothing is set up until you click it.
The first time, macOS shows a notice ("Login Item Added") and lists Dozable under System Settings › General › Login Items & Extensions. At login, and every 15 minutes after, the app runs the same short doz command doz's own login item runs: it starts the daemon if none runs (and you did not stop it), then exits. The daemon itself is never a login item.
| the menu says | what it means |
|---|---|
| ✓ Start at Login | On. Click to turn it off (the daemon keeps running; it just will not start at your next login). |
| Start at Login | Off. Click to turn it on. |
| ✓ Start at Login (set by doz) | doz's own login item starts the daemon (doz daemon login-item on). Click to let the app hold it instead: the app's item replaces doz's, and the menu comes back at login too. |
| Start at Login — needs approval: Open System Settings… | Dozable is switched off under System Settings › Login Items (or macOS waits for your OK). Click to open that page and switch it on. |
| Start at Login — open the copy in Applications (doz app install) | This copy runs from somewhere else (a download, Homebrew's folder). macOS keeps a login item only for an app that stays in one place: run doz app install and open the copy in Applications. |
| Start at Login — needs doz 0.50.8 | Your doz is older than this needs. Upgrade doz (doz upgrade -y). |
There is only ever one login item for the daemon: when the app holds it, doz removes its own, and doz daemon login-item says "the Dozable menu bar app starts the daemon at login". Turning Start at Login off, or removing the app (doz app uninstall), gives it back to you: doz daemon login-item on adds doz's own again. If you delete the app yourself without doz app uninstall, macOS may keep its login item listed (it does nothing without the app) — switch it off in System Settings; doz daemon login-item on works again either way.
Start at Login uses the default store (the one doz uses with no --store) and the doz installed by Homebrew or in ~/.local. A Dozable release runs only a doz signed by Dozable.
Updates#
The app updates with doz. After doz upgrade (or brew upgrade), the menu shows the new version and then offers Update Menu Bar App (old → new): it installs the copy that came with the new doz and reopens the app. When a newer copy is already installed but the old one is still running (after doz app install without --open), the menu offers Restart to Update (old → new) instead: it quits the running copy and opens the new one. The same, from Terminal:
doz app install --openHomebrew updates doz and the copy that comes with it, never the app in Applications. So after an upgrade the first doz command you run in Terminal says once when the installed app is older ("the menu bar app in /Applications is 0.60.10, older than doz 0.60.11 — doz app install --open updates it"), and doz app status and doz doctor say it every time until it is updated.
--open quits any older copy of the app that is running, wherever it was opened from, before it opens the new one. If the old one does not quit, it says so and opens nothing (macOS would only bring the old one forward): choose Quit in its menu, then open the new one.
Remove it#
doz app uninstallThis turns Start at Login off when it was on, quits the app and removes it from /Applications (and ~/Applications). The daemon keeps running. doz uninstall, which removes all of Dozable, removes the app too.
Where to look#
doz app status # the copy that came with doz, where it is installed, whether it runsThe app writes one line per doz command it runs to the system log — the command and its result, nothing else. To read it: log show --predicate 'subsystem == "com.dozable.app"' --last 1h.
From an ssh session you can see what the menu would show without the screen, and Start at Login as macOS reports it:
/Applications/Dozable.app/Contents/MacOS/Dozable --dump-menu
/Applications/Dozable.app/Contents/MacOS/Dozable --login-status
launchctl print gui/$(id -u)/com.dozable.app.daemon | head -20
doz daemon login-item # who starts the daemon at loginNot yet#
- It shows the default store only (the one
dozuses when you give it no--store).
Edit this page on GitHub · Chapter 35 of 50