#!/bin/bash # Load Forgejo token from macOS Keychain into Claude Code session if [ -n "$CLAUDE_ENV_FILE" ]; then TOKEN=$(security find-generic-password -a "$USER" -s "forgejo-token" -w 2>/dev/null) if [ -n "$TOKEN" ]; then echo "export FORGEJO_TOKEN=\"$TOKEN\"" >> "$CLAUDE_ENV_FILE" fi fi exit 0