Skip to content

Using the UI

devhub

The admin UI is available in Traditional Chinese, English, Japanese and Korean (see the language menu in the header). Button and label names in this page use the English UI.

Service matrix

One row per service, showing state (● running/● occupied/○ stopped), port and worktree, with start, stop, restart and logs. The worktree has no column of its own: the full branch name sits under the name (wrapping when long, with the main checkout marked). Services of the same project are grouped under a project row (click ▾ or the empty part of the row to collapse/expand it; the state is kept in the browser’s localStorage, and clicking a branch, a button or while selecting text does not toggle it). The branch appears only on the project row, which can apply a worktree or start/stop everything at once; services that need no worktree, such as containers, show no branch. Its buttons follow the state of its child services (see the button table under Stacks).

  • Start and stop a service: pick a worktree on the service row, then press “Start”. “Stop” ends the whole process group, and “Restart” = stop the old one and start a new one. When another process holds the port the row shows “Occupied” and you can press “Take over” (SIGTERM first, with the same wait deadline as “Stop”, then SIGKILL on timeout; ports held by system processes cannot be taken over).

  • Service editor: add, edit and delete services, see Managing stacks and services.

  • Scheduled restart: when a service has restartAt and is running, its state shows “Next restart 04:00” underneath; set the times in the “Scheduled restart” section of the service editor. The rules (only running services are restarted, skipped while an agent holds a claim, missed times are not made up) are in configuration.md.

    Next restart

  • Open the service’s site: while a service is running (including “In use”), the Actions column has “Open”, which opens the service in a new tab: the proxy URL (HTTPS first) when the service has a proxy path and the proxy is listening, otherwise http://localhost:<port>/.

  • Who is using it: the line under the state shows who touched the service. Agent operations and claims read like “Claude Code · feature/checkout · 3m ago”: which agent (the CLI recognizes Claude Code, Codex and Antigravity from its environment; MCP uses the client name) and which worktree it came from (shown as the branch). An “In use” service gets another line for the process holding the port: pid, process name and the worktree its working directory is in. When an agent claims a service, the next line shows the reason it gave (for example “testing the login flow of PR #60”), truncated when long; hover for the full text. A claim without a reason takes no extra line, and hovering the lock shows “No reason given”. Hover to see everything: the full worktree path, the session, the claim reason and when the claim was made (on Windows the working directory of an outside process can’t be looked up, so only pid and name show). Records left by an older CLI don’t have this information and still show just the actor.

    Service rows showing who is using each service and the Open button

Stop deadline and force stop

“Stop” sends SIGTERM first and waits until the whole process group has ended and the port is released. After stopTimeoutSec (default 10 seconds; 1–300 in the service editor’s “Stop timeout”) it sends SIGKILL to everything. While waiting the state reads “Stopping Ns” and a “Force stop” button appears to SIGKILL immediately without waiting for the timeout. For Windows differences see windows.md.

worktree

Each service picks which worktree to run from; after changing it, press “Restart” to stop the old one and start from the new worktree on the same port.

  • Switching worktrees: click the branch under a service (or project) name to open the switcher. It lists only this project’s own worktrees (each project names its worktrees differently); each entry shows the full branch name, the folder path, whether it has uncommitted changes, whether an agent has claimed it (with the reason) and the time of its last commit, with a check mark on the one in use. Type to search branches or folders. Picking one records the choice (same as devhub service select); a running service is marked “Restart needed” and starts from the new worktree when you press “Restart”. Keyboard: ↑/↓ to move, Enter to pick, Esc to close; on a narrow screen the menu spans the full width. Uncommitted changes and the last commit time are fetched only when the menu opens (CLI: devhub worktrees --repo <name> --details).

    Worktree switcher

  • The worktree list refreshes in the background every 30 seconds (the page doesn’t wait for Orca) and once more as soon as the tab becomes visible again, so you don’t need to refetch after adding or deleting a worktree in Orca; you can still press “Refresh worktrees” (the header’s “More” menu) to fetch right away.

  • When the worktree a service selected has been deleted, the branch is marked “(no longer exists)” and keeps it selected rather than quietly choosing another; a running service is unaffected. When Orca fails temporarily, the previous list is kept and the header says so.

  • A service runs from a deleted worktree: when a service is still running but its worktree was deleted (the directory is gone, or Orca or repos no longer lists it), the branch on the service and project rows turns orange and is tagged “Worktree deleted” (hover for details), and the header gains an “N service(s) on a deleted worktree” pill that lists the affected services. While the worktree source is temporarily unreadable (Orca failed, stale list) only a missing directory counts, so nothing is reported by mistake. “Switch and restart…” asks which worktree to use (the main checkout by default) and confirms, or press “Stop”; the project row handles all its affected services at once. A service claimed by an agent needs an explicit override first, and both actions are written to the activity log with a note that the old worktree was deleted. On the agent side devhub status and the session-start hint point it out too; see agents.md. Deleted worktree warning

  • When a project has no worktree to choose from (no worktree source, or the project has none), the service rows and the project row show no branch.

    Service rows without a worktree source

  • When a project has several services, the branch on the project row applies to all child services at once. When the children have picked different worktrees, the project row shows “Mixed” and each child row shows its own branch to switch separately. To run a single child from a different worktree, use “Per-row overrides” on a stack card or devhub service select.

  • The worktree list always comes from git (Orca only adds names), see getting-started.md; add a repo devhub doesn’t know yet from “Repo list” in the header’s “More” menu, and repos are also discovered when an agent calls devhub from inside them.

  • The worktree initialization page: the worktree initialization button in the header opens a dedicated settings page with one card per project. There you can view and edit the project-level copy list (gitignore patterns) and the dependency strategy of each directory (auto, install, off), see which services have their own settings (“Edit” opens that service’s editor) and the merged, effective result of the two levels. “Fill in suggestions” works from each service’s cwd and envFile (paths only, never file contents; projects without services are folded at the bottom and not suggested for) and fills the form: config files and dependencies that belong to a single service go into that service’s service level (the service row shows “pending”), and the project level only gets items shared by several services or outside a service’s cwd; nothing is written until you press “Save”. “Fill in all suggestions” only fills projects that aren’t configured yet, and “Save N changes” writes every changed project at once. worktree initialization page

  • Initialization for a single service: the “worktree initialization” section of the service editor sets which files that service copies (gitignore patterns relative to the service’s working directory; a leading / means the project root) and its dependency strategy (follow the project level, auto, install, none); “Fill in suggestions” uses the form’s current project, cwd and envFile (unsaved is fine). It is merged with the project level, rules in configuration.md. worktree initialization in the service editor

  • Commands after initialization (run): the worktree initialization page (project level, runs in the worktree root) and the worktree initialization section of the service editor (service level, runs in the service cwd) each have a run field, one command per line; it runs once per worktree at initialization to supply local-only setup that can’t be copied (for example a tracked file whose edits are hidden with skip-worktree); for the rules and environment variables see configuration.md.

  • A new worktree lacks git-ignored config files and node_modules: when the project has worktreeInit, the first time a service starts in that worktree it is filled in from the main checkout automatically (config files copied, node_modules linked or installed), see configuration.md; the log shows what was done (paths only).

Health state

For a service with healthcheck, the state column shows starting/healthy/unhealthy after “Running” (unhealthy is orange; hover for the last error). The service editor’s “Dependencies” and “Readiness probe” fields correspond to configuration.md; processes and containers share one readiness model. ready in devhub status --json is the unified readiness flag.

Health state

Stacks

On a stack card, “Start” starts the members in parallel along the dependency graph (members with no dependencies, or whose dependencies are ready, start together and each waits for its own port; at most stackConcurrency at once, default 4, see configuration.md). If a member times out or its process exits first, the services that depend on it don’t start and the UI shows why they were blocked, while unrelated members finish as usual; set dependsOn where order matters, see configuration.md. Several stacks can run at once and shared members run only once. When a member is in use by another running stack with a different worktree, the UI lists the conflict for you to choose: the default is “Switch to the new worktree and restart” (you already chose it on the card), or choose “Keep the current worktree, don’t switch”.

Stack conflict panel

The card is split by project: each section’s title is the project name and its branch (clicking it opens the same switcher; the choice applies to this card only and takes effect when you press “Start” or “Restart”), followed by the state of that project’s services: ones held by an outside process are marked “In use”, and ones claimed by an agent have a lock (hover to see who and why). Members that need no worktree, such as containers, go in the last section. To run one member from a different worktree, expand “Per-row overrides”.

Stopping, and the stop phase of a restart, run in parallel in reverse dependency order (downstream first), and members that still belong to other running stacks are kept. “Create from running services” saves the currently running services as a stack. Stack members can include other stacks; for the fields see configuration.md.

The main button on a card changes with member state, and project rows and stack cards use the same derivation (only child services with a start method configured are counted, and ones occupied externally count as running):

Member state Button
None running Start (“Start all” on a project row)
Some running Start the rest (n): starts only the n that aren’t running
All running “All running” (disabled) plus “Restart all” (same on a project row)

“Restart all” stops and restarts every member, taking over externally held ports first. When a start or restart finishes, a summary toast shows the result, for example “Started 2, skipped 5, failed 0”; open it to see each member’s reason (already running so skipped, reused the existing worktree, failure reason and so on).

Managing stacks and services

On the page you can add, edit and delete services and stacks, and the changes are written straight back to the config file. The service editor shows only the required fields by default: for a process, the type, identifier (key), project, working directory (cwd), start command (cmd), proxy path (path) and port; for a container, the type, identifier, container name, image, proxy path (path) and port; for compose, the project, project name and compose file. The other optional fields are grouped by topic into expandable sections, with the number of set fields next to the title (for example “Readiness and dependencies · 2”); a section that already has values opens automatically when you edit, and with the keyboard you Tab to the title and press Enter or Space to expand it. The sections are “Environment” (environment variables, envFile, requires, see Reproducible runtime environment), “Readiness and dependencies” (healthcheck, dependsOn, stop timeout; empty = the default 10 seconds), “Advanced routing” (including response header rewriting), “Prestart”, “Build” and “Container parameters” (containers), and “Display” (role and display name). Collapsing doesn’t change what is saved. The stack editor lets you drag or use ↑↓ to reorder members, and a member can be a service or another stack (marked “Stack”). For the validation rules applied before saving see configuration.md. You can still edit while a service runs, and the change takes effect at the next start; a service referenced by a stack or currently running cannot be deleted.

Path fields and “Browse…”

Every path field in the admin UI names its base in the label (relative to the project root, relative to the working directory, or an absolute path) and has a “Browse…” button. It opens a native dialog on the computer running devhub (osascript on macOS, PowerShell on Windows, zenity or kdialog on Linux; a browser cannot get the full path, so the server opens it for you) and returns only the path, never reading file contents. You can still edit the field by hand.

Field Where Base Picks
Working directory (cwd), working directory of a prestart step Service editor Project root (the worktree root) Folder
envFile Service editor Project root; the picked file is added as a new line File
copy (service level) Service editor, “worktree initialization” The service’s working directory; anything outside it starts with / (= project root) File or folder
copy (project level), deps directories Worktree initialization page Project root File or folder; directories are folders only
Compose file, build context Service editor With a project: project root; without: absolute path File; folder
env files, own certificate file, private key file, certificate directory Settings panel Absolute path (under your home directory) File; folder
  • Starting point and scope: in the service editor the dialog starts at the root of the currently selected worktree of the service’s project (the main checkout if none); if the field already holds a path inside the project it starts there. Picking something outside the project is refused with an explanation and nothing is written. The result is converted to the base in the table, so it stays valid on another computer or another worktree location.
  • After changing the working directory: when copy has entries relative to the working directory (not starting with /), the editor reminds you to re-check them as soon as the working directory changes (typed or picked).
  • No native dialog (no desktop, or zenity/kdialog missing): it says why and asks you to type the path.
  • Path links: the paths under the token label, the own-certificate files and the certificate directory in the settings panel are clickable and show the item in Finder/Explorer (only known paths in devhub’s configuration).
  • Fields that are not file paths: a service’s path is labelled “Proxy path (URL prefix)” in the UI. It is the URL prefix the HTTPS proxy uses to reach the service (for example /myapp-api) and has no browse button. build.file (relative to the context), container volumes, commands and environment variables are text and have none either.
  • These are UI-only features (POST /api/pick-path, POST /api/tls/pick-file); the CLI writes the path directly, for example devhub service update <service> --set cwd=src/Api.

Service editor: "Browse…" next to the working directory and path fields that name their base

Add a service: required fields only

Edit an existing service: sections with values open automatically

At the bottom of an existing service’s editor, the “Environment snapshot” button shows the snapshot only when pressed (press again to hide it): the service’s actual worktree, working directory, final environment variables with their source (sensitive values masked as ***), tool version checks and readiness probe. Look here first when a service won’t start. The CLI equivalent is devhub env <service>.

Stack editor

The title and the bottom button bar of every dialog (service editor, stack editor, worktree initialization, settings and so on) stay fixed: with long content only the middle area scrolls. The height follows the viewport, and the button bar wraps on narrow widths.

Settings dialog: title and buttons stay fixed, only the middle scrolls

For adding container services see containers.md.

prestart and rebuild

For the prestart fields see configuration.md. “Rebuild” on a service row forces every prestart step to run; if the service is running, it asks whether to restart after the build. When a process other than devhub holds the service (shown as “Occupied”), you can choose “Build and take over, restart” or “Build only”. A failed build never touches the existing service; when it finishes, a toast says whether it restarted, took over and restarted, or why it didn’t restart.

Logs

Child process output is written to .devhub/logs/<key>.log (overwritten on each start) and streamed live in the page’s “Log”. Because output goes to a file rather than a pipe, restarting devhub doesn’t interrupt child processes. The proxy log is in .devhub/proxy.log and records only paths, not queries or headers. .devhub/state.json records the pids this tool started, the worktree selected for each service, running stacks and the prestart records.

Docked log

  • The log docks at the bottom of the page without covering the list, defaulting to 45% of the window height (45vh); drag the handle at the top to resize between 120px and 80vh, and double-click the handle to return to the default. Each reopen starts at the default height.
  • The row you clicked stays in view and is marked with a colored bar on the left; when the log covers the row, the page scrolls automatically so the row stays visible.
  • The mouse wheel and keyboard (PageUp/PageDown, arrow keys, Space) act on the log and don’t move the page above it.
  • Press Esc or “Close” to hide it, and focus returns to the original button (when a dialog is open, Esc closes only the dialog). The proxy log opens from the popover of the header’s Proxy pill, and focus returns to that pill when it closes.

The header is always a single row: the brand on the left, status pills in the middle, and the language menu and icon buttons on the right. On a narrow screen (≤ 640px) the pills shrink to icons, and opening one still gives the full information.

Item Content
Proxy pill 443/80 listening state, the https://<host>/devhub/ URL, proxy log, and rebind (shown only when something is wrong)
Certificate pill Expiry date and remaining days, and renewal (needs a second confirmation); turns warning-colored at 14 days or less and error-colored at 3 days or less
Version tag Always shown next to the devhub title in the header (v0.12.1), also when the version check is disabled. Its popover shows the running version, the installed version (marked as needing a devhub server restart when it differs), the core version, and links to that version’s GitHub Release and changelog
New version pill Appears only when a new version exists (shows “New version x.y.z”) or the version check has failed 3 times in a row (shows “Version check failed” with the reason), and takes no space otherwise. The popover first lists “What’s new”: one row for each version between the running one and the new one (the newest is expanded and shows the version, a “Restart” mark for versions whose upgrade notes require a restart, and the title of each change, with a “Full notes” expander; long content scrolls inside the block, plus a “Full changelog” link; an installed version is read from CHANGELOG.md in its local version directory, while a remote-only version is fetched by the server’s background check and cached, the browser never connects out, and the section is simply hidden when it can’t be fetched), then explains the update steps for your install method and has “Check now”. The devhub server checks in the background once an hour; the browser doesn’t contact the remote. It only notifies and never updates or restarts automatically. The text comes in three kinds: “New version x.y.z” (the popover says whether no restart is needed or the devhub server needs one), “Restart server” (a new version is installed but its core changed; the popover has “Restart devhub server now”, and after you confirm, the server spawns an independent process that runs the same flow as devhub server restart: only the devhub server restarts, managed services are unaffected, the page shows that it is restarting and reloads by itself once the new server is ready; an instance not started by the devhub server command can’t be restarted from the UI) and “UI updated” (already swapped in; reload to apply, and the button reloads right away). “More → Check for updates” checks manually at any time. When a new version exists the popover also lists the plugin installed for each agent (version, used by the server, outdated); tick them and press “Update and restart” to run the official update commands for you, see Updating plugins from the admin UI. DEVHUB_NO_UPDATE_CHECK=1 turns it off
Podman/Docker pill Machine state and start/stop (affected containers are listed before stopping); hidden when there are no container services
Language menu 繁體中文, English, 日本語, 한국어, each shown in its own name; switching takes effect immediately without a reload. The default follows the browser language (any Chinese maps to Traditional Chinese, anything unrecognized falls back to English), and the choice is kept in the browser (devhub.lang in localStorage). Error messages from the server are still Traditional Chinese; common errors are translated by language and the rest are shown as they are (see development.md)
Activity log, worktree initialization, Settings Icon buttons on the right (with a tooltip and aria-label); for worktree initialization see worktree; for the Settings panel see https-proxy.md
“More” menu Browser notifications (next section); check for updates; refresh worktrees (the list already refreshes automatically every 30 seconds, so this is just a manual immediate refresh)

A pill’s state is always “shape plus text”: a dot = normal, a diamond = attention, a square = error, a hollow circle = not enabled. After opening a popover you can close it with Esc (focus returns to the pill) or by clicking outside, and it has aria-expanded. For design rules and tokens see development.md.

Browser notifications

After turning on “More → Browser notifications”, state changes are announced with system notifications while the tab isn’t in the foreground; in the foreground the page’s own toasts are used and nothing is notified twice. The browser permission is requested only the first time you turn it on, and the preferences (the switch and each item) are stored in that browser’s localStorage, not in the config file. Notification switch

Item When it fires
Service stopped unexpectedly Running became stopped, and nobody (UI, CLI, agent) issued a stop or restart
Start/operation failed A stack or project failed to start (including build failures, requires mismatches and dependency-not-ready messages), or an action you took on the page failed
Health state change healthy ↔ unhealthy; starting doesn’t count; changes caused by an action you just took on this page (within 30 seconds) aren’t notified
Stack fully ready A stack went from not fully running to fully running
Build finished A prestart/container build ended
New version available The header’s “New version” pill appeared (or the remote has another new version)
Operation blocked by a claim An operation hit another session’s claim; go back to the page to check
  • Multiple changes to the same service within 10 seconds are merged into the last one (the notification tag is the service key, so a new notification replaces the old), which avoids flapping spam. Clicking a notification focuses the tab and scrolls to that service; unexpected stops and failures also open the log, and a new version opens the new-version pill.
  • The state comes from the page’s existing 3-second polling; once notifications are on, the tab keeps polling in the background too (it doesn’t poll in the background when they are off). Browsers throttle timers in background tabs (Chrome drops to once a minute after about 5 minutes hidden), so notifications can be delayed by up to a minute. When you need instant notification, use an agent/the CLI’s devhub status instead.
  • Notifications are only sent while the page is open (no service worker, and no server push); close the tab and there are none.
  • Notifications need a secure origin: https://<host>/devhub/ (the proxy domain) or http://127.0.0.1/localhost. When unsupported or blocked, the switch is disabled and shows why; when blocked, change “Notifications” to allow in the site settings next to the browser’s address bar, then reload. Permission help
  • “Send test notification” always reports its result in the panel instead of failing silently: a blocked permission, an insecure origin, the browser refusing to create the notification (with its error), or the browser not reporting the notification as shown each explain why. Environment problems the browser can’t detect (the browser’s notifications turned off in macOS system settings, Focus mode, full screen) come with a checklist. The panel re-reads the permission when you switch back to the page, so no reload is needed.

AI suggestions

Off by default. Tick “Enable AI suggestions” in “Settings → AI suggestions” and read the consent terms first (the agent CLI runs on this machine, may read the project directory and system information, uses that agent’s quota, and which data is sent); it takes effect only after “Agree and enable”. Switching to another agent asks again, and you can revoke at any time.

Consent terms

Every page has a ✦ button in the bottom-right corner that opens the AI suggestions chat panel. Service rows, stack cards, the service editor, the stack editor and the settings panel also have a ✦ that opens the same panel with that service, stack or the proxy settings attached (shown as a 📎 chip you can remove). A failed service (failing health check, port in use, or its last start failed) shows a highlighted ”✦ Ask AI” with the question filled in. While the feature is off or not consented, the ✦ is still there and opens “Turn on AI suggestions” with the same consent terms.

Ask a question in one sentence and devhub calls the agent you picked (switch it in the panel header; by default the one that started devhub) and shows an explanation, steps and proposed config changes. You can ask follow-up questions: the earlier turns are sent along (up to 6 turns, about 8,000 characters, with secrets masked). Each change is a diff card: press “Apply” and confirm in the card, and only then is it saved through the usual save path. Existing env values are kept; press “Skip” for the ones you don’t want. The conversation is kept in this browser (localStorage) across page changes and reloads; + starts a new one. Drag the panel to move it (double-click the header to return it to the corner), press – to collapse it; on a narrow screen it goes full screen. Enter sends and Shift+Enter starts a new line (Enter while an input method is composing only confirms the text); Esc collapses. You can cancel while it runs, and if the agent is missing, too old or not logged in, you’re told what to do. Safety limits, CLI and MCP: agents.md.

Claude Code, Codex and Antigravity all work; when an Antigravity version cannot isolate MCP, the menu marks it “cannot isolate MCP”, disables it, and it cannot answer questions. Agents that aren’t installed or run an unsupported version are disabled too. If the agent you picked before can’t be used, the panel switches to a usable one (Claude Code first, then Codex, then Antigravity); if none can be used, the input box is disabled with install instructions. The agent can check the actual state only through devhub’s read-only tools (service status, port holders, log tails, masked config); it cannot start, stop or change anything.

AI suggestions chat panel

Activity log

Every state-changing operation (start, stop, restart, takeover, rebuild, creating/editing/deleting stacks and services, proxy settings, renewal, and claim creation/extension/release/expiry/override) is appended to audit.jsonl next to the config file; for the fields and rotation see agents.md.

Activity log

Automatic restarts and skips appear here too (actor “System”, “Scheduled restart” and “Scheduled restart skipped”).

The header’s “Activity log” opens a panel (using the same dock layout as the log) that you can filter by actor (all/UI/agent) and service; failures are marked red and times update automatically. The “last action source” on a service row (for example agent: claude · 2m ago) opens that service’s records directly when clicked; when an agent acts, the page pops up “Restarted by agent …”.

Refreshing after an update

The admin UI’s src/ui/index.html, .mjs modules and src/ui/tokens.css are revalidated with the server on every load (Cache-Control: no-cache plus ETag), so after updating devhub a reload gets the new version and old and new files are never mixed; only images use long caching.

UI updates don’t need a server restart: the server serves the UI files from the newest installed plugin version directory whose core is compatible; an open page that finds the UI newer than the one it loaded shows a “UI updated” pill and a toast in the header, and a reload applies it (it doesn’t reload automatically, so you don’t lose what you’re editing). A version with core changes isn’t swapped in live; the pill shows “Restart server” instead, see Does an update need a restart?.