Documentation & CLI Reference

Bootscry is a Python prototype. Its public repository is planned; these notes describe the current private Comet implementation and its command-line interface.

Installation & Setup (Planned Release)

The Bootscry public repository is planned. The Comet prototype is being validated on one physical test bench before release.

Requires Python >=3.11. Once public, installation in editable mode will proceed as:

# For approved pilots with access to the private source:
cd bootscry
python3 -m pip install -e .

Set your hardware KVM password in your local environment without recording it in your shell history:

read -r -s -p "KVM password: " KVM1_PASSWORD
echo
export KVM1_PASSWORD

Check hardware status. The first connection pins the certificate fingerprint to ~/.config/glkvm/pins.json:

python3 scripts/kvm/kvm_tool.py status

CLI Reference (kvm_tool.py)

CommandDescriptionExample
statusPrints KVM firmware version, video resolution, and target USB status.python3 scripts/kvm/kvm_tool.py status
snapshotCaptures the current frame to disk. Wakes a sleeping video streamer if idle.python3 scripts/kvm/kvm_tool.py snapshot -o screen.jpg
ocrRuns local OCR pipeline on the current frame and prints detected text.python3 scripts/kvm/kvm_tool.py ocr
wait-textBlocks until regular expression appears on screen, with a configurable timeout.python3 scripts/kvm/kvm_tool.py wait-text 'login:' --timeout 60
find-textSearches for string or regex; outputs bounding box coordinates and confidence.python3 scripts/kvm/kvm_tool.py find-text 'Save & Exit'
click-textLocates text via OCR bounding box and double-clicks the center pixel.python3 scripts/kvm/kvm_tool.py click-text 'Options' --double
typeSends keystrokes with CRLF protection and base64 payload chunking.python3 scripts/kvm/kvm_tool.py type 'systemctl restart ssh' --enter
cadSends Ctrl+Alt+Del chord to reboot the target host.python3 scripts/kvm/kvm_tool.py cad
reboot-toIssues reboot and taps specified hotkey through the POST window.python3 scripts/kvm/kvm_tool.py reboot-to Delete --duration 25

Offline Mock Testing

Pilots with source access can run the mock tests without physical hardware:

python3 -m pytest tests/test_glkvm_mock.py tests/test_glkvm_client.py -v

The mock checks API behavior and client handling. Several Comet behaviors are known only from source or reports and require separate live checks.

Review benchmark evidenceRead safety guidelines