Getting started
DevHub runs on Windows and Linux (Ubuntu / X11). The interface is currently in Chinese; this guide gives the English meaning next to each label.
Install
Download the latest version from GitHub Releases:
| Platform | File |
|---|---|
| Windows | devhub-*-setup.exe (installer, lets you pick a folder) |
| Linux | .AppImage or .deb (both support in-app updates) |
| Android | DevHub-*.apk (remote client for a running desktop) |
The installers are not code-signed, so Windows SmartScreen warns on first launch; choose More info → Run anyway.
To verify a download, compare it with SHA256SUMS.txt from the same release, or check its build provenance with the GitHub CLI:
gh attestation verify <file> --repo Delta1035/devhubAdd projects
There are two ways to add projects, both from the 添加 (Add) button in the sidebar:
- A single project: pick a project folder. Its scripts are listed on the right.
- A workspace (添加工作区): pick a folder that contains many repositories. DevHub finds the projects inside — any folder with
package.json,pom.xml,build.gradle(.kts),settings.gradle(.kts),go.mod/go.work,pyproject.toml/requirements.txt/Pipfile/setup.py/manage.pyor.devhub.yaml— and keeps the list in sync: new repositories are added when you rescan or switch back to the window. By default only direct subfolders are scanned; the workspace settings allow 1 to 5 levels.
Removing a project that belongs to a workspace excludes it from later scans; you can restore it in the workspace settings. A project whose folder disappears is kept and marked as missing, so switching branches or unplugging a drive does not wipe its history.
Run scripts
- Click a script's run button. Its output appears in a terminal tab in the panel below, where you can type input, search and click links.
- The script row shows the port the script uses and its health:
- starting until its ports accept connections (or its health path answers 2xx),
- ready while checks pass,
- unresponsive after three failed checks in a row.
- Stopping a script ends its whole process tree, including servers started by a wrapper such as
mvnworpnpm. - The history button lists the last 20 runs of the script, with their logs.
If a port is already taken when you start a script, DevHub tells you which process holds it before starting. For ports explicitly declared in .devhub.yaml, you can have DevHub stop the holder first; see Port conflicts. Inferred ports only report the conflict.
DevHub also detects:
- npm:
package.jsonscripts, run with pnpm / yarn / npm according to thepackageManagerfield or the lockfile; packages in a monorepo inherit the root's package manager. - Maven: common lifecycle goals, plus
spring-boot:runfor Spring Boot; multi-module builds get a start command per application module. - Gradle:
clean/build/test, plusbootRun/rundepending on plugins; multi-project builds are supported. - Go:
go.mod/go.work, withrun/build/test/tidyscripts for the root and eachcmd/<app>entry. - Python:
pyproject.toml,requirements.txtand friends; detects uv / poetry / pdm / pipenv / venv, extracts declared scripts and entry points, adds run / test / dependency scripts, and infers framework ports such as FastAPI / Uvicorn.
Commands it cannot detect go in .devhub.yaml.
Tray and quitting
Closing the window keeps DevHub in the tray with scripts still running; quitting DevHub stops every run. Settings can make closing the window quit instead.
Updates
The Windows installer, Linux AppImage, and .deb package check GitHub Releases for updates. Download and installation require confirmation; installing a .deb also requires administrator authorization. Existing .deb installations need one manual upgrade to a version with this feature.
