A macOS counterpart of CoreDesktop's configure, with the same drop-in items in configure.d/: - core: Mail, Calendar and Contacts through a configuration profile, Superpanel as an app, Nextcloud files through the Nextcloud app, and Element; with test-and-fix, password change and removal - tailscale: join the Core's network through headscale - backup: restic to Nextcloud through rclone, run by launchd through an app that can be given Full Disk Access - storage: SMB shares mounted the way Finder does, again at login and on network changes - agents, claude, opencode, hermes, sandbox: install the agents and run them in Anthropic's sandbox runtime (Seatbelt on macOS) - ai-servers: LLM servers on this Mac or the network, for the agents Apps and tools macOS lacks are offered for download, checked against their makers' Team IDs and notarization, or published SHA-256 sums. Everything runs on macOS' bash 3.2 with only built-in tools. smoketest/ runs scenarios in fresh macOS VMs with Tart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
842 B
Bash
31 lines
842 B
Bash
#!/bin/bash
|
|
|
|
# configure reads TITLE and DESCRIPTION
|
|
# shellcheck disable=SC2034
|
|
TITLE="Hermes Agent"
|
|
# shellcheck disable=SC2034
|
|
DESCRIPTION="Choose a model provider and tools"
|
|
|
|
source "$CONNECTOR/configure.d/lib/agents.sh"
|
|
|
|
is_installed() {
|
|
agent_installed 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
|
|
}
|