Deep links
Stacklok Desktop registers a custom protocol handler that lets the Enterprise Cloud UI trigger actions in the desktop app. When you click Install on a server in the Cloud UI, your browser opens Stacklok Desktop with the server pre-selected.
How it works
- The Cloud UI constructs a deep link URL using the
stacklok-enterprise-gui://protocol. - Your browser opens the URL, which the operating system routes to Stacklok Desktop.
- Stacklok Desktop parses the URL, navigates to the server detail page, and opens the install modal.
Supported actions
| Action | URL format | What it does |
|---|---|---|
| Open server detail | stacklok-enterprise-gui://v1/open-registry-server-detail?serverName=<NAME> | Opens the registry detail page for the named server |
| Install server | stacklok-enterprise-gui://v1/open-registry-server-install?serverName=<NAME> | Opens the detail page and shows the install modal |
The serverName parameter must contain only alphanumeric characters, hyphens,
underscores, and periods.
Protocol coexistence
The enterprise protocol stacklok-enterprise-gui:// is separate from the open
source protocol toolhive-gui://. Both editions can be installed on the same
machine without conflict. Deep links from the Enterprise Cloud UI always open
Stacklok Desktop. The toolhive-gui:// protocol is registered by the open
source ToolHive desktop app.
Troubleshooting
If clicking Install in the Cloud UI does not open Stacklok Desktop:
- Verify that Stacklok Desktop is installed and has been launched at least once (the first launch registers the protocol handler with the operating system).
- On Linux, verify that the
.desktopfile or Flatpak registration includes thex-scheme-handler/stacklok-enterprise-guiMIME type. - On macOS, if both editions are installed, verify that Stacklok Desktop is the
default handler for
stacklok-enterprise-gui://URLs in System Settings > Default Apps.
Next steps
- Browse the catalog in the Cloud UI to install servers into Stacklok Desktop
- Policy enforcement to understand how policies may affect which servers can be installed