devhub v0.27.0

Local dev tooling forAI-agent-driven development:you just ask

devhub is a Node program that runs on your machine. Claude Code, Codex and Antigravity start, restart and stop services directly through MCP, CLI or a skill, switch which worktree a service runs from, and claim services so other agents can’t switch them away; you just ask. All services sit under one HTTPS domain, so the URL an agent verifies is the one you see, and the web UI shows you what the agent did.

  • dev.example.com/shop:5602 frontend
  • dev.example.com/shop-api:5601 backend
  • dev.example.com/devhubadmin UI
devhub main screen: stack cards on top, and below them a service matrix listing each service’s path, port, worktree and running state.

Five snags in agent-driven development

An agent has to verify its own changes; without these, a person ends up doing it by hand.

What devhub lets an agent do

Almost everything you can do in the UI has a CLI and MCP counterpart (deliberate exclusions are listed in the docs), and the agent and you see the same state.

MCP, CLI, skill, claims and audit for agents

An agent works through MCP, CLI or a skill: restart all the services of a worktree or just one (specify it by service name, port or proxy path), start and stop stacks, read status and logs, and switch which worktree a service uses (it asks you first when that affects running services). A claim says why (for example "testing the login flow of PR #60"), so you and any agent it blocks can see what it is doing.

devhub restart --here --json
devhub restart 5411
devhub restart /webApi --here
devhub logs demoapi --tail 100
exit codeMeaning
0Success
1Failure (including not found, or matching several services)
2Usage error
3Conflict; confirm, then add --force-switch
4Cannot reach devhub
5Claimed by another session; cannot be overridden

Installing the plugin brings the skill, the CLI and the MCP server (devhub mcp) together, with no manual registration in Claude Code, Codex or Antigravity; Claude Code also gets /devhub:restart, /devhub:status and /devhub:logs. Starting or restarting with --here claims the services automatically, so other sessions can’t stop, restart or switch them away, and --wait-claim waits for the holder to release. Every operation records its actor and can be reviewed in the “Activity log”; env values in service configs are masked from agents by default.

Activity log panel docked at the bottom of the screen, listing operations from agents and the UI; failed operations are marked red with the reason.

Service matrix

One row per service showing state, port and worktree, with start, stop, restart and logs. Services of the same project are grouped under a project row. The full branch name sits under each project name; click it to see only that project’s worktrees, with uncommitted changes, agent claims and the last commit time.

Worktree switcher: the worktrees of acme-shop, with a check mark on the branch in use, uncommitted changes and the agent’s claim reason marked, and the last commit time of the other branches.

One-click stacks with conflict protection

An agent starts a whole group with one command (devhub stack start): a group of services starts in parallel along the dependsOn graph: services with no dependencies start together, each waiting for its own port, downstream services start only once their dependency reaches service_healthy, and a failure blocks only its downstream. Services without dependsOn between them are treated as independent and start together. Stacks can include other stacks, shared members run only once, and when worktrees differ the conflicts are listed for you to choose, defaulting to the worktree you just picked.

Stack editor: the Everything stack contains the Shop and Billing stacks and the Docs Site service, in order; drag to reorder.

Service dependencies and health checks

Services declare dependencies and conditions with dependsOn (service_started, service_healthy); startup follows the dependency graph and detects cycles. If a dependency is unhealthy, downstream services don’t start, and devhub tells you which dependency is stuck and on what. healthcheck supports http, tcp and exec, with interval, timeout, retries and a start grace period, and the result is shown continuously in the UI and in devhub status --json. Field names follow docker compose; without one, the old port-only behavior is kept. Container services can set healthcheck too (exec runs inside the container, http/tcp connect from the host to the published port); the old readyCmd field is an alias of healthcheck.exec. Processes, containers and compose all expose the same “ready” state (ready and health in devhub status --json).

Service matrix: Shop DB and the backend are healthy; the frontend’s health check keeps failing, so it shows unhealthy.

