EarthFrame WARPT CTL

Warpt Power (warptctl + warpt-aggregator): node-level power measurement and multi-node fleet aggregation.

Warpt Power provides node-level power measurement and multi-node fleet aggregation. It collects hardware power readings (RAPL, NVML, powermetrics, Tegra, cpufreq) and exposes instantaneous watts, cumulative energy, and profiling metrics through a REST API and a CLI.

Quick Start

1. Install — downloads the pre-built standalone static binary, installs symlinks for powermeasure and power-client, and enables the background service.

Quick Install (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/EarthFrame/warpt-daemon/main/scripts/install.sh | bash

2. Check status — prints live wattage, cumulative energy consumed, and active hardware readers.

Check Status
warptctl status

3. Measure a command — wraps any command, Nextflow pipeline, or training run and reports its energy use.

Measure
warptctl measure -- python train.py

For Homebrew, APT, and build-from-source installs, full CLI usage, and fleet aggregation, see Node Toolchain below.



Get Started with WARPT CTL

View WARPT CTL on GitHub →

License: MIT · EarthFrame Corporation.


1. Node Toolchain (warptctl)

Compute nodes run a single, native Rust binary: warptctl. It requires zero runtime dependencies (no Python, no Docker, no shell scripts on the node).

Installation

Quick Install (macOS / Linux)

Quick Install
curl -fsSL https://raw.githubusercontent.com/EarthFrame/warpt-daemon/main/scripts/install.sh | bash

Downloads the pre-built standalone static binary, installs symlinks for powermeasure and power-client, and enables the background service.

macOS (Homebrew)

Homebrew
brew install earthframe/tap/warptctl
brew services start warptctl

The daemon runs in the background automatically.

Ubuntu / Debian (APT)

APT
# For compute nodes (client daemon + CLI + measure):
# x86_64:
sudo apt install ./warptctl_0.2.0-1_amd64.deb
# ARM64 (AWS Graviton, Ampere, Raspberry Pi 4/5):
sudo apt install ./warptctl_0.2.0-1_arm64.deb

The systemd service (warptctl.service) is enabled and started automatically. For fleet aggregator servers (dashboard + multi-node telemetry backend), see the Fleet Aggregator Debian Package below.

Build from Source

Build from Source
make release
sudo make install
sudo make install-linux-service   # on Linux systemd hosts

Node CLI Usage

Check Status & Sources

Check Status
warptctl status

Prints live wattage, cumulative energy consumed, last counter reset timestamp, and active hardware readers:

Example Output
Host:             framework-1
Power draw:       148.50 W
Energy consumed:  0.000509 kWh (1832.49 J)
Last reset:       2026-11-04 12:00:00 UTC (4h 38m ago)
Active sources:   amdgpu, ram_estimate

Measure Command / Workflow Energy (powermeasure)

Wrap any command, Nextflow pipeline, or training run:

Measure
warptctl measure -- python train.py
# Or use the legacy alias (100% backward compatible):
powermeasure bwa mem ref.fa reads.fq > aligned.sam

Outputs a human-readable energy report to stderr and JSON metrics to stdout:

Example Output
========================================
ENERGY REPORT
========================================
Command:    python train.py
Duration:   12.34 s
Avg Power:  148.50 W
Total:      1832.49 J
            0.5090 Wh
            0.000509 kWh
Est. Cost:  $0.0001 (at $0.12/kWh)
========================================

Track Multi-Step Jobs (warptctl session)

For SLURM job arrays, batch pipelines, or multi-process scripts:

Session Tracking
# 1. Start tracking at beginning of job
warptctl session start my-batch-job
# 2. Check running energy anytime without interrupting
warptctl session status my-batch-job
# 3. Finalize and record total energy (prints JSON metrics)
warptctl session end my-batch-job

Zero-Python Nextflow Container Mounting

warptctl compiles into a standalone, statically linked binary. In Nextflow workflows, mount the binary directly into task containers—no Python required in the container:

Nextflow Process
process ALIGN {
    container 'quay.io/biocontainers/bwa:0.7.17'
    containerOptions '-v /usr/local/bin/warptctl:/bin/powermeasure:ro'
    script:
    """
    powermeasure bwa mem ref.fa reads.fq > aligned.sam
    """
}

Join a Fleet Aggregator

One-command registration using an enrollment token from the aggregator:

Join Fleet
sudo warptctl join --aggregator "https://power.example.com" --token "we_..."

Validates the token, writes /etc/warpt/config.toml, and reloads telemetry push immediately.

Inspect & Tune Settings

Config
warptctl config show
sudo warptctl config set fleet.push_interval_secs 120

2. Fleet Aggregator (warpt-aggregator)

The fleet aggregator aggregates outbound telemetry pushed from warptctl nodes and serves an embedded EarthFrame-branded web dashboard and REST API on port 8000.

Run via Docker

Docker
cd aggregator
cp .env.example .env   # Set AGGREGATOR_API_TOKEN
docker compose up -d --build

Open http://localhost:8000/ in your browser.

Run via macOS (Homebrew)

Homebrew
brew install earthframe/tap/warpt-aggregator
brew services start warpt-aggregator

Open http://localhost:8000/.

Run via Debian Package (APT)

For dedicated management/monitoring hosts, install the aggregator service package (architecture-independent all package, works on both x86_64 and ARM64):

APT
sudo apt install ./warpt-aggregator_0.2.0-1_all.deb

This installs an isolated runtime in /usr/lib/warpt-aggregator/venv, sets up /var/lib/warpt-aggregator, configures /etc/warpt/aggregator.env, and enables warpt-aggregator.service on port 8000.

Run Locally (Native Python)

Local Dev
make aggregator-dev

Open http://localhost:8000/.

Database Storage

  • Default (Embedded SQLite) – Stores rollups and telemetry at /data/warpt.db. Zero configuration needed for offline LAN or single-host deployments.
  • Enterprise (PostgreSQL / TimescaleDB) – Set AGGREGATOR_DATABASE_URL=postgresql://user:pass@host:5432/warpt for enterprise clusters and horizontal scaling.

Enrolling Compute Nodes

  1. Open the dashboard at http://host:8000/ and navigate to Add node (paste your AGGREGATOR_API_TOKEN in the bar).
  2. Click Issue enrollment token (returns a single-use token we_...).
  3. Run on the compute node:
Join Fleet
sudo warptctl join --aggregator "https://host:8000" --token "we_..."

The node appears on the dashboard within one push interval.


3. Desktop Tray App (warpt-tray)

A lightweight macOS / Linux menu bar app displays real-time watts and component breakdowns.

Tray App
make tray-dev      # run in development mode
make tray-release  # compile release bundle

Supports both Local mode (polls local warptctl daemon) and Fleet mode (polls fleet aggregator).


Software Bill of Materials (SBOM)

For enterprise security compliance and vulnerability scanning (Trivy, Grype, Snyk, Dependency-Track):

SBOM
make sbom

Generates standardized, machine-readable manifests under dist/:

  • dist/warptctl.cdx.json – CycloneDX 1.5 JSON (OWASP) for the node binary
  • dist/warptctl.spdx.json – SPDX 2.3 JSON (ISO/IEC 5962:2021)
  • dist/warpt-full.cdx.json – CycloneDX 1.5 JSON covering all workspace components
  • dist/warpt-full.spdx.json – SPDX 2.3 JSON covering all workspace components

Pre-built SBOM manifests and checksums (SHA256SUMS) are published with every GitHub release.