#!/bin/bash # Store the caller's model key for the gate scenario: asks for it without echo, writes 0600. set -e read -rsp "Anthropic key (not echoed): " KEY; echo [ -n "$KEY" ] || { echo "empty — nothing written"; exit 1; } install -m 600 /dev/null ~/.config/bikoret/upstream_keys printf 'anthropic %s\n' "$KEY" > ~/.config/bikoret/upstream_keys echo "written ~/.config/bikoret/upstream_keys (0600)"