off-grid-ai/OGAM

★ 3,129⑂ 301

The Swiss Army Knife of Offline AI. Chat, see, speak, and generate images on your phone or Mac — GGUF LLMs, vision, Whisper speech-to-text, Stable Diffusion, tool calling, and local-network servers.

About off-grid-ai/OGAM

off-grid-ai/OGAM is an open-source project on GitHub, mainly written in TypeScript. The Swiss Army Knife of Offline AI. Chat, see, speak, and generate images on your phone or Mac — GGUF LLMs, vision, Whisper speech-to-text, Stable Diffusion It currently holds 3,129 stars and 301 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Local & On-Device AI board.

GitHub Repository Details

Repository off-grid-ai/OGAM · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/off-grid-ai/OGAM/blob/HEAD/Off Grid AI Logo

Off Grid AI

The Swiss Army Knife of On-Device AI

Chat. Generate images. Use tools. See. Listen. All on your phone or Mac. All offline. Zero data leaves your device.

GitHub stars License: MIT Google Play App Store Platform codecov Slack Pro

---

BUILT BY

https://github.com/off-grid-ai/OGAM/blob/HEAD/Wednesday Solutions

---


Off Grid AI Pro

A voice, personas, and actions. $69 for life, or $49/year.


Pro is an optional, additive tier. It gives the assistant a voice that talks back, personas you shape, and the tools to draft real actions you approve. One license covers your phone and your Mac. All on-device.

What Pro adds

→ Get Pro access - $69 once and it is yours forever (the price climbs as more people join, never down), or $49/year.

Pair it with Off Grid AI Desktop on your Mac. One Pro license covers both.

---

Not just another chat app

Most "local LLM" apps give you a text chatbot and call it a day. Off Grid AI is a complete offline AI suite — text generation, image generation, vision AI, voice transcription, tool calling, and document analysis, all running natively on your phone's or Mac's hardware.

---

What can it do?


Onboarding

Text Generation

Image Generation

Vision AI

Attachments

Tool Calling

Text Generation — Run Qwen 3, Llama 3.2, Gemma 3, Phi-4, and any GGUF model. Streaming responses, thinking mode, markdown rendering, 15-30 tok/s on flagship devices. Bring your own .gguf files too.

GPU & NPU Acceleration — Your phone has silicon sitting idle. Off Grid uses it. Adreno GPUs via OpenCL run 20-40 tok/s on a Snapdragon 8 Gen 2+, against 15-30 on CPU; Apple Silicon uses Metal. The app detects what your device has and defaults to the fastest backend that works, and you can override it in Settings. The Hexagon NPU (Snapdragon) is there too, marked experimental because it is — it only accelerates Q4_0 and Q8_0 quants, a K-quant silently falls back to CPU, and some model architectures come out garbled on it. Models that can actually use the GPU or NPU are badged in the model list, so you pick the right quant before you download 4GB.

Remote LLM Servers — Connect to any OpenAI-compatible server on your local network (Ollama, LM Studio, LocalAI). Discover models automatically, stream responses via SSE, store API keys securely in the system keychain. Switch seamlessly between local and remote models.

Tool Calling — Models that support function calling can use built-in tools: web search, calculator, date/time, device info, and knowledge base search. Automatic tool loop with runaway prevention. Clickable links in search results.

Project Knowledge Base — Upload PDFs and text documents to a project's knowledge base. Documents are chunked, embedded on-device with a bundled MiniLM model, and retrieved via cosine similarity — all stored locally in SQLite. The search_knowledge_base tool is automatically available in project conversations.

Image Generation — On-device Stable Diffusion with real-time preview. NPU-accelerated on Snapdragon (5-10s per image), Core ML on iOS. 20+ models including Absolute Reality, DreamShaper, Anything V5.

Vision AI — Point your camera at anything and ask questions. SmolVLM, Qwen3-VL, Gemma 3n — analyze documents, describe scenes, read receipts. ~7s on flagship devices.

Voice Input - On-device Whisper speech-to-text. Tap the microphone to start and stop, or use Auto and Hands-free modes. No audio ever leaves your phone.

Document Analysis — Attach PDFs, code files, CSVs, and more to your conversations. Native PDF text extraction on both platforms.

