Skip to content

Engine Runtime (CLI)

This is the main entry point for the paiOS Engine daemon (pai-engine binary from the engine/ workspace). It handles CLI argument parsing, logging initialization, and placeholder bootstrap; adapter wiring will be added in later work.

./pai-engine --config path/to/config.toml --debug
fn main() -> anyhow::Result<()>

The main function for the paiOS Engine.

This function returns anyhow::Result<()>; errors are logged and the process exits with a non-zero code on failure.


The command line arguments for the paiOS Engine.

  • config: The path to the configuration file.
  • debug: Enable verbose logging.
struct Args {
pub config: Option<String>,
pub debug: bool,
}