Welcome to the official repository for PrometheusAI-Android. This project allows you to run a powerful AI model locally on your Android device using ONNX Runtime.
- Local Inference: Runs entirely on-device without internet access.
- Privacy Focused: No data leaves your device.
- Customizable: Built on open-source technologies.
Before you begin, ensure you have the following installed:
- Android Studio (Latest version recommended)
- Git installed on your machine.
- A decent Android device (or emulator) with at least 4GB - 8GB of RAM for smooth performance.
Follow these steps to set up the project locally:
Open your terminal or command prompt and run:
git clone https://github.com/SamirSengupta/PrometheusAI-Android.git
cd PrometheusAI-AndroidThe AI model files (model.onnx and tokenizer.json) are too large to be included in this repository. You must download them manually and place them in the correct folder for the app to work.
-
Download the files from the link below: 👉 [INSERT YOUR MODEL DOWNLOAD LINK HERE] (e.g., Google Drive link containing
model.onnxandtokenizer.json) -
Locate the assets folder in the project directory:
app/src/main/assets/ -
Move the downloaded files into that folder.
- Ensure the file names are exactly
model.onnxandtokenizer.json. - The final path should look like:
.../PrometheusAI-Android/app/src/main/assets/model.onnx.../PrometheusAI-Android/app/src/main/assets/tokenizer.json
- Ensure the file names are exactly
- Launch Android Studio.
- Select File > Open.
- Navigate to the cloned
PrometheusAI-Androidfolder and select it. - Wait for Gradle to sync (this may take a few minutes).
Once the project is set up, you can build and run it on your device.
- Connect your Android device via USB.
- Enable Developer Options and USB Debugging on your phone.
- In Android Studio, select your device from the dropdown menu in the toolbar.
- Click the green Run button (
▶️ ) or pressShift + F10.
If you want to share the app or install it manually:
- Go to Build > Build Bundle(s) / APK(s) > Build APK(s).
- Once finished, a notification will appear. Click locate to find the
app-debug.apkfile. - Transfer this file to your phone and install it.
Want to make it your own?
- Change the Model: You can replace
model.onnxwith other ONNX-compatible LLMs (ensure you update the code to handle different architectures if needed). - Modify UI: Edit the files in
app/src/main/res/layoutto change the look and feel. - Logic: The main logic resides in
MainActivity.kt.
- Build Failed (OOM Error): If the build fails due to memory, try increasing the heap size in
gradle.properties. - App Crashes on Start: Ensure you have successfully placed
model.onnxandtokenizer.jsonin theassetsfolder. The app cannot run without them.
Built with ❤️ by Samir Sengupta