AI Prompt Enhancement — Simple prompt in, detailed Stable Diffusion prompt out. Your text model automatically enhances image generation prompts.

Memory You Can See and Control — A phone has finite RAM, and a 4GB model does not politely share it. The model manager shows you what is resident right now and what each one is costing you in RAM, with a per-model eject. Model Loading picks the policy: Lean keeps one model in memory at a time, Balanced co-resides models that fit and swaps the ones that don't, Aggressive commits a larger share of RAM so bigger models load. If a load is refused, Load Anyway overrides it — your device, your call. When a model gets evicted mid-conversation, the chat says so and offers to bring it back rather than silently failing.

Download Manager — Three downloads run at once, the rest FIFO-queue and show as Queued instead of quietly stalling. Pause, resume, retry, cancel. Downloads survive backgrounding the app.

---

Performance

| Task | Flagship | Mid-range | |------|----------|-----------| | Text generation (CPU) | 15-30 tok/s | 5-15 tok/s | | Text generation (GPU / OpenCL) | 20-40 tok/s | — | | Image gen (NPU) | 5-10s | — | | Image gen (CPU) | ~15s | ~30s | | Vision inference | ~7s | ~15s | | Voice transcription | Real-time | Real-time |

Tested on Snapdragon 8 Gen 2/3, Apple A17 Pro. Results vary by model size and quantization.

---

Install

https://github.com/off-grid-ai/OGAM/blob/HEAD/Download on the App Store https://github.com/off-grid-ai/OGAM/blob/HEAD/Get it on Google Play

Or grab the latest APK from GitHub Releases.

macOS: The iOS App Store version runs natively on Apple Silicon Macs via Mac Catalyst / iPad compatibility.

Build from source

git clone https://github.com/off-grid-ai/OGAM.git
cd OGAM
npm install

Android

cd android && ./gradlew clean && cd .. npm run android

iOS

cd ios && pod install && cd .. npm run ios
Requires Node.js 20+, JDK 17 / Android SDK 36 (Android), Xcode 15+ (iOS). See full build guide.

---

Testing

CI codecov

Tests run across three platforms on every PR:

| Platform | Framework | What's covered | |----------|-----------|----------------| | React Native | Jest + RNTL | Stores, services, components, screens, contracts | | Android | JUnit | LocalDream, DownloadManager, BroadcastReceiver | | iOS | XCTest | PDFExtractor, CoreMLDiffusion, DownloadManager |

npm test              # Run all tests (Jest + Android + iOS)

This project is tested with BrowserStack.

---

Documentation

| Document | Description | |----------|-------------| | Architecture & Technical Reference | System architecture, design patterns, native modules, performance tuning | | Codebase Guide | Comprehensive code walkthrough | | Design System | Brutalist design philosophy, theme system, tokens | | Visual Hierarchy Standard | Visual hierarchy and layout standards |

---

Community

Join the conversation on Slack — ask questions, share feedback, and connect with other Off Grid AI users and contributors.

---

Contributing

Contributions welcome! Fork, branch, PR. See development guidelines for code style and the codebase guide for patterns.

---

Acknowledgments

Built on the shoulders of giants: llama.cpp | whisper.cpp | llama.rn | whisper.rn | local-dream | ml-stable-diffusion | MNN | Hugging Face

---

Star History

https://github.com/off-grid-ai/OGAM/blob/HEAD/Star History Chart

Off Grid AI — Your AI, your device, your data.

No cloud. No data harvesting. Just AI that works anywhere.

Join the Community on Slack

GitHub Stars & Activity

3,129Stars
301Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars3,129
Forks301
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

ChatGPTNextWeb / NextChat

TypeScript★ 88,790⑂ 59,030
2

chatboxai / chatbox

TypeScript★ 41,812⑂ 4,252
3

dyad-sh / dyad

TypeScript★ 21,587⑂ 2,639
4

lidge-jun / opencodex

TypeScript★ 15,561⑂ 1,180
5

browseros-ai / BrowserOS

TypeScript★ 13,720⑂ 1,460
6

getumbrel / llama-gpt

TypeScript★ 10,937⑂ 704
7

miurla / morphic

TypeScript★ 9,133⑂ 2,348
8

n4ze3m / page-assist

TypeScript★ 8,220⑂ 784

More AI Rankings