Skip to content

Quick start

The short path to running your organisation's analyses on a computer at your site, and then keeping its recordings in your own bucket. Each step links to the page that explains it in full.

Try it first

A trial runs the runner on one computer, as your own user, for as long as you like: no root access, nothing installed, stopped with Ctrl-C. It needs Linux (x86_64) with rootless Podman 5.7 or later and a login session, and your organisation needs Run analyses on your own hardware turned on (step 1 below).

  1. Get the command. An owner or admin opens Compute → Add a runner and chooses Try it on this computer. The page creates an enrolment token and shows one command with your storage addresses and the runner's image by digest, shown across lines; it pastes as one command. It has this shape:

    mkdir -p ~/yousleep-runner && cd ~/yousleep-runner && \
    systemctl --user start podman.socket && \
    I=ghcr.io/yousleep-ai/runner@sha256:<digest> && \
    podman run --rm -it --stop-timeout 90 --security-opt label=disable \
      -v "$XDG_RUNTIME_DIR/podman/podman.sock:/run/podman/podman.sock" \
      -v "$PWD:$PWD" -w "$PWD" \
      -e YOUSLEEP_RUNNER_HOME="$PWD" \
      -e YOUSLEEP_RUNNER_IMAGE="$I" \
      -e YOUSLEEP_RUNNER_POLICY__STORAGE_ORIGINS=https://storage.yousleep.ai \
      "$I" run
    
  2. Run it in a terminal on the computer, and paste the token when it asks. The runner enrols and prints its key's fingerprint.

  3. Approve it on Add a runner with that fingerprint. It then takes your organisation's analyses: run one to see it.

Ctrl-C, or podman stop from another terminal, stops it: it stops its jobs and gives them back. The same command starts it again, without asking for the token. When you are done, revoke it on the Compute page and delete its directory, whose job files belong to your user's Podman:

podman unshare rm -rf ~/yousleep-runner

A trial is not the runner your site keeps.

  • Whoever starts it can change its settings, the local policy that bounds what youSleep may ask of it included. The runner's code never does, and the command runs the image by its digest, but only the code shows that. An installed runner takes its settings from a file only root can change.
  • Once approved, it takes your organisation's real analyses. Try it in an organisation with no real data yet, or approve it only when you mean it to, and revoke it when you are done.

For the runner your site keeps, install it, as below.

Run analyses at your site

You need a Linux computer (x86_64, with systemd and cgroup v2) with rootless Podman 5.7 or later, outbound HTTPS to the allowed destinations, and someone who can run commands as root (what your IT prepares).

  1. Request access. On the platform, the organisation's owner requests Run analyses on your own hardware and accepts the site agreement (Organisation → Compute). youSleep turns it on (steps 1 to 3).
  2. Add a runner. An owner or admin opens Compute → Add a runner, with the person who installs. The page builds the commands below with your settings and storage addresses, and creates the enrolment token.
  3. Install it. On the computer, run the commands the page shows, in order. They write the install files from the runner's image, save the token in a file only you can read, and run the install script as root with your settings. The script ends by printing the runner's key fingerprint (Install the runner).
  4. Approve it on Add a runner, with the fingerprint as the script printed it on the computer (step 6).
  5. Check it. The runner shows Active on the Compute page. On the computer (sudo only acts as the runner's own user, which has no login):

    sudo yousleep-runner doctor
    

    Then choose Run analyses at your site on the Compute page (step 7).

Keep recordings in your own bucket

Once analyses run at your site:

  1. Request access. The owner requests Keep recordings at your site (Organisation → Storage). youSleep turns it on.
  2. Create the bucket with your IT: S3-compatible storage over HTTPS, a key youSleep may hold that works only from your network, and a CORS rule for your browsers (the bucket).
  3. Register and check it on the Storage page: its endpoint, region, name and key, then the check from a browser on your network (steps 5 to 7).
  4. Let the runner reach it. Run the install script again with the bucket's address added, as Add a runner shows it (step 8).

New projects then keep their recordings in your bucket (step 9).

Next