#!/bin/bash
# AgentInstaller - Universal Agent Setup
# https://agentinstaller.com

RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'

echo -e "${GREEN}"
echo "╔════════════════════════════════════════════╗"
echo "║      AgentInstaller - Universal Setup      ║"
echo "║          https://agentinstaller.com        ║"
echo "╚════════════════════════════════════════════╝"
echo -e "${NC}"

echo "Select an agent to install:"
echo "1) Clawdbot (Official Anthropic Demo)"
echo "2) Moltbot (Community Enhanced Version)"
echo "3) memU Bot (24/7 Proactive Memory Layer)"
echo "4) Nanobot (Open-Source MCP Agent Framework)"
echo "5) Exit"
echo ""

read -p "Enter choice [1]: " choice
choice=${choice:-1}

case $choice in
    1)
        echo -e "${BLUE}Starting Clawdbot installation...${NC}"
        curl -fsSL https://agentinstaller.com/clawdbot | bash
        ;;
    2)
        echo -e "${BLUE}Starting Moltbot installation...${NC}"
        curl -fsSL https://agentinstaller.com/moltbot | bash
        ;;
    3)
        echo -e "${BLUE}Starting memU Bot installation...${NC}"
        curl -fsSL https://agentinstaller.com/memubot | bash
        ;;
    4)
        echo -e "${BLUE}Starting Nanobot installation...${NC}"
        curl -fsSL https://agentinstaller.com/nanobot.sh | bash
        ;;
    5)
        echo "Exiting."
        exit 0
        ;;
    *)
        echo -e "${RED}Invalid choice.${NC}"
        exit 1
        ;;
esac
