Box  by jegly

On-device AI suite for Android

Created 1 month ago
568 stars

Top 56.1% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Box is an on-device AI suite for Android, forking Google AI Edge Gallery to provide a private, offline experience. It targets users and developers seeking to run advanced AI functionalities like conversational chat, voice interaction, vision analysis, and image generation directly on their mobile devices without network reliance. The primary benefit is enhanced privacy and immediate, local AI capabilities.

How It Works

Box integrates multiple native inference engines—llama.cpp for LLMs, whisper.cpp for speech-to-text, and stable-diffusion.cpp for image generation—alongside the LiteRT framework. It supports importing GGUF model files, allowing users to run various large language models and diffusion models locally. The architecture emphasizes a seamless, multimodal user experience, enabling features like real-time voice conversations and live camera-based AI interaction, all processed on-device.

Quick Start & Requirements

  • Installation: Available via Obtainium (using specific regex for "Main" or "Custom ROM" builds) or by building from source.
  • Prerequisites: Android 15+ is required. Approximately 4 GB of free storage is recommended for a typical quantized LLM. NPU/TPU acceleration is supported on specific Qualcomm Snapdragon, Google Tensor, and MediaTek chipsets.
  • Links: Box repository, Upstream Google AI Edge Gallery.

Highlighted Details

  • Comprehensive on-device AI suite including multimodal chat, voice mode, vision AI, speech-to-text, and document analysis.
  • Supports importing and running custom GGUF models for LLMs and Stable Diffusion image generation locally.
  • Features "Free Talk" for real-time, hands-free voice conversations and "Vision Talk" for live camera-based AI interaction.
  • Bundled NPU/TPU acceleration for various chipsets within a single APK, with GPU acceleration also supported.
  • Includes security features such as biometric app lock and SQLCipher-encrypted chat history.

Maintenance & Community

Box is presented as a community effort, periodically merging upstream changes from Google AI Edge Gallery. While specific community channels like Discord or Slack are not detailed, the project is hosted on GitHub, facilitating issue tracking and contributions.

Licensing & Compatibility

Licensed under the Apache License, Version 2.0. This license is permissive and generally allows for commercial use and integration into closed-source applications.

Limitations & Caveats

NPU acceleration currently falls back to GPU/CPU for most models due to missing model-side AUX metadata. Custom ROM users require a specific build ("custom-rom-support") to work around missing system components like AICore and system TTS. NPU acceleration on custom ROMs for Snapdragon remains untested. Android 15+ is a strict requirement.

Health Check
Last Commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
26
Star History
145 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.