#!/usr/bin/env bash set -euo pipefail exec 3&2 read -rs PASSWORD <&3 echo >&2 exec 3<&- RESPONSE=$(curl -sf -X POST "${CLAUDE_CONFIG_URL:-https://cc.youx.am}/config" \ -H "Content-Type: application/json" \ -d "{\"password\":\"$PASSWORD\"}") if [ -z "$RESPONSE" ]; then echo "Error: empty response from server" >&2 exit 1 fi # source the env vars returned by the server eval "$RESPONSE" echo "Config loaded, starting claude..." >&2 exec claude