Skip to main content

lufah

Little Utility for FAH v8

A python command line utility for macOS, Linux, Windows

Install or upgrade from PyPI

If you already have uv 0.13.6 or later, the recommended install command is the same for all platforms:

uv tool install --upgrade --python 3.15.2 lufah

DO NOT use Astral's uv standalone installer unless you are certain you have properly updated your certificates.

Otherwise, install requires a patched python 3.11.18 or later. Python 3.15.2+ is strongly recommended. Python 3.16 is untested, is in alpha, and may not be patched.

A patched python will be used to install/upgrade uv and lufah using pipx. A uv upgrade will fail if you did not previously install it using pipx.

References to the eMudhra/emSign certificate incident:

Note that tools such as curl, wget, git may be compromised if you have not updated/patched your certificates. These instructions do not use those tools.

You can get a standalone python installer for some platforms from python.org.

Windows users can get prompted to install from the Microsoft Store by simply running python. If a patched version is not offered, get 3.15.2+ from python.org.

Linux users should first try getting python3-pip and python3-venv from their package manager.

macOS / Linux:

Check that you have a patched python. Version floors are 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2

python3 --version

If you have a patched version, it is safe to continue. Run one command at a time.

mkdir -p "$HOME/.local/pipx"  # helpful on macOS; not needed on Linux
bootstrap=$(mktemp -d)
python3 -m venv "$bootstrap/.venv"
source "$bootstrap/.venv/bin/activate"
pip install --upgrade "pip>=26.2.2"
pip install "pipx>=1.18.7" "uv>=0.13.6"
pipx install --upgrade "uv>=0.13.6"
pipx ensurepath
pipx uninstall lufah || true
uv tool install --upgrade --python 3.15.2 lufah
deactivate
rm -r "$bootstrap/.venv"

Windows Command Prompt:

Check that you have a patched python. Version floors are 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2

python --version

If you have a patched version, it is safe to continue. Run one command at a time. Ignore warnings about an installed script not being on PATH.

python -m pip install --upgrade "pip>=26.2.2"
python -m pip install --upgrade "pipx>=1.18.7"
python -m pipx install --upgrade "uv>=0.13.6"
python -m pipx ensurepath
uv tool install --upgrade --python 3.15.2 lufah

Restart your terminal if lufah is not found.

Uninstall

uv tool uninstall lufah

Usage

Note that lufah uses unencrypted, direct websocket connections. This is what Web Control uses to connect to the local client. This has security implications if you enable direct remote access on a client. See HOWTO: Allow v8 Client Remote Control

lufah -h
Usage:
  lufah [OPTIONS] COMMAND [ARGS]...

  Little Utility for FAH v8

Global Options:
  -a, --address ADDRESS  [host][:port][/group] or
                         [host][:port],[host][:port]... Use "." for localhost.
                         Group name must not be url-encoded, but may need
                         escaping from shell. The first "/" separates the
                         group and is not part of its name. "/" alone is the
                         default group. For a group whose name begins with
                         "/", use "//": host//name is the group "/name". Group
                         names are exact matches. Can be a comma-separated
                         list of hosts for commands units, info, fold, pause,
                         finish, top. A group name cannot be used with
                         multiple hosts. IPv6 is not supported by the client.
                         [default: localhost:7396]
  -v, --verbose
  -d, --debug
  --dry-run              Show commands that would be executed without sending
                         them
  --version              Show version and exit.
  --install-completion   Install completion for the current shell.
  --show-completion      Show completion for the current shell, to copy it or
                         customize the installation.

Commands:
  fold               Start folding in specified group or all groups.
  finish             Finish folding and pause specified group or all groups.
  pause              Pause folding in specified group or all groups.
  unpause            alias for fold (DEPRECATED)
  wait-until-paused  Run until specified group or all groups are paused.
  config             Get or set config values.
  create-group       Create group if it does not exist.
  delete-group       Delete group if it exists, is not "", is paused, and...
  dump-all           Dump all paused units in specified group or all groups.
  enable-all-gpus    Enable all unclaimed gpus in specified group.
  state              Show json snapshot of client state.
  status             alias for state (DEPRECATED)
  get                Show json value at dot-separated key path in client...
  groups             Show json array of resource group names.
  history            Show work unit history and exit.
  info               Show host and client info.
  log                Show client log.
  top                Show top-like updating units table.
  units              Show table of all units by machine name and group.
  watch              Show incoming messages.
  link-account       Link to account by token.
  unlink-account     Unlink account.
  restart-account    Restart account/node connection.
  start              Start local client service.
  stop               Stop local client service.
lufah config -h
Usage:
  lufah [GLOBAL_OPTIONS] config COMMAND [ARGS]...

  Get or set config values.

  Other than for account settings (user, team, passkey, cause), a group must
  be specified if there is more than one group.

  Example: lufah -a / config cpus 0

Global Options:
  -a, --address ADDRESS  [host][:port][/group] or
                         [host][:port],[host][:port]... Use "." for localhost.
                         Group name must not be url-encoded, but may need
                         escaping from shell. The first "/" separates the
                         group and is not part of its name. "/" alone is the
                         default group. For a group whose name begins with
                         "/", use "//": host//name is the group "/name". Group
                         names are exact matches. Can be a comma-separated
                         list of hosts for commands units, info, fold, pause,
                         finish, top. A group name cannot be used with
                         multiple hosts. IPv6 is not supported by the client.
                         [default: localhost:7396]
  -v, --verbose
  -d, --debug
  --dry-run              Show commands that would be executed without sending
                         them
  --version              Show version and exit.
  --install-completion   Install completion for the current shell.
  --show-completion      Show completion for the current shell, to copy it or
                         customize the installation.

Commands:
  beta        Enable beta work units.
  cause       Set cause preference.
  checkpoint  Set requested CPU WU checkpoint frequency in minutes.
              (DEPRECATED)
  cpus        Set number of cpus to allocate to resource group.
  cuda        Enable CUDA for WUs in specified group.
  fold-anon   Fold anonymously. (DEPRECATED)
  hip         Enable HIP for WUs in specified group.
  keep-awake  Prevent system sleep while folding and not on battery.
  key         Set project key for internal beta testing of new projects.
  on-battery  Fold even if on battery.
  on-idle     Only fold while user is idle.
  passkey     Set passkey token for quick return bonus points.
  priority    Set preferred core task priority. (DEPRECATED)
  team        Set team number.
  user        Set folding user name, "" or 2 to 100 bytes.

Examples

lufah units
lufah -a //rg2 finish
lufah -a /mygpu1 config cpus 0
lufah -a host1,host2,host3 units
lufah -a host1,host2,host3 info

Notes

If not given, the default command is "units".

If there are multiple groups, config requires a group name, except for account settings (user, team, passkey, cause).

For command lufah -a /groupname config cpus N, N is not limited to unused cpus across groups.

Group "/" is taken to mean the default group, which is "".

For a group name actually starting with "/", use prefix "//". Example: lufah -a somehost//rg1 finish

An error may not be shown if connection times out.

Commands start and stop are macOS-only.

The top command is glitchy on Windows when the window is resized. Type space to force a redraw. To use lufah top on Windows, you may need to pip install windows-curses.

Example Output

lufah -a .,panda.local units
----------------------------------------------------------------------------------------------------------
PRCG                 CPUs GPUs Core Status          Progress PPD         TPF      ETA     Timeout Deadline
----------------------------------------------------------------------------------------------------------
Panda/                              Run 
18240 1190,0,463     4    0    0xa8 Running          12.8%   156,073     01m 30s  2h 11m   1d 23h   4d 23h 
Sanctuary/                          Paused
Sanctuary/aux                       Run 
18806 17,14,474      12   0    0xa9 Running          62.7%   397,835     03m 33s  2h 12m   2d 20h   2d 22h 

Total PPD: 553,908

Metadata

Release files for lufah 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lufah 0.12.1
File Size Uploaded Provenance Actions
lufah-0.12.1.tar.gz 110.6 kB Without provenance Details for lufah-0.12.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lufah 0.12.1
File Interpreter ABI Platform Actions
lufah-0.12.1-py3-none-any.whl Python 3 none any Details for lufah-0.12.1-py3-none-any.whl

Total release size: 157.3 kB

Release files / lufah-0.12.1.tar.gz

Download URL lufah-0.12.1.tar.gz
Size 110.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e4e293bf1d2e8ebee2952125d3874417b4485dddbd975755c8cb9478ee42c60
BLAKE2b-256 checksum
How to use checksums
135683f380d568ac3f94cde31cb2c622e05be379d8ddbae24739c41384886ff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / lufah-0.12.1-py3-none-any.whl

Download URL lufah-0.12.1-py3-none-any.whl
Size 46.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b7202d97a959109f194d11af036788298c0811bc5a203b17212192a1c7578c8
BLAKE2b-256 checksum
How to use checksums
ab107498f619f2087ebf96ff571cf300abc0f314afec92c333a77a3a9b241083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lufah 0.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page