shorashim-rollout: restart, wait for 3/3, two consecutive 200s. upstream-key-set: store a caller's model key for the gate scenario without echoing it. KOHEN "Rolling out". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
9 lines
408 B
Bash
Executable File
9 lines
408 B
Bash
Executable File
#!/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/shorashim/upstream_keys
|
|
printf 'anthropic %s\n' "$KEY" > ~/.config/shorashim/upstream_keys
|
|
echo "written ~/.config/shorashim/upstream_keys (0600)"
|