#!/bin/bash # configure reads TITLE and DESCRIPTION # shellcheck disable=SC2034 TITLE="Claude Code" # shellcheck disable=SC2034 DESCRIPTION="Sign in to Anthropic" source "$CONNECTOR/configure.d/lib/agents.sh" is_installed() { agent_installed claude } is_configured() { unsandboxed claude auth status } run_configure() { echo " 1) Claude subscription (Pro, Max, Team or Enterprise)" echo " 2) Anthropic Console (pay for API usage)" local choice read -rp "How do you pay for Claude? [1] " choice case "$choice" in ""|1) unsandboxed claude auth login ;; 2) unsandboxed claude auth login --console ;; *) echo "Choose 1 or 2."; return 1 ;; esac }