Reproducible runtime environment

A service can read .env through envFile (relative to the worktree, merged with env, which wins) and declare tool versions with requires (for example {"node": ">=22"}). Versions are checked before startup; on a mismatch the service does not start and devhub suggests how to switch with nvm, fnm, mise or asdf. It never installs anything. Without requires, devhub also reads .nvmrc, global.json, .tool-versions and mise.toml; mismatches there only warn in the log. devhub env <service> (also the UI’s “Environment snapshot” and MCP) shows the service’s actual cwd, environment variables (sensitive values masked, with their source) and tool versions, which makes problems easy to reproduce or hand to an agent. devhub only checks and never pins the toolchain; to pin even compilers and system packages, use devenv (Nix). The env values of a service’s config are masked by default in the API and in devhub service show; add --reveal only when you need the originals.

nodedotnetpythongojavarubyrustdenobunpnpmyarnnpmphp

mise.toml.mise.toml.tool-versions.nvmrc.node-versionglobal.jsonDocs: full reference

Environment snapshot at the bottom of the service editor: worktree, cwd, envFile, version checks for node and go (a go mismatch is explained in red with a suggestion), and environment variables from .env, .env.local and the config’s env, with passwords and tokens masked as ***.

Worktree switching and auto-detection

Pick a worktree per service, then press “Restart” and it comes up from the new directory on the same port; an agent can name the worktree through the CLI or MCP too (--here uses the worktree it is in). The list comes from git (Orca adds names when present), includes worktrees Claude Code or Codex created with git, and refreshes in the background every 30 seconds.

prestart and rebuild

Runs npm ci and builds automatically before startup, and can be limited to when the relevant files changed. “Rebuild” forces a rerun, and a failure never touches the running service.

Settings panel

“Settings” in the header adjusts the domain, DNS provider and token without hand-editing JSON. The token is write-only and never appears on screen or in logs.

AI suggestions (off by default)

The ✦ in the corner or next to a service opens a chat panel where Claude Code, Codex or Antigravity on your machine answers config questions; changes are shown as a diff and written only when you press "Apply". The agent gets only devhub's read-only MCP (status, port holders, log tails, masked config) with every other MCP server off, so it can't start, stop or change anything. Needs your consent to turn on.

Docked logs

Logs dock at the bottom of the page without covering the list; the row you clicked stays visible and highlighted.

Logs docked at the bottom of the screen, with the service list still visible above.

Built-in reverse proxy and Let's Encrypt

One process listens on 443/80 and forwards to each service by path prefix. Pick one of three certificate options. Let's Encrypt is recommended (DNS-01 with automatic issuance and renewal: DuckDNS if you have no domain, Cloudflare if you have one, and no sudo on macOS or Windows). When you're offline or your company network blocks outbound access, use a local CA that devhub generates itself (no domain or token needed; you trust the root CA once). Or bring your own certificate files. No separate Caddy or nginx. Each route can optionally use a subdomain (such as api.dev.localhost, alongside path prefixes), prefix stripping or rewriting, request and response headers added or removed, and a timeout. HTTP/2 is supported on the browser side, WebSocket (including HMR) and SSE are forwarded correctly, and when a backend isn’t running you get an explanation page instead of a bare 502. Routes without these options behave as before.

Proxy and certificate settings panel: certificate mode (Let's Encrypt, local CA, your own certificate), DNS provider, token and a connection test.

Edit services and stacks in the UI

Add, edit and delete services and stacks right on the page. devhub checks that path and port don’t conflict before saving, and writes straight back to the config file. The edit form shows only the required fields by default; optional ones are grouped by topic into expandable sections.

Service editor: by default only type, key, project, cwd, cmd, path and port; the other optional fields are collapsed into expandable sections (environment, readiness and dependencies, advanced routing, prestart, display), each showing how many fields are set; sections with values open automatically.

Podman/Docker containers

Existing containers, compose projects and process services sit in the same list. A container can also set build (for example "build": "./api") to build from a Containerfile or Dockerfile; if the context is unchanged it isn’t rebuilt, and build output goes to the log panel and can be cancelled. Put them in a stack and have the API dependsOn the database, so it waits for it to be ready and wait for the port, the image’s health check or healthcheck (the old readyCmd still works). The podman machine starts automatically if it isn’t running; the header can start and stop the machine, listing affected containers before it stops. Logs, stop deadline and force stop, the CLI and the activity log are all supported. devhub never deletes your containers or volumes; it only removes stale, labeled containers it created itself.

Add container service: the required fields are container name, image, path and port; build (context, file, args, target) and container parameters (ports, volumes, environment, createArgs) are in expandable sections.

One process, three jobs

devhub is a reverse proxy, a management API and a process manager at once. Your services remain ordinary child processes whose output goes to files, so restarting devhub doesn’t interrupt them.

devhub architecture diagram The browser reaches devhub’s proxy over HTTPS, which forwards to each service by path prefix. The management API and process manager get worktrees from git (Orca adds names when present) and start the services; agents call the management API through the CLI or MCP; Podman or Docker containers and compose projects are started and stopped through the engine CLI. Browserhttps://domain/path agentdevhub CLI/MCP devhub Reverse proxy443/80 · path prefix · certs Management API + web UI127.0.0.1:4999 Process managerstart/stop · prestart · stacks Services (local ports) /shop-api → :5601 /shop → :5602 /billing-api → :5611 … from the chosen worktree git/Orcaworktree list Podman/Docker containersexisting containers · compose

The blue flowing line is the request path.

Four steps, details in the docs

Requires Node.js 20 or later and Git; runs on macOS, Linux and Windows (native).

  1. Install the plugin

    Agent-first, no clone needed. Pick the agent you use:

    Claude Code

    claude plugin marketplace add vantist/DevHub
    claude plugin install devhub@devhub

    Codex

    codex plugin marketplace add vantist/DevHub
    codex plugin add devhub@devhub

    Antigravity

    agy plugin install https://github.com/vantist/DevHub

    For updates see Updating; if you installed from the old source (a private GitLab) see Migrating from the old source. The server, CLI, MCP server and skill are installed together; no npm link needed.

    Docs: Using devhub with agents

  2. Start and first-time setup

    devhub server start

    Open http://127.0.0.1:4999. The first start copies the example into your config file:

    macOS/Linux
    ~/.config/devhub/services.json
    Windows
    %APPDATA%\devhub\services.json

    On the page click “Add service” and fill in the project, cmd, path and port; create a stack if you need one.

    Alternative: clone and run (good for working on devhub itself):

    git clone https://github.com/vantist/DevHub.git
    cd DevHub
    npm ci
    node devhub.mjs

    Connecting through a corporate proxy needs Node 22.21 (or 24.5) or later. The Orca CLI is optional: worktrees always come from git, and devhub discovers the repo an agent calls it from.

    Docs: Installation and first-time setup

  3. Let an agent restart services

    devhub restart --here --json
    devhub restart 5411
    devhub restart /webApi --here

    Docs: CLI commands

  4. HTTPS (optional)

    1. No domain? Use free DuckDNS (name.duckdns.org). Have one? Use Cloudflare and point its A record to 127.0.0.1
    2. Get that provider’s token
    3. Enter the domain and token in “Settings” in the header
    4. Once the certificate is issued, open https://domain/path

    Offline, or your company network blocks outbound access? In “Settings” choose “Local CA” (the fallback), use dev.localhost as the host name, then trust the root CA once with the command devhub ca trust prints. On Linux, binding 443/80 needs a one-time setcap or a high port, whatever the certificate mode.

    Docs: HTTPS setup

Updating

  1. Update manually

    Claude Code

    /devhub:update

    Or run these yourself; the new version applies after you restart Claude Code:

    claude plugin marketplace update devhub
    claude plugin update devhub@devhub

    Codex

    codex plugin marketplace upgrade devhub
    codex plugin add devhub@devhub

    It also upgrades automatically at startup.

    Antigravity

    agy plugin install https://github.com/vantist/DevHub

    Run the install command again to update; there is no auto-update.

    git clone

    git pull

    If devhub is already running, restart it only when the core changed (the update notice says so; your services are not affected):

    devhub server restart
  2. Migrating from the old source

    Up to 0.6.x the plugin was installed from a private GitLab, which no longer receives updates. Switch to GitHub; your config and services are not affected:

    Claude Code

    claude plugin marketplace remove devhub
    claude plugin marketplace add vantist/DevHub
    claude plugin install devhub@devhub

    Codex

    codex plugin marketplace remove devhub
    codex plugin marketplace add vantist/DevHub
    codex plugin add devhub@devhub

    Antigravity

    agy plugin install https://github.com/vantist/DevHub

    From 0.7.0 on, devhub plugin check and the SessionStart hook show these commands when the registered source isn't vantist/DevHub.

    Docs: Migrating from the old source

  3. Auto-update

    Off by default in Claude Code; run either one to turn it on:

    /devhub:update
    devhub plugin autoupdate on

    It goes by the plugin version number, so nothing updates unless the version was bumped. A failed background update gives no notice; devhub plugin check shows the reason.

  4. Does an update need a restart?

    Most updates don't need the devhub server restarted: the server swaps the admin UI in live and a page reload is enough; the CLI, MCP, hooks and skill are new processes every time anyway. Only core changes (process management, proxy, TLS, the management API) need a restart.

    A restart doesn't stop managed processes or containers; the new server adopts them from state.json (same pid), while the proxy and admin UI are briefly unreachable for a few seconds. The notice says "no restart needed, just reload the page" or "the devhub server needs a restart (your services are not affected)", and notes when an update converts the config format automatically (backed up first).

    Docs: Does an update need a restart?

  5. New-version check

    The SessionStart hook and a "New version x.y.z" pill in the admin UI header both notify you; they only notify and never update. The network is touched at most once an hour, and clones are checked too (except by the hook).

    The admin UI header shows a New version pill; its popover explains the update steps for your install method, with a Check now button.
    devhub plugin check

    Checks manually. To turn the check off, set the environment variable:

    DEVHUB_NO_UPDATE_CHECK=1

    Docs: Automatic updates

How devhub differs from similar tools

Each tool starts from a different place; most complement devhub rather than replace it.

✓ Yes Partial: available but limited or positioned differently ✗ Not offered in the official docs. Checked on 2026-11-27.
ToolMulti-service start/stopOrdered start/readiness checksworktree switchingHTTPS + custom domainPath-prefix routingContainer integrationWeb UIAgent CLI/claim/auditCross-platformInstallationLicense and maintenance
devhub✓ Service matrix, stacks✓ dependsOn dependency graph (service_started/service_healthy); healthcheck http/tcp/exec, with one shared readiness state for processes and containers; readiness only, no liveness and no auto-restart✓ Chosen per service (git, Orca optional)✓ Let's Encrypt DNS-01 (Cloudflare/DuckDNS), local self-signed CA, your own certificate✓ Path prefixes and subdomains; prefix stripping/rewriting, headers, timeouts✓ Existing containers and compose; containers can be built from a Containerfile/Dockerfile (content hash decides whether to rebuild); only removes containers it created✓✓ CLI, claims, activity log, MCP (16 grouped tools, each taking an action, behaving the same as the CLI; old tool names still work), new-version notice in the header; browser notifications while the page is in the backgroundPartial Three platforms; Windows still to be fully verifiedplugin or clone, Node 20+MIT (LICENSE)
Process and multi-service management
Foreman✓ Procfile✗✗✗✗✗✗✗Partial Ruby gem, no OS listgem install foremanMIT; last push 2025-07
Overmind✓ Procfile + tmux✗✗✗✗✗✗Partial Can restart a single processPartial Linux/BSD/macOS, no WindowsNeeds tmux firstMIT; v2.5.1 (2024-03)
PM2✓ Includes Node cluster load balancing✗✗✗✗✗Partial PM2+ cloud monitoringPartial CLI✓ Linux/macOS/WindowsnpmAGPL-3.0; v7.1.2 (2026-11)
dekit (formerly mprocs)✓ dekit.yaml✓ deps + ready (such as matching the log)✗✗✗✗Partial Terminal TUIPartial CLI for humans and agents✓ macOS/Linux/Windowsinstall script, npm, PyPIMIT; v0.10.3 (2026-10)
process-compose✓✓ depends_on + liveness/readiness✗✗✗✗ Positioned for non-container appsPartial TUI + REST APIPartial MCP server, REST API✓ Releases include Windows buildsSingle Go binaryApache-2.0; v1.124.0 (2026-10)
devenv✓ processes✓ Dependency order + readiness probe✗✗✗Partial Builds OCI images; doesn’t manage existing containers✗Partial MCP only looks up packages and optionsPartial Nix: Linux/macOS (including WSL2)Needs NixApache-2.0; v2.4.0 (2026-09)
Tilt✓ TiltfilePartial Has a resource-dependency guide✗✗✗✓ Kubernetes, Docker Compose✓ Tilt UIPartial tilt CLI✓ macOS/Linux/Windowsinstall script, Homebrew, ScoopApache-2.0; v0.37.9 (2026-11)
Docker Compose/Podman Compose✓ Containers only✓ Conditions such as service_healthy✗✗✗✓✗Partial CLIPartial Depends on the container engineDocker/PodmanCompose: Apache-2.0, v5.8.1; Podman Compose: GPL-2.0, v1.6.0
Local domains and HTTPS
Caddy, manual setup✗✗✗✓ Local CA for internal names; DNS-01 needs a DNS provider plugin✓ handle_path strips the prefix✗✗✗✓ Multi-platformpackage managers, xcaddyApache-2.0; v2.11.9 (2026-11)
Traefik✗✗✗✓ Let's Encrypt✓ PathPrefix rulePartial Routes generated from Docker/SwarmPartial Read-only dashboard✗Partial No OS listbinary, Docker imageMIT; v3.8.0 (2026-11)
Laravel Valet/Herd✗✗✗Partial *.test; valet secure adds TLS✗ Separated by domain; can proxy to a port✗✗✗Partial Valet is macOS only; Herd is macOS/WindowsHomebrew + ComposerValet: MIT; v4.14.0 (2026-11)
puma-devPartial Manages Rack apps; others are proxied via a port file✗✗✓ .test + local CA✗ Domain mapped from the directory name✗✗✗Partial macOS/LinuxHomebrew, releasesBSD-3; v0.18.3 (2023-02)
portlessPartial portless run wraps a command; a monorepo can have several✗✓ worktree branches become subdomains✓ .localhost + local CA, HTTP/2✗ Separated by subdomainPartial Can alias to an existing portPartial portless.localhost routes pagePartial CLI, skill, MCP (doesn’t start services)Partial macOS/Linux; the README covers a Windows servicenpmApache-2.0; v0.18.1 (2026-11)
localias✗✗✗✓ https://x.test, Caddy underneath✗✗✗✗Partial macOS/Linux/WSL2release binariesMIT; v3.0.0 (2025-11)
hotel✓ Start/stop from the browser✗✗Partial Local domains/https; needs proxy setup✗✗✓✗✓ macOS/Linux/WindowsnpmMIT; last commit 2023-10
mkcert + nginx✗✗✗Partial mkcert only makes certificates; nginx is configured by handPartial nginx is configured by hand✗✗✗✓Homebrew etc.mkcert: BSD-3; last release v1.4.4 (2022-04)
worktree- and agent-oriented
Worktree Control✓ Node/Django servers✗✓ Switches on a single dev port✗ Docs describe a setup with Caddy✗✗✓✓ MCP, CLI, claimsPartial Verified on Linux x64 onlynpmMIT; v0.2.0 (2026-11); the author says the interface may change
DevWebUI✓ Start/stop, CPU/memory/logs✗✗✗✗✗✓✓ MCP (31 tools)✓ Bun from source; includes a Windows tray appsource from GitHubPolyForm Noncommercial: commercial use needs a separate license; v0.8.7 (2026-08)
Emdash✗ The README doesn’t mention dev servers✗Partial One worktree per agent; no services involved✗✗✗Partial Desktop appPartial Manages agents, not services✓ macOS/Windows/Linuxinstallers, HomebrewApache-2.0; v1.2.13 (2026-11)

When to pick something else

Process management
Foreman, Overmind, PM2, dekit, process-compose, devenv
You just want to start a set of processes in a terminal or CI and don’t care about URLs or worktrees. process-compose’s dependencies and probes are more complete than devhub’s (liveness and readiness probes, conditions such as process_completed_successfully, automatic restart on failure), and devenv can pin the whole toolchain (needs Nix). devhub’s dependencies are only service_started/service_healthy, it has one probe (readiness), and unhealthy never restarts a service automatically. For environments it only handles envFile and tool version checks, and neither pins nor installs toolchains; if you need full pinning, use devenv.
Containers and Kubernetes
Tilt, Docker/Podman Compose, Garden
If all your services run in containers or Kubernetes, use those. devhub’s container support stops at building, starting and stopping single containers (no multi-stage orchestration, networking or Kubernetes); it is not a container orchestrator.
Local domains and certificates
Caddy, Traefik, Valet, puma-dev, portless, localias, mkcert
You only want memorable URLs and trusted certificates: portless or localias need no registered domain and no configuration; for PHP on a Mac use Valet or Herd; if you already know Caddy or Traefik, configure it yourself. devhub’s certificates can be Let's Encrypt (needs a domain and a DNS token, or DuckDNS) or a local CA it generates (no domain needed, but you install the trust yourself: devhub only prints the per-platform commands, with no one-click install like mkcert). Its proxy only does path prefixes, subdomains, headers and timeouts, with no load balancing or caching.
worktrees and agents
Worktree Control, DevWebUI, Emdash
For an MCP with more tools, look at Worktree Control or DevWebUI (DevWebUI has 31 tools, devhub has 16 grouped tools, each taking an action). To run several coding agents at once, each in its own worktree with a PR workflow, pick Emdash or Conductor (a Mac app; its site doesn’t say whether it is open source). They mostly don’t handle HTTPS or path prefixes and can be used alongside devhub. DevWebUI needs a license for commercial use.

Current limitations

  • Windows always force-stops servicesRuns on macOS, Linux and Windows; on Windows, console services without a window are always ended with taskkill /T /F on the process tree, and it still needs full verification on real Windows.
  • Tool versions are checked, not installed or switchedThe reproducible environment covers only envFile and tool version checks, with no toolchain pinning; use devenv, mise or asdf for that.
  • The management API has no token by defaultOther processes or users on the same machine can still call it; on shared hosts, enable server.requireToken and turn off server.adminViaProxy.
All limitations →

Sources: Foreman, Overmind, PM2, dekit, process-compose, devenv, Tilt, Compose, Podman Compose, Garden, Caddy, Caddy handle_path, Traefik, Valet, puma-dev, portless, localias, hotel, mkcert, Worktree Control, DevWebUI, Emdash, Conductor. Licenses, versions and dates come from each GitHub repo.