Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

LLM Hub 🤖

LLM Hub is an open-source mobile app for on-device LLM chat, image generation, and video generation, available for both Android and iOS. It's optimized for mobile usage (CPU/GPU/NPU acceleration) and supports multiple model formats so you can run powerful models locally and privately.

Download

💻 Desktop Versions Coming: Windows and macOS native apps are planned, bringing desktop-class experiences with advanced cursor integration and Claude Code–like capabilities.

📸 Demo & Screenshots

Vibe Coder Demo on iOSImage Generation on Android
Vibe Coder using Gemma 4 model on iPhone (HTML preview)Stable Diffusion image generation on Android

🚀 Features

🛠️ AI Tools Suite

ToolDescription
💬 ChatMulti-turn conversations with RAG memory, web search, TTS auto-readout, and multimodal input
🤖 creAItor[NEW] Design custom AI personas with specialized system prompts (PCTF) in seconds
💻 Vibe Coder[NEW] Explain your app idea and watch it be built in real-time with live HTML/JS preview
✍️ Writing AidSummarize, expand, rewrite, improve grammar, or generate code from descriptions
🎨 Image GeneratorCreate images from text prompts using Stable Diffusion 1.5 with swipeable gallery
🔍 Image Upscale[NEW] Upscale images up to 4× using AI super-resolution models (RealESRGAN, UltraSharp) with NPU acceleration
🎥 Video Generator[NEW] Generate videos from text prompts or images using Stable Video Diffusion on iOS
🌍 TranslatorTranslate text, images (OCR), and audio across 50+ languages - offline
🎙️ TranscriberConvert speech to text with on-device processing using Whisper models
🛡️ Scam DetectorAnalyze messages and images for phishing with risk assessment
🗣️ VibeVoice[NEW] Hands-free AI voice chat

🎙️ Supported ASR Models (Android)

The offline Transcriber feature on Android supports on-device Whisper models for high-accuracy local speech-to-text.

Android also includes Kokoro TTS models for local text-to-speech.

🔐 Privacy First

  • 100% on-device processing - no internet required for inference
  • Zero data collection - conversations never leave your device
  • No accounts, no tracking - completely private
  • Open-source - fully transparent

⚡ Advanced Capabilities

  • GPU/NPU acceleration for fast performance
  • Text-to-Speech with auto-readout
  • RAG with global memory for enhanced responses
  • Import custom models (.task, .litertlm, qnn,.mnn, .gguf)
  • Direct downloads from HuggingFace
  • 17 language interfaces

🚧 Upcoming Features & Roadmap

Desktop Expansion (Windows & macOS)

  • Advanced Vibe Coder — Enhanced code generation with desktop IDE integration, cursor control, and Claude Code–like experiences
  • OpenClaw-like Agent — Autonomous tool-using agent framework for complex multi-step tasks
  • Advanced Media Generation — Professional-grade image/video synthesis with ComfyUI/Draw Things feature parity and extended controls

Quick Start

  1. Download from Google Play or the App Store, or build from source
  2. Open Settings → Download Models → Download or Import a model
  3. Select a model and start chatting or generating images

Technology

Acknowledgments

  • GenieX SDK — GGUF model inference support (credit shown in-app About) ⚡
  • WhisperKit — On-device ASR with TFLite + NPU acceleration
  • whisper.cpp — On-device ASR/transcription support on iOS
  • Run Anywhere SDK — iOS model runtime and LLM execution framework 🚀
  • Draw Things — iOS image and video generation engine (MediaGenerationKit) 🎨
  • Google, OpenAI, Meta, Microsoft, IBM, LiquidAI, Mistral, Primsm ML, HuggingFace — model and tooling contributions

Development Setup

Android local development (Android Studio + Gradle)

git clone https://github.com/timmyy123/LLM-Hub.git
cd LLM-Hub/android
./gradlew assembleDebug
./gradlew installDebug

Android-only local configuration

Setting up Hugging Face Token for Development

To use private or gated models, add your HuggingFace token to android/local.properties (do NOT commit this file):

HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Save and sync Gradle in Android Studio; the app will read BuildConfig.HF_TOKEN at build time.

Dev Premium Flag

To skip ads and unlock all premium features locally without a real IAP purchase, add this to android/local.properties:

DEBUG_PREMIUM=true

Set it back to false before making a production build.

Model License Acceptance

Some models on HuggingFace (especially from Google and Meta) require explicit license acceptance before downloading. When building the app locally:

  1. Ensure you have a valid HuggingFace read token in local.properties (see above)
  2. For each model you want to download:

Note: This is only required for local development builds. The Play Store version uses different authentication and does not require manual license acceptance for each model.

iOS local development (macOS + Xcode)

Prerequisites

  • macOS with Xcode installed (use a version that matches your iOS device version)
  • An Apple ID signed into Xcode (free Personal Team works for local device testing)
  • iPhone with Developer Mode enabled if you run on real hardware

Build and run on iPhone

  1. Clone the repo and open the iOS project:
git clone https://github.com/timmyy123/LLM-Hub.git
cd LLM-Hub
open ios/LLMHub/LLMHub.xcodeproj
  1. In Xcode, select target LLMHubSigning & Capabilities:
    • Set your Team
    • Set a unique Bundle Identifier (for example: com.yourname.llmhub)
    • Keep Automatically manage signing enabled
  2. Select your iPhone as the run destination and press Run.

If you use Xcode beta

If your phone is on a newer iOS build and requires Xcode beta support, switch CLI tools:

sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
xcodebuild -version

iOS TTS voice troubleshooting

TTS falls back to a robotic default voice after changing Siri voices

iOS can get into a state where the system TTS voice cache doesn't update after a Siri voice change, causing the app to fall back to the old default voice. To fix:

  1. Go to Settings → Accessibility → Spoken Content → Voices
  2. Tap your language and select any voice (even a different one)
  3. Switch back to your preferred Siri voice or whichever voice you want

This forces iOS to refresh the voice selection and the app will use the correct voice immediately.

Useful iOS dev troubleshooting

  • If signing fails, re-check Team + Bundle Identifier in target settings.
  • If build cache acts stale, clean DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData/LLMHub-*
  • Build logs: Report Navigator (Cmd+9)
  • Runtime logs: Debug Console (Cmd+Shift+Y)

Contributing

  • Fork → branch → PR. See CONTRIBUTING.md (or open an issue/discussion if unsure).

License

  • Source code is licensed under the PolyForm Noncommercial License 1.0.0.
  • You are free to use, study, and build on this project for non-commercial purposes.
  • Commercial use — including distributing the app, charging for it, or monetizing it with ads or IAP — is not permitted without explicit written permission from the author.
  • Contact timmy@llm-hub.app for commercial licensing enquiries.

Support

Notes

  • This README is intentionally concise — consult ModelData.kt for exact model variants, sizes, and format details.

Star History

Star History Chart

关于 About

Local AI Assistant on your phone
aigemma3gemma3ngemma4gemma4-agent-skillsgptossgranitelfm25llamallmllm-inferencemistralphi4ragstable-diffusionwhisper

语言 Languages

C++34.3%
C19.5%
Kotlin17.1%
Swift7.5%
TypeScript6.7%
Dart3.4%
Cuda3.2%
Shell1.5%
Metal1.4%
CMake1.3%
Python0.9%
Objective-C0.8%
GLSL0.7%
WGSL0.4%
Go Template0.4%
Objective-C++0.3%
CSS0.3%
JavaScript0.2%
Ruby0.1%
Batchfile0.0%
Dockerfile0.0%
Starlark0.0%
Nunjucks0.0%
PowerShell0.0%
HTML0.0%
Makefile0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
656
Total Commits
峰值: 58次/周
Less
More

核心贡献者 Contributors