forked from nanocoai/nanoclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-sofia.sh
More file actions
29 lines (24 loc) · 739 Bytes
/
Copy pathstart-sofia.sh
File metadata and controls
29 lines (24 loc) · 739 Bytes
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
#!/bin/bash
# Start Sofia via NanoClaw
# Usage: bash start-sofia.sh
# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm use 22 > /dev/null 2>&1
cd "$(dirname "$0")"
echo "==================================="
echo " Sofia — Software Lotus AI Agent"
echo " Trigger: @Sofia <mensagem>"
echo " Porta credential proxy: 3002"
echo "==================================="
echo ""
# Check if container image exists
if docker images nanoclaw-agent:latest --format "{{.Repository}}" | grep -q nanoclaw; then
echo "[OK] Container image: nanoclaw-agent:latest"
else
echo "[BUILD] Building agent container..."
bash container/build.sh
fi
# Start NanoClaw
echo "[START] Iniciando Sofia..."
npm start