#!/bin/bash TITLE="Hermes Agent" DESCRIPTION="Choose a model provider and tools" is_installed() { [ -x "$HOME/.local/bin/hermes" ] } # Signed in with OAuth (e.g. Nous Portal), or an API key is set is_configured() { [ -s "$HOME/.hermes/auth.json" ] || grep -qE '^[A-Z_]*API_KEY=.+' "$HOME/.hermes/.env" } run_configure() { echo " 1) Nous Portal (one sign-in covers the model, web search, images and more)" echo " 2) Another provider (OpenRouter, OpenAI, Anthropic or your own endpoint)" local choice read -rp "Which provider? [1] " choice case "$choice" in ""|1) unsandboxed hermes setup --portal ;; 2) unsandboxed hermes setup ;; *) echo "Choose 1 or 2."; return 1 ;; esac }