AIonPhone is an Android application designed to enable users to interact with various Large Language Models (LLMs) on their mobile devices. It supports both locally deployed models and cloud services.
-
Multiple API Support:
- OpenAI-compatible APIs (e.g., Tencent Cloud)
- Ollama Local Models
- RAG (Retrieval-Augmented Generation) Interface
-
Flexible Configuration:
- Custom Server URLs
- API Key Management
- Multiple API Type Switching
-
Clean User Interface:
- Chat-like Interaction
- Real-time Responses
- User-friendly Settings
- Language: Kotlin
- UI Framework: Jetpack Compose
- Networking: Retrofit2, OkHttp3
- Design System: Material3
- Concurrency: Kotlin Coroutines
- Architecture: Android Architecture Components
- After installation, tap the settings icon in the top-right corner
- Choose your preferred API type:
- OpenAI Compatible: Requires server URL and API key
- Ollama: Set local server URL (default: http://localhost:11434)
- RAG Flow: Configure RAG server URL
- Save settings and return to main screen
- Start chatting by entering your message and tapping send
# Download Ollama
curl -L https://ollama.com/download/windows > ollama-windows.zip
unzip ollama-windows.zip
# Start Ollama service
ollama serve
# Pull a model (example)
ollama pull llama2# Clone RAG service repository
git clone [your-rag-service-repo]
cd [your-rag-service]
# Install dependencies
pip install -r requirements.txt
# Start service
python app.py// OpenAI Compatible
Base URL: https://api.lkeap.cloud.tencent.com/v1
API Key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// Ollama
Base URL: http://localhost:11434
// RAG Flow
Base URL: http://localhost:8000# Clone repository
git clone https://github.com/yourusername/AIonPhone.git
# Open in Android Studio or VS Code
cd AIonPhone
# Build project
./gradlew build- Android 6.0 (API level 23) or higher
- Internet connection
- Local network access for Ollama
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is under active development. Feedback and suggestions are welcome!
Please report any issues on our GitHub repository's issue tracker.