Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(cli): install tinyhumans transport before dispatching subcommands

Steven Enamakel22884a817348
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 6f61556633..18b45fce45 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -313,6 +313,7 @@ clap = { version = "4.5", features = ["derive"], optional = true }
dhat = { version = "0.3", optional = true }
dotenvy = "0.15"
env_logger = "0.11"
+libc = "0.2"
log = "0.4"
sentry = { version = "0.47.0", default-features = false, optional = true, features = ["backtrace", "contexts", "panic", "tracing", "debug-images", "httpdate"] }
serde = { version = "1", features = ["derive"] }
diff --git a/crates/openhuman-cli/src/main.rs b/crates/openhuman-cli/src/main.rs
index d0b1846d53..6f22a12117 100644
--- a/crates/openhuman-cli/src/main.rs
+++ b/crates/openhuman-cli/src/main.rs
@@ -272,6 +272,15 @@ fn main() {
// Collect command-line arguments, skipping the binary name.
let args: Vec<String> = std::env::args().skip(1).collect();
+ // The core carries no backend client; every CLI subcommand that reaches
+ // the hosted backend (serve, auth, billing, composio, ...) needs the
+ // `openhuman-tinyhumans` transport installed before it dispatches.
+ if let Err(err) = openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())
+ {
+ eprintln!("failed to install the TinyHumans backend transport: {err}");
+ std::process::exit(1);
+ }
+
// Delegate to the core library to handle the command.
if let Err(err) = openhuman_core::run_core_from_args(&args) {
eprintln!("{err}");