offgrid-ai is a simple utility that stitches together local LLM inference backends, with an agentic harness, and simplifies the complexity of configuring models to run on your personal hardware.
I built this as a utility for myself since I like exploring local models on my personal laptop (M4 Pro Mac 48 GB). I haven't tested this on Linux or Windows, or for NVIDIA GPUs. Open for contributions.
Recommended workflow:
- Download models from HuggingFace (or use models you already have from LM Studio, oMLX, etc.)
- Configure using the
offgrid-aiinteractive setup (explains all the settings & flags) - Start chatting and coding in Pi — offgrid-ai handles the server lifecycle
- Download models from HuggingFace with a quant picker and RAM fit indicators
- Auto-detects models from LM Studio, oMLX, Ollama, and HuggingFace cache
- Glass-box setup — every configuration flag gets an explanation card with tradeoffs and memory impact
- Model management — delete models from disk, remove configurations, reconfigure settings
- Auto-detects MTP (multi-token prediction) and QAT (quantization-aware training) models, applies the correct flags
- Three backends: llama.cpp (GGUF), oMLX (MLX on Apple Silicon), Ollama (GGUF + MLX)
- Start / stop servers automatically for chat sessions
- oMLX integration — auto-start, MTP enable via admin API, restart after download/deletion
- Ollama integration — respects
OLLAMA_HOSTenv var, auto-start server, model scanning
Open your terminal and run:
curl -fsSL https://raw.githubusercontent.com/eeshansrivastava89/offgrid-ai/main/install.sh | bashThis installs offgrid-ai and its prerequisite (Node.js via nvm if needed), then launches offgrid-ai automatically. The first launch walks you through installing all core dependencies — llama.cpp runtime, Pi chat agent, and HuggingFace CLI, then drops you into the model picker to download a model and start chatting.
If you already have Node.js installed, you can also install with npm:
npm install -g offgrid-ai@latestThe curl installer is recommended for first-time setup because it also verifies the global npm bin directory is on your PATH. The npm package itself does not run install scripts or mutate shell config during npm install.
The first time you run offgrid-ai, it looks for models already on your machine. If it doesn't find any, you can download one directly from HuggingFace — just pick "↓ Download a model" and enter a repo ID (e.g. unsloth/Qwen3.5-4B-GGUF).
offgrid-ai
Pick a model from the list and press Enter. offgrid-ai configures the rest and opens the Pi coding agent.
offgrid-ai # model picker — pick, configure, download, or manage models
offgrid-ai update # update offgrid-ai to the latest version
offgrid-ai status # see if any model is running
offgrid-ai stop # stop the running model
offgrid-ai uninstall # remove offgrid-aiThese are good starting points sorted by minimum RAM. All are available on HuggingFace — paste the repo ID into offgrid-ai's "Download a model from Hugging Face" option.
| Model | Min RAM | GGUF (llama.cpp) | MLX |
|---|---|---|---|
| Qwen 3.5 4B (Q4_K_M) | 8 GB | unsloth/Qwen3.5-4B-GGUF |
mlx-community/Qwen3.5-4B-4bit |
| Qwen 3.5 9B (Q4_K_S) | 16 GB | unsloth/Qwen3.5-9B-GGUF |
lmstudio-community/Qwen3.5-9B-MLX-4bit |
| Gemma 4 12B (Q4_K_XL) | 24 GB | unsloth/gemma-4-12B-it-qat-GGUF |
mlx-community/gemma-4-12B-it-qat-4bit |
| Gemma 4 26B (Q4_K_XL) | 32 GB | unsloth/gemma-4-26B-A4B-it-qat-GGUF |
mlx-community/gemma-4-26b-a4b-4bit |
| Qwen 3.6 35B (Q4_K_S) | 32 GB | unsloth/Qwen3.6-35B-A3B-GGUF |
mlx-community/Qwen3.6-35B-A3B-4bit |
| Qwen 3.6 35B (Q4_K_M) | 48 GB | unsloth/Qwen3.6-35B-A3B-GGUF |
— |
| Gemma 4 31B (Q4_K_XL) | 64 GB | unsloth/gemma-4-31B-it-qat-GGUF |
mlx-community/gemma-4-31b-4bit |
| Qwen 3.6 27B (Q4_K_M) | 64 GB | unsloth/Qwen3.6-27B-MTP-GGUF |
mlx-community/Qwen3.6-27B-4bit |
Tip: When downloading GGUF, offgrid-ai shows a quant picker with RAM fit indicators so you can choose the right quantization for your machine.
- macOS (Apple Silicon) — full support: llama.cpp (GGUF), oMLX (MLX), Ollama (GGUF + MLX). Requires Metal GPU (all Apple Silicon Macs have this). Virtual machines without GPU passthrough will fail on model load.
- Linux — llama.cpp (GGUF) and Ollama. oMLX is Apple Silicon exclusive.
- Windows — not supported
Run any command with --help:
offgrid-ai --helpgit clone https://github.com/eeshansrivastava89/offgrid-ai.git
cd offgrid-ai
npm install
node bin/offgrid-ai.mjsPersonal project by Eeshan Srivastava.