67 lines
2.1 KiB
Bash
67 lines
2.1 KiB
Bash
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
if [ ! -f .env ]; then
|
|
echo "Error: .env file not found. Run ./setup.sh first."
|
|
exit 1
|
|
fi
|
|
|
|
source .env
|
|
|
|
echo -e "${GREEN}🚀 Starting Agentic LLM Hub...${NC}"
|
|
echo ""
|
|
|
|
# Determine profile
|
|
PROFILE=${1:-full}
|
|
|
|
if [ "$PROFILE" = "minimal" ]; then
|
|
echo "Mode: Minimal (core services only)"
|
|
docker-compose up -d redis chromadb litellm agent-core
|
|
elif [ "$PROFILE" = "ide" ]; then
|
|
echo "Mode: Standard + IDE"
|
|
docker-compose --profile ide up -d
|
|
elif [ "$PROFILE" = "full" ]; then
|
|
echo "Mode: Full (all services including MCP tools)"
|
|
docker-compose --profile ide --profile mcp --profile ui up -d
|
|
else
|
|
echo "Usage: ./start.sh [minimal|ide|full]"
|
|
echo " minimal - Core services only (lowest resources)"
|
|
echo " ide - Core + VS Code IDE"
|
|
echo " full - Everything including MCP tools and Web UI"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "Waiting for services..."
|
|
sleep 5
|
|
|
|
# Get IP
|
|
IP=$(hostname -I | awk '{print $1}')
|
|
|
|
echo ""
|
|
echo -e "${GREEN}✅ Services started!${NC}"
|
|
echo ""
|
|
echo "Access Points:"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
printf "${BLUE}%-22s${NC} %s\n" "Agent API:" "http://$IP:8080/v1"
|
|
printf "${BLUE}%-22s${NC} %s\n" "VS Code IDE:" "http://$IP:8443"
|
|
printf "${BLUE}%-22s${NC} %s\n" "LiteLLM Gateway:" "http://$IP:4000"
|
|
printf "${BLUE}%-22s${NC} %s\n" "MCP Tools:" "http://$IP:8001/docs"
|
|
printf "${BLUE}%-22s${NC} %s\n" "Web UI:" "http://$IP:3000"
|
|
printf "${BLUE}%-22s${NC} %s\n" "Vector DB:" "http://$IP:8000"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
echo "Test command:"
|
|
echo "curl -X POST http://$IP:8080/v1/chat/completions \"
|
|
echo " -H 'Content-Type: application/json' \"
|
|
echo " -H 'Authorization: Bearer ${MASTER_KEY:0:20}...' \"
|
|
echo " -d '{"message":"Hello","reasoning_mode":"react"}'"
|
|
echo ""
|
|
echo "View logs: docker-compose logs -f"
|
|
echo "Stop: docker-compose down"
|