#!/usr/bin/env bash # Mac-side wrapper for swap-model on the Framework Desktop. # # Symlink or alias this so `swap-model X` works from any shell: # ln -s "$(pwd)/bin/swap-model" /usr/local/bin/swap-model # (or add ~/Documents/obsidian/localgenai/bin to PATH) # # Talks to whichever host name resolves the Framework Desktop. Default # `framework` works whether you're on the LAN (mDNS/etc/hosts) or # remote (Tailscale MagicDNS). Override per-shell when needed: # SWAP_MODEL_HOST=10.0.0.70 swap-model 235b # # Assumes your SSH public key is in the box's authorized_keys. exec ssh "${SWAP_MODEL_HOST:-framework}" /usr/local/bin/swap-model "$@"