Ainew / entrypoint.sh
Ainew AI
πŸ€– Add Telegram channel support
e3b44dc
Raw
History Blame Contribute Delete
1.16 kB
#!/bin/bash
set -e
echo ""
echo "=========================================="
echo " 🦞 Ainew AI - OpenClaw Agent Setup"
echo "=========================================="
echo ""
# Create state directory
mkdir -p /app/.openclaw/workspace
# Check versions
echo "βœ“ Node.js: $(node --version)"
echo "βœ“ npm: $(npm --version)"
echo "βœ“ OpenClaw: $(openclaw --version 2>/dev/null || echo 'checking...')"
echo ""
echo "πŸ“‹ Checking API Providers..."
# NVIDIA NIM (Free!)
if [ -n "$NVIDIA_API_KEY" ]; then
echo "βœ… NVIDIA NIM: Configured (Free API!)"
else
echo "⚠️ NVIDIA_API_KEY not set - Add in HF Space secrets"
fi
# Telegram Bot
if [ -n "$TELEGRAM_BOT_TOKEN" ]; then
echo "βœ… Telegram Bot: Configured πŸ€–"
else
echo "⚠️ TELEGRAM_BOT_TOKEN not set"
fi
echo ""
echo "=========================================="
echo " πŸš€ Starting Ainew AI..."
echo " 🌐 Web UI: http://localhost:7860"
echo " 🦞 Gateway: http://localhost:18789"
echo " πŸ€– Telegram: Configured if token set"
echo "=========================================="
echo ""
# Start web server (starts OpenClaw Gateway internally)
exec node /app/server.js