#!/usr/bin/env bash set -euo pipefail echo "==========================================" echo " JimuAI OpenClaw One-Click Setup" echo "==========================================" echo echo "This script will:" echo "1. Install OpenClaw" echo "2. Write Codex / Claude / Gemini config" echo echo "[1/2] Installing OpenClaw..." curl -fsSL https://openclaw.ai/install.sh | bash echo read -r -p "Paste your Codex API Key (sk-...) and press Enter: " JIMU_CODEX_KEY read -r -p "Paste your Claude API Key (sk-...) and press Enter: " JIMU_CLAUDE_KEY read -r -p "Paste your Gemini API Key (sk-...) and press Enter: " JIMU_GEMINI_KEY if [ -z "${JIMU_CODEX_KEY:-}" ] || [ -z "${JIMU_CLAUDE_KEY:-}" ] || [ -z "${JIMU_GEMINI_KEY:-}" ]; then echo "[ERROR] Codex / Claude / Gemini Key are all required." exit 1 fi echo echo "[2/2] Writing OpenClaw config..." curl -fsSL https://code.jimuxyz.com/env_deploy/openclaw-deploy.sh | bash -s -- "$JIMU_CODEX_KEY" "$JIMU_CLAUDE_KEY" "$JIMU_GEMINI_KEY" echo echo "==========================================" echo "Setup finished." echo "You can now open OpenClaw and start using it." echo "==========================================" echo read -r -p "Press Enter to close..."