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.
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://unconnected-chat.github.io,https://unconnected.ai,https://www.unconnected.ai,https://chat.unconnected.ai"
pkill -x ollama >/dev/null 2>&1 || true
sleep 1
nohup ollama serve >/dev/null 2>&1 &
i=0
while [ "$i" -lt 50 ]; do
if curl -fsS http://127.0.0.1:11434/api/tags >/dev/null 2>&1; then
ollama pull llama3.2:1b
echo "β
Ready!"
exit 0
fi
i=$((i + 1))
sleep 0.2
done
echo "β Ollama did not become ready in time"
exit 1
set -e
export OLLAMA_HOST="127.0.0.1:11434"
export OLLAMA_ORIGINS="https://unconnected-chat.github.io,https://unconnected.ai,https://www.unconnected.ai,https://chat.unconnected.ai"
pkill -x ollama >/dev/null 2>&1 || true
sleep 1
nohup ollama serve >/dev/null 2>&1 &
i=0
while [ "$i" -lt 50 ]; do
if curl -fsS http://127.0.0.1:11434/api/tags >/dev/null 2>&1; then
echo "β
Ready!"
exit 0
fi
i=$((i + 1))
sleep 0.2
done
echo "β Ollama did not become ready in time"
exit 1