Run a fully private, elite AI assistant from your pocket — Zero installation. Zero cloud. Zero traces.
This project transforms any high-speed USB Drive into a Sovereign AI Workstation. Powered by Llamafile, it allows you to carry state-of-the-art Large Language Models (LLMs) and run them on any machine without hardware setup, internet access, or administrator privileges.
| 🔌 Zero-Footprint | 🔒 Hardened Privacy | ⚡ High Performance |
|---|---|---|
| No registry changes or local installs. Plug in, run, and pull out. | Your data never transit through the cloud. Total air-gap safety. | Native speed via TinyBLAS and GPU offloading support. |
The "Plug & Chat" experience, visualized:
graph LR
A[fa:fa-usb USB Plugged] --> B{fa:fa-desktop OS Detection}
B -- Windows --> C[fa:fa-terminal launch_ai.bat]
B -- Unix --> D[fa:fa-terminal launch_ai.sh]
C --> E[fa:fa-list Model Selector]
D --> E
E --> F[fa:fa-bolt AI Engine Engine]
F --> G[fa:fa-globe Browser UI]
G --> H[fa:fa-commenting Private Chat]
style A fill:#2c3e50,stroke:#3498db,stroke-width:2px,color:#fff
style H fill:#27ae60,stroke:#2ecc71,stroke-width:2px,color:#fff
style F fill:#e67e22,stroke:#d35400,stroke-width:2px,color:#fff
- Connect your USB 3.0+ drive to a high-speed port (Blue/Red).
- Format as exFAT (Required for files >4GB).
- Download the latest Llamafile binary from GitHub Releases.
- Place it in the root directory and rename it to
llamafile.exe.
- Pick a GGUF model from Hugging Face.
- Move it into the
📂 models/folder.- Recommended: Qwen 3 8B (Q4_K_M) or Llama 3 8B.
- Windows: Double-click
launch_ai.bat. - Linux/macOS: Run
sh launch_ai.shin the terminal.
A professionally organized USB drive ensures maximum speed and ease of use:
📁 USB DRIVE (exFAT)
├── 📄 llamafile.exe # The core engine
├── 📄 launch_ai.bat # Windows entry point
├── 📄 launch_ai.sh # Unix entry point
├── 📁 models/ # Your brain library (.gguf files)
│ └── 📄 qwen_3_8b.gguf
├── 📁 system_prompts/ # Persona templates (.txt)
│ ├── 📄 Code_Architect.txt
│ └── 📄 ...
├── 📁 scripts/
│ └── 📄 update_llamafile.ps1 # Auto-update tool
└── 📁 assets/ # documentation visualsImportant
To achieve the best inference speed, always use a USB 3.1 Gen 2 port or a portable NVMe SSD.
Llamafile automatically attempts to use your GPU. If you have an NVIDIA GPU, inference will be up to 10x faster. No drivers needed beyond standard OS defaults.
You can edit the launch_ai scripts to include:
--threads 8: Optimize for your specific CPU core count.-c N| Context window size | Default is 512; increase for longer conversations (consumes more RAM) |
To ensure no trace is left on the host computer:
The launch_ai.bat script now supports launching in Incognito/Private mode for Chrome, Edge, and Firefox. This prevents the browser from saving:
- Chat history in cache.
- Session cookies.
- Form data.
Always use the "Clear All" option in the Llamafile UI before unplugging your drive to wipe the current session from the system's memory.
Keep your AI engine up-to-date without manually visiting GitHub:
- Open PowerShell.
- Run the update script:
.\scripts\update_llamafile.ps1
- The script will automatically fetch the latest
llamafile.exefrom the official repository.
Inject "Experience" into your AI. Copy templates from 📁 system_prompts/ directly into the UI:
- Code Architect: For deep technical builds.
- Security Auditor: For pessimistic code reviews.
- Creative Writer: For vivid storytelling.
Click to expand common fixes
- "Permission Denied" (Linux/macOS): Run
chmod +x llamafile.exe launch_ai.sh. - Extremely Slow Loading: verify you are not using a USB 2.0 (Black) port.
- Out of Memory: Try a smaller model (e.g., 3B or 1.5B parameters).
Made with ❤️ by Gg — Carry your AI everywhere.
