Skip to content

Asierso/ochat-app

Repository files navigation

OCHAT - Ollama Chat App

Ochat is a chat Android app client for Ollama AI. Ochat supports chats with different Ollama models

Note

Ochat doesn't provide an integrated ollama API server. You need to deploy Ollama server by your way to use Ochat

📱 Requirements

To use this app you must need

  • Android 8.0 or upper
  • Ollama API service access

🔨 Building

To build the project, clone it using git clone https://github.com/Asierso/ochat-app and open it in Android Studio

  • Project is prepared to compile with SDK 33 (Android 13)

🐳 Deploy Ollama in Docker

To deploy Ollama to use with ochat is better to use Docker containers. You can check the steps here

💻 Deploy Ollama in Termux

If you want to run ochat-app without having Ollama deployed by yourself, you can do it using Termux in your mobile phone downloading any linux distro

Warning

Models performance maybe decrease using Termux instead of containers

  • Download Termux app on your mobile phone here
  • Open the app and run the following command (You will need to grand storage permissions to Termux): pkg update ; pkg install wget -y ; wget https://raw.githubusercontent.com/wahasa/Debian/main/Install/debian12.sh ; chmod +x debian12.sh ; ./debian12.sh
  • Run in your Termux bash debian
  • Then, execute apt update ; apt install curl ca-certificates -y && curl -fsSL https://ollama.com/install.sh | sh and wait few minutes

Now Ollama should be installed and functional. Start the service with ollama serve inside Debian

Tip

Optionally you can run echo "ollama serve &" >> .bashrc to set up ollama only with entering Termux and execute debian

You can download models using ollama pull <model-name>. To access it from the app, use these settings:

  • IP 127.0.0.1
  • Port 11434