#!/usr/bin/env sh # Installs the nmbr platform adapter into a Hermes Agent plugins directory. # curl -fsSL https://nmbr.ai/developers/hermes/install.sh | sh # or, from a checkout: sh install.sh set -e DEST="${HERMES_HOME:-$HOME/.hermes}/plugins/nmbr" SRC="$(cd "$(dirname "$0")" 2>/dev/null && pwd || echo .)" mkdir -p "$DEST" if [ -f "$SRC/adapter.py" ] && [ -f "$SRC/plugin.yaml" ]; then cp "$SRC/adapter.py" "$SRC/plugin.yaml" "$DEST/" else BASE="https://nmbr.ai/developers/hermes" curl -fsSL "$BASE/adapter.py" -o "$DEST/adapter.py" curl -fsSL "$BASE/plugin.yaml" -o "$DEST/plugin.yaml" fi echo "nmbr adapter installed to $DEST" echo "Next: hermes gateway setup (pick nmbr, paste your agent token, add your nmbr to allowed users)"