Documentation
Credentials
You must have received a secret key. That's for your probes.
Soon the UI will offer a way to create new keys, bind them to specific IPs, revoke them and set expiration dates.
You must also have received a username and a temporary password. Those are used to log into the web front-end , and to authenticate your AI agent to the MCP server using OAuth.
You will have to change your password at first login.
How do I run a probe?
By default, probes measure the links between each other, so you need at least two, and they are most useful on different sites or networks.
For many measurements it is necessary for the probes to be able to connect to each other on ports 46700 to 46799. Cloudy can cope with some amount of NAT when analyzing measurements, but does not (yet) attempt to force NAT traversal.
What permissions does a probe need?
Every test captures the traffic it generates, so a probe always
needs to be allowed to capture packets. On Linux, that is the
CAP_NET_RAW capability.
Future tests in the making (see the
roadmap) will also require CAP_NET_ADMIN, to
tune the interface configuration (hardware timestamping, disabling
offloading…), reserve ports, and set up the firewall so that the
kernel looks away from the generated packets.
Whether you have to do anything depends on how the probe runs:
| The probe runs… | Extra permissions needed now | … in the future |
|---|---|---|
| in Docker |
None: the container runs as root, and Docker
grants CAP_NET_RAW by default.
|
Add --privileged.
--cap-add=NET_ADMIN would almost do, but
Docker mounts /proc/sys read-only, which
prevents reserving ports.
|
| as root (e.g. the systemd service below) | None. | |
| as an unprivileged user | sudo setcap cap_net_raw=eip /usr/bin/cwacol_scout | sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/cwacol_scout |
Using docker
-
The Docker image is:
ghcr.io/cloudywithachanceoflatency/cwacol-scout:master.This multi-arch image works on Linux, for amd64 and arm64 architectures.
It needs to be given your secret key as its only parameter:
docker run --network=host \ -e SECRET_KEY=__YOUR_KEY__ \ ghcr.io/cloudywithachanceoflatency/cwacol-scout:master -
Network: Probes talk to each other on TCP and UDP ports 46700 to 46799.
--network=hostis the simplest setup and avoids a layer of NAT.Without it, publish the ports with
-p 46700-46799:46700-46799/tcp -p 46700-46799:46700-46799/udp.
With Terraform
-
To get you started, here is a simple Terraform configuration:
# # Self-hosted # provider "docker" { alias = "scout" host = "ssh://root@__YOUR_HOST_RUNNING_DOCKERD__:22" } data "docker_registry_image" "scout" { provider = docker.scout name = "ghcr.io/cloudywithachanceoflatency/cwacol-scout:master" } resource "docker_image" "scout" { provider = docker.scout name = data.docker_registry_image.scout.name pull_triggers = [data.docker_registry_image.scout.sha256_digest] } # Create a container resource "docker_container" "scout" { provider = docker.scout image = docker_image.scout.image_id network_mode = "host" restart = "unless-stopped" privileged = true read_only = true name = "scout" env = [ "SECRET_KEY=__YOUR_KEY_HERE__", # HOST is the name that the scout will report. "HOST=my-scout", ] }
Manually
-
Get the scout binary for your architecture:
sudo curl -fL -o /usr/bin/cwacol_scout \ https://master.cloudywithachanceoflatency.net/resources/cwacol_scout.$(dpkg --print-architecture)(or the equivalent for non-Debian distributions, or directly
amd64orarm64) -
Give permission to execute:
sudo chmod a+x /usr/bin/cwacol_scout -
Only if the probe will not run as root, give it permission to capture traffic (see above):
sudo setcap cap_net_raw=eip /usr/bin/cwacol_scout -
Create this systemd service description file under
/etc/systemd/system/cwacol-scout.service:# Service file for the Cloudy probe. [Unit] Description=Cloudy-With-A-Chance-Of-Latency daemon [Service] Environment="SECRET_KEY=__YOUR_KEY_HERE__" ExecStart=/usr/bin/cwacol_scout minion --identity=%H Restart=always RestartSec=30 [Install] WantedBy=multi-user.target -
Enable and start the service:
sudo systemctl daemon-reload sudo systemctl enable --now cwacol-scout
After a few minutes, your probes should appear in the web front-end.
How do I connect my AI agent to the MCP service?
The MCP server gives access to more than the web front-end: some tools are only available there.
Configure an HTTP MCP server with the URL
https://master.cloudywithachanceoflatency.net/?p=mcp,
for instance with Claude Code:
claude mcp add --transport http cloudy \
'https://master.cloudywithachanceoflatency.net/?p=mcp' Authentication uses OAuth, with the same username and password as the web front-end.
To get started, try a prompt such as:
Read the description of the MCP service called "cloudy" and have a look around.
Tell me what can be done with it.