-
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·55 lines (47 loc) · 2.07 KB
/
install.sh
File metadata and controls
executable file
·55 lines (47 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
# OpenClaw-Termux Installer
# One-liner: curl -fsSL https://raw.githubusercontent.com/mithun50/openclaw-termux/main/install.sh | bash
#
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
echo -e "${BLUE}"
echo "╔═══════════════════════════════════════════╗"
echo "║ OpenClaw-Termux Installer ║"
echo "║ AI Gateway for Android ║"
echo "╚═══════════════════════════════════════════╝"
echo -e "${NC}"
# Check if running in Termux
if [ ! -d "/data/data/com.termux" ] && [ -z "$TERMUX_VERSION" ]; then
echo -e "${YELLOW}Warning:${NC} Not running in Termux - some features may not work"
fi
# Update and install packages
echo -e "\n${BLUE}[1/2]${NC} Installing required packages..."
pkg update -y
pkg install -y nodejs-lts git proot-distro
echo -e " ${GREEN}✓${NC} Node.js $(node --version)"
echo -e " ${GREEN}✓${NC} npm $(npm --version)"
echo -e " ${GREEN}✓${NC} git installed"
echo -e " ${GREEN}✓${NC} proot-distro installed"
# Install openclaw-termux from npm
echo -e "\n${BLUE}[2/2]${NC} Installing openclaw-termux..."
npm install -g openclaw-termux
echo -e "\n${GREEN}═══════════════════════════════════════════${NC}"
echo -e "${GREEN}Installation complete!${NC}"
echo -e "${GREEN}═══════════════════════════════════════════${NC}"
echo ""
echo -e "${YELLOW}Next steps:${NC}"
echo " 1. Run setup: openclawx setup"
echo " 2. Run onboarding: openclawx onboarding"
echo " → Select 'Loopback (127.0.0.1)' when asked!"
echo " 3. Start gateway: openclawx start"
echo ""
echo -e "Dashboard: ${BLUE}http://127.0.0.1:18789${NC}"
echo ""
echo -e "${YELLOW}Tip:${NC} Disable battery optimization for Termux in Android settings"
echo ""