lufah
Little Utility for FAH v8
A python command line utility for macOS, Linux, Windows
Install or upgrade from PyPI
Install Python 3.15.1 or later from python.org. This release includes updated pip certificates to address the eMudhra/emSign certificate incident.
Use the same Python 3.15.1+ interpreter for all commands below. If python
does not select it, replace python with the full path to that interpreter.
macOS / Linux:
python3.15 --version
python3.15 -m pip install --user --upgrade pipx
python3.15 -m pipx install --force lufah
python3.15 -m pipx ensurepath
Windows Command Prompt:
python --version
python -m pip install --user --upgrade pipx
python -m pipx install --force lufah
python -m pipx ensurepath
Restart your terminal if lufah is not found after ensurepath.
Uninstall
With pipx:
python3.15 -m pipx 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 manually 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lufah-0.12.0.tar.gz | 96.3 kB | Without provenance | Details for lufah-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lufah-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for lufah-0.12.0-py3-none-any.whl |
Total release size: 142.2 kB
Release files / lufah-0.12.0.tar.gz
| Download URL | lufah-0.12.0.tar.gz |
|---|---|
| Size | 96.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8b75bda408d33f2d6e5f0f006cfda58547be6d86c1249fb8254cc7dd9b70e66
|
|
BLAKE2b-256 checksum How to use checksums |
d8f3c2e033274b1cb1042b1930ee3e965af9ba0582cf526a7285be5a15d506c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.0-py3-none-any.whl
| Download URL | lufah-0.12.0-py3-none-any.whl |
|---|---|
| Size | 45.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f99569fe897c50a9d8355abbffd92ed0d4f466f78c7e61ffae0f190779370f58
|
|
BLAKE2b-256 checksum How to use checksums |
690758f2c785747ac70d380914000bb06709aba557df0351516b30c1cc62ff77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.0
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.