Skip to content

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

1.4 KB
Raw Blame
# Homebrew formula template — rendered by CI, committed to tinyhumansai/homebrew-openhuman.
# Placeholders replaced by .github/workflows/release-packages.yml before commit.
class Openhuman < Formula
  desc "AI-powered assistant for communities — OpenHuman CLI"
  homepage "https://github.com/tinyhumansai/openhuman"
  version "@VERSION@"
  license "MIT"

  on_macos do
    on_arm do
      url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@[email protected]"
      sha256 "@SHA256_MACOS_ARM64@"
    end
    on_intel do
      url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-x86_64-apple-darwin.tar.gz"
      sha256 "@SHA256_MACOS_X64@"
    end
  end

  on_linux do
    on_arm do
      # ARM64 (aarch64)
      url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@[email protected]"
      sha256 "@SHA256_LINUX_ARM64@"
    end
    on_intel do
      url "https://github.com/tinyhumansai/openhuman/releases/download/v@VERSION@/openhuman-core-@VERSION@-x86_64-unknown-linux-gnu.tar.gz"
      sha256 "@SHA256_LINUX_X64@"
    end
  end

  def install
    bin.install "openhuman-core", "openhuman-tui"
    bin.install_symlink "openhuman-core" => "openhuman"
  end

  test do
    system "#{bin}/openhuman", "--version"
    system "#{bin}/openhuman-tui", "--help"
  end
end