Windows nodes (management only)
A Windows PC can join a Skulk™ cluster as a management node. It runs the dashboard and the API and takes part in the cluster like any other node, and it runs no models. Models stay on the Mac and Linux nodes.
This page covers what a Windows node does, how to install and start one, how its plugin service works, and what has and has not been tested.
Windows support is on the development branch (dev), which the /next/
documentation describes. It is not in a stable release yet, and there is no
packaged app or installer for Windows: a Windows node runs from a source
checkout.
What a Windows node does
- Joins the cluster. It finds the other nodes on the same network by itself, syncs the cluster's state and connects the data transport. If it does not, you can give it another node's address by hand; see Troubleshooting.
- Serves the dashboard and the API on port 52415, for this machine and for others on the network. A model placed through its API runs on another node, and a chat request sent to it is answered by that model.
- Takes part in choosing the master, as a last resort. A management node
becomes master only when no ordinary node is there to do it. A new master's
skulk.yamlreplaces every other node's, so a machine that runs no models should not be the one that decides. - Keeps its own plugin service, described below.
What it does not do
- It runs no models. Skulk™ has no inference engine on Windows, so a Windows
node always starts with management participation and is never chosen to hold
a model. Setting
SKULK_NODE_PARTICIPATIONtofullorffn_onlyis refused with a message; leave it unset. - No plugin can be installed on it yet. The plugin service can be set up, but no published plugin release lists Windows.
- It does not start by itself. There is no Windows service for the node. It runs for as long as its terminal window is open. Run Skulk™ as a service covers macOS and Linux only.
What you need
- Windows 11 on an x86-64 PC. Windows on ARM64 has not been tried.
- Git and uv. uv installs the right Python itself.
- Node.js, to build the dashboard once: version 20.19 or newer in the 20 line, or 22.12 or newer. The dashboard's build tool refuses anything older. Skulk™ brings its own Node.js on macOS and Linux and does not on Windows. The test machine had 26.13.
- No compiler. The networking component comes as a prebuilt package.
- The same Skulk™ build as the rest of the cluster. Every node in a cluster must run the same version of Skulk™.
- The same network as the other nodes, for them to find each other automatically.
Install
In PowerShell, from the folder you want Skulk™ in:
git clone https://github.com/Foxlight-Foundation/Skulk.git
cd Skulk
git checkout dev
uv sync --locked
cd dashboard-react
npm ci
npm run build
cd ..
Check out the same branch or commit your other nodes run. uv sync --locked
installs exactly the packages the checkout names. It needs no compiler,
because the networking component is installed as a prebuilt package. On the
test machine it took 17 seconds.
Use an ordinary PowerShell window, not one opened with Run as administrator. The plugin service refuses to be set up or to run as an administrator.
Start it
uv run skulk
The first time, Windows Firewall has to allow Skulk™ to accept connections from
your network. If Windows asks, allow it on private networks. If it does not
ask and the other nodes cannot reach this one, add the permission by hand:
open Windows Security, then Firewall & network protection, then
Allow an app through firewall, and add the python.exe Skulk™ runs on.
This prints where it is:
uv run python -c "import os, sys; print(os.path.realpath(sys._base_executable))"
The permission belongs to that exact file. Its folder is named after the Python version, so after a Python update Windows has to be told again.
Then open http://localhost:52415 in a browser. On the test machine the page
answered about 20 seconds after the start, and the node listed another node on
the network between half a minute and two minutes after the start.
To stop the node, press Ctrl+Break or Ctrl+C in its window. It leaves the cluster and exits within a few seconds.
Where Skulk™ keeps its files
| What | Where |
|---|---|
The cluster's settings, skulk.yaml | The folder you start Skulk™ from |
| The node's own settings, data and cache | .skulk in your user folder (%USERPROFILE%\.skulk) |
| The plugin service | %LOCALAPPDATA%\Skulk\plugins |
Set SKULK_HOME, to a folder name inside your user folder or to a full path,
to keep the node's own settings, data and cache somewhere else. It moves
nothing else: skulk.yaml is still read from the folder you start Skulk™ in,
the ports stay the same, and your account still has one plugin service, which
belongs to the first configuration that set it up.
Plugins on Windows
The first time you open the Plugins page in a dashboard on the Windows PC
itself, at http://localhost:52415, Skulk™ starts setting up the plugin
service and shows its progress, as it does on macOS and Linux. It does not ask
first.
A dashboard opened from another machine on the network, or on the PC through its network address, does not start setup and cannot manage plugins; it says to open Plugins on the host itself. On macOS and Linux a dashboard reached over Tailscale counts as being on the host too. That has not been tried on Windows.
On Windows, setup:
- Copies Skulk™'s own Python environment into
%LOCALAPPDATA%\Skulk\plugins, about 450 MB. - Registers one scheduled task for your account in Task Scheduler. This needs no administrator prompt.
- Starts the service and waits until it answers.
On the test machine this took four to four and a half minutes, most of it the copy.
Things to know about the service:
- It runs as you, and only while you are signed in. Windows gives an ordinary account no other way to keep a program running. A service for the whole machine is not offered.
- A restart can take up to a minute. Task Scheduler starts the task once a minute. While the service is running, each of those starts finds it there and ends at once, so Task Scheduler shows the task as running. After the service stops, or after you sign in, the next start brings it back.
- Its task is named after your account:
foundation.foxlight.skulk.plugins.followed by your account's identifier (it beginsS-1-5-21-). Two people on one PC each get their own. - Stopping it is done by setup, which switches the task off and asks the service to stop. Ending the task in Task Scheduler also stops it, but the next minute starts it again unless the task is disabled.
- It stays after Skulk™ is stopped. The copy and the task belong to your account, not to the node's window or the checkout. Stopping the node, or deleting the checkout, removes neither.
Stop or remove the plugin service
To stop the service and keep it stopped: open Task Scheduler, select
Task Scheduler Library, find the task whose name begins
foundation.foxlight.skulk.plugins., and choose Disable, then End, in
that order. Disabled first, the task is not started again by the next minute.
Enable it again to bring the service back.
Skulk™ has no command that removes the service on Windows yet. It can be removed by hand, and it has three parts. Remove all three, with Skulk™ stopped:
- Stop the node (Ctrl+Break in its window).
- In Task Scheduler, Disable, End and then Delete the task.
- Delete the folder
%LOCALAPPDATA%\Skulk\plugins. If Windows says a file is in use, the service is still ending: wait a few seconds and try again. - Delete the folder
managed-serviceinside the node's settings folder (%USERPROFILE%\.skulk). It holds the node's own record of its connection to the service.
After that the node reads as never set up, and opening Plugins sets the service up again from nothing. On the test machine that was done with the task's three steps given as commands, not by clicking, and with no plugin installed.
Do not skip step 4. With the task and the folder gone and that record still there, the node tries to set the service up again by itself and fails with "Skulk™ already has a different local service profile", and Try again fails the same way. The way out of that state was not tested as such, but it is the same list again: stop the node, and remove the folder and the record.
If setup says a path is too long
Windows limits a file's path to 259 characters unless long paths are switched on for the machine, and they are off by default.
The plugin service lives in your user folder, at
C:\Users\ your user name \AppData\Local\Skulk\plugins, and cannot be put
anywhere else. The copy of Skulk™ inside it has deeply nested files. With the
environment a source checkout gives today, the copy fits when that folder's
path is 59 characters or shorter, which means a user name of about 22
characters or fewer.
If it does not fit, setup stops before it copies anything and says how many characters too long the path is. By then it has made the service's folder and a record of the attempt inside it, and nothing else: there is no copy and no scheduled task, and the Plugins page shows the failure with a Try again button.
The way out is to switch long paths on in Windows: the Enable Win32 long
paths policy, or the LongPathsEnabled value in the registry. Either needs
an administrator. Trying again after that has not been tested on a machine
where setup was first refused. The only other way is a user folder with a
shorter name.
Installing a plugin has the same kind of check, with its own message, for the folder the plugin goes into. No plugin can be installed on Windows yet.
Troubleshooting
"could not listen for peers on TCP port 52416". Skulk™ could not take the
port it uses to talk to other nodes. The message goes on to give Windows' own
reason, with an error number; read that first. Most often another program
holds the port: the default lies in the range Windows hands out to programs
that ask for any free port, so this can happen by chance. In that case start
Skulk™ again, or give it another port with --libp2p-port or
SKULK_LIBP2P_PORT. If the reason is something else, a different port may not
help.
The node runs but sees no other node. Check, in this order: that Windows
Firewall allows Skulk™ on your network (see Start it); that the
machines are on the same network; that every node uses the same
SKULK_LIBP2P_NAMESPACE, or none; and that every node runs the same Skulk™
build.
If all of that holds and the nodes still do not list each other, give this node another node's address before you start it, in the same PowerShell window:
$env:SKULK_BOOTSTRAP_PEERS = "/ip4/192.168.1.20/tcp/52416"
$env:SKULK_ZENOH_CONNECT = "tls/192.168.1.20:7447"
uv run skulk
Put the other node's address in place of 192.168.1.20. The first line is for
the connection the nodes coordinate over: 52416 is the other node's
--libp2p-port, which is 52416 unless it was changed. The second is for the
link that carries a model's answers: the other node's log names that address
and port in the line that says Zenoh DATA plane ENABLED on, and the port is
7447 unless it was changed. Set both. Each takes several addresses separated
by commas, and with SKULK_ZENOH_CONNECT set this node no longer searches for
that link by itself. Only a cluster of two nodes has been run this way.
On the test machine the two nodes found each other by themselves in all eleven
runs on two days. On a third day they did not within five minutes. That was a
fault in the test and not in the Windows node: the Mac node had been started
in a way that left it unable to send multicast packets, so no node could find
it. Its log said so every minute, in a line that says
error sending packet on iface address. With both lines set the nodes
connected.
A chat request through this node gets no answer. The nodes list each
other, a model loads on the other node, and a request sent to this node waits
without an answer and without an error. This is what happens when the nodes
are connected for coordination and the link that carries answers is missing.
Both nodes say so in their logs a minute or two after the start, in a line
that says Zenoh data plane ISOLATED, and /state lists a zenoh_isolated
health error. Set SKULK_ZENOH_CONNECT as shown above and start the node
again. On the test machine this happened when the node was given
SKULK_BOOTSTRAP_PEERS alone.
"SKULK_NODE_PARTICIPATION=full is not available on Windows". Unset the variable. A Windows node always runs with management participation.
Windows blocks uv run. The message is "An Application Control policy
has blocked this file". On the test machine, with Smart App Control switched
on, Windows blocked the small launcher uv creates
(.venv\Scripts\python.exe) on two days. On the first it was blocked three
times within a few seconds and ran again hours later. On the second it was
blocked in all seven tries over 19 minutes, though it had run on that machine
before, and it was still blocked about 19 hours later.
At that later time Windows also refused to load Skulk™'s networking library
(skulk_pyo3_bindings, then version 0.2.12, which was not signed) in all six
tries over six minutes. The same file had loaded about 19 hours earlier. A start that gets as
far as that library ends with
ImportError: DLL load failed while importing skulk_pyo3_bindings and the
same message, and the node does not run.
From version 0.2.13 the library in the Windows wheel is signed by FoxlightAI Inc. On the test machine, with Smart App Control on, the signed library loaded in all four tries. The unsigned library of the same build loaded in the same four tries, so those tries do not show that the signature is what prevents a refusal. The launcher uv creates is not Skulk™'s to sign.
The cause was not established, and Skulk™ has no setting that avoids it. Try again before changing any setting, and expect that a later try may be refused too.
What has been tested
All on one Windows 11 machine (x86-64), from a clean checkout:
- Installing without a compiler, and starting as an ordinary user.
- Joining a Mac node by discovery alone, syncing state, connecting the data transport, staying up while the other node left and came back, and leaving cleanly.
- A chat request through the Windows node to a model on a Mac node: the model was placed through the Windows node's API, and one whole answer and one streamed answer came back from it. In this run the Windows node was given the Mac's addresses by hand.
- The dashboard and the API, from the machine itself and from another machine on the network.
- Setting up the plugin service from nothing to ready, reconnecting to it after the node restarted, and stopping it.
- Removing the plugin service by hand and setting it up again.
What has not been tested
- Windows on ARM64.
- An account that was never an administrator. The test account is an administrator that runs Skulk™ with ordinary rights.
- The plugin service coming back after signing out and in again.
- Removing the plugin service by hand with a plugin installed. No plugin can be installed on Windows yet.
- A Linux node in a cluster with a Windows node. Every run so far joined a Mac.
- A chat request with the nodes left to find each other by themselves.
- Chat from the dashboard's chat page, a long answer, tools, images, cancelling a request, or several requests at once through a Windows node.
- A cluster of more than two nodes with a Windows node in it.