P2P Chat with Local AI

This is a chat app using GunDB, a P2P decentralized database. People you add into the chat can chat with your onboard AI. If you do not have a supported phone (not Android, or Desktop), you can still chat with AI on other people's phones.

🔒 End-to-end encrypted – Only people with the invite link can read messages.

First time: Install Ollama
set -e
pkg update -y && pkg upgrade -y
pkg install -y ollama curl
export OLLAMA_HOST="127.0.0.1:11434"
export OLLAMA_ORIGINS="https://fren-ar.berrry.app,https://fren-ar.dev.berrry.app,https://unconnected.ai,https://www.unconnected.ai,https://battlegrid.berrry.app,https://chat.unconnected.ai"
pkill -f "ollama" >/dev/null 2>&1 || true
nohup ollama serve >/dev/null 2>&1 &
for i in $(seq 1 50); do
  curl -s http://127.0.0.1:11434/api/tags >/dev/null 2>&1 && break
  sleep 0.2
done
ollama pull llama3.2:1b
echo "✅ Ready!"
Already have Ollama: Just run it
set -e
export OLLAMA_HOST="127.0.0.1:11434"
export OLLAMA_ORIGINS="https://fren-ar.berrry.app,https://fren-ar.dev.berrry.app,https://unconnected.ai,https://www.unconnected.ai,https://battlegrid.berrry.app,https://chat.unconnected.ai"
pkill -f "ollama" >/dev/null 2>&1 || true
nohup ollama serve >/dev/null 2>&1 &
for i in $(seq 1 50); do
  curl -s http://127.0.0.1:11434/api/tags >/dev/null 2>&1 && break
  sleep 0.2
done
echo "✅ Ready!"