Skip to content

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

872 B
Raw Blame
class Openhuman < Formula
  desc "AI-powered personal assistant for communities"
  homepage "https://github.com/tinyhumansai/openhuman"
  url "https://github.com/tinyhumansai/openhuman/archive/refs/tags/v@[email protected]"
  sha256 "@SOURCE_SHA256@"
  license "GPL-3.0-only"
  head "https://github.com/tinyhumansai/openhuman.git", branch: "main"

  depends_on "cmake" => :build
  depends_on "pkgconf" => :build
  depends_on "rust" => :build

  on_linux do
    depends_on "openssl@3"
  end

  def install
    ENV["OPENSSL_NO_VENDOR"] = "1" if OS.linux?

    system "cargo", "install", "--bin", "openhuman-core", *std_cargo_args
    bin.install_symlink "openhuman-core" => "openhuman"
  end

  test do
    assert_match "OpenHuman core CLI", shell_output("#{bin}/openhuman --help")
    assert_match "OpenHuman core CLI", shell_output("#{bin}/openhuman-core --help")
  end
end