PromptHub
Back to Blog
Developer Tools Machine Learning

techjarves/USB-Uncensored-LLM: Portable Air-Gapped AI from USB

B

Bright Coding

Author

10 min read 13 views
techjarves/USB-Uncensored-LLM: Portable Air-Gapped AI from USB

Developers and privacy-conscious users increasingly need local AI that works without cloud dependencies, complex installations, or internet connectivity. Setting up large language models typically involves package managers, dependency hell, registry modifications, and substantial system configuration—barriers that multiply when moving between machines or operating in restricted environments. USB-Uncensored-LLM addresses this directly: a zero-dependency, portable local AI environment that runs uncensored LLMs from any USB drive or SSD across Windows, macOS, and Linux without requiring installation or network access.

This article examines what USB-Uncensored-LLM actually delivers, how its architecture enables genuine cross-platform portability, and where it fits in the broader landscape of local AI tooling. With 1,893 GitHub stars and 424 forks, the project has attracted meaningful community interest despite its deprecated status—a transition we'll address directly.

What is USB-Uncensored-LLM?

USB-Uncensored-LLM is an open-source project by techjarves designed to create a fully air-gapped, plug-and-play local AI environment. The core premise: package portable Python↗ Bright Coding Blog, isolated engine binaries, and model weights onto removable storage, then execute natively on whatever host machine you connect to. No system permissions, no registry edits, no package managers, no internet required after initial setup.

The project sits in the local LLM inference category alongside tools like Ollama, LM Studio, and llama.cpp, but distinguishes itself through explicit portability as a primary design constraint rather than an afterthought. Where most local AI tools assume a fixed workstation, USB-Uncensored-LLM optimizes for mobility across heterogeneous environments—corporate locked-down PCs, air-gapped facilities, shared lab machines, or personal devices running different operating systems.

Repository statistics reflect moderate traction: 1,893 stars, 424 forks, primary language listed as HTML (reflecting the bundled web UI), and last commit dated 2026-07-04. However, critical context: the repository is officially deprecated. All active development, including Windows crash fixes and feature work, has moved to Uncensored-Local-Studio. This article documents USB-Uncensored-LLM as it exists, but readers seeking current support should migrate to the successor project.

The "uncensored" aspect refers to integration of ablative and heretic fine-tuned models—specifically models with safety alignment vectors mathematically purged or aggressively overridden. This is a deliberate technical choice with significant ethical implications, which the project acknowledges through its disclaimer about "uncompromising computational freedom."

Key Features

Zero-dependency execution environment. The project ships with portable Python and isolated engine binaries. Each OS folder contains native installers that download only the ~50MB execution engine specific to that platform into Shared/bin. This eliminates the typical Python virtual environment, CUDA toolkit, or system library requirements that fracture cross-machine portability.

Unified Shared volume architecture. Rather than duplicating multi-gigabyte model weights per platform, the Shared folder centralizes bin/ (executables), chat_data/ (persistent conversation history), models/ (GGUF weights), and python/ (isolated environment). The intelligent volume system lets you download 5GB+ models once and access them natively across Windows, macOS, and Linux without duplication—a genuine storage optimization for portable media.

Hardware acceleration without reconfiguration. Under the hood, USB-Uncensored-LLM uses a custom-compiled Ollama engine that dynamically leverages AVX CPU instructions, NVIDIA CUDA, or Apple Metal depending on whatever host machine it's plugged into. This adaptive acceleration is essential for the portable use case: you don't know whether your next host has an RTX 4090, M3 Max, or integrated graphics until you plug in.

Network-proxied mobile UI. A custom Python HTTP server serves a dark-mode web interface accessible from phones or tablets on the same WiFi network. The server handles routing without complex CORS configuration—relevant for users who want the compute on a desktop but the interface on a mobile device.

Curated uncensored model catalog. The installer provides direct access to specific fine-tuned variants: Gemma 2 2B Abliterated (~1.6 GB), Gemma 4 E4B Ultra Uncensored Heretic (~5.34 GB), Qwen 3.5 9B Uncensored Aggressive (~5.2 GB), plus support for arbitrary HuggingFace GGUF downloads.

Use Cases

Air-gapped or restricted computing environments. Researchers, journalists, or engineers working in facilities with no external network access can carry a complete AI environment on encrypted removable storage. The zero-install design means no administrative privileges or software approval processes are required on host machines.

Cross-platform development workflows. Developers who regularly switch between Windows workstations, MacBooks, and Linux servers can maintain a single portable AI environment with persistent chat history. The Shared/chat_data folder ensures conversations follow the drive, not the machine.

Mobile/edge inference on Android. Through Termux integration, the full stack↗ Bright Coding Blog runs on ARM64 Android devices with 6GB+ RAM. This enables genuine pocket AI for field use cases—technical documentation queries, code review assistance, or offline analysis where cloud connectivity is unreliable or prohibited.

Privacy-preserving personal AI. Users who categorically refuse cloud AI services get local inference with no telemetry, no API keys, no account creation. The "uncensored" model selection additionally removes content filtering that some users view as overreach, though this carries corresponding responsibility.

Temporary/shared machine access. Students, contractors, or travelers using library computers, hotel business centers, or borrowed laptops can run sophisticated AI without leaving traces on the host system or installing anything permanent.

Installation & Setup

The setup process varies by operating system but follows a consistent pattern: initialize the engine, download models, then launch. Minimum requirements: 8 GB storage (16 GB recommended), 8 GB RAM for 2B/4B models, 16 GB RAM for 9B/12B models.

Step 1: Initialize the Engine

Navigate to your current OS folder and run the install script:

# Windows: Double-click or run from command prompt
Windows/install.bat

# macOS: Open Terminal, drag in the script, press Enter
Mac/install.command

# Linux
bash Linux/install.sh

# Android (Termux from F-Droid, NOT Play Store)
bash Android/install.sh

This downloads the ~50MB platform-specific Ollama engine binary to Shared/bin. The README specifically notes that Windows provides the most polished interactive model selection interface.

Step 2: Download AI Models

Recommended path: Use Windows/install.bat for its terminal-based catalog, even if you primarily run on other platforms, since models download to the shared Shared/models folder.

Alternative: Download .gguf weights directly from HuggingFace and place them in Shared/models/ manually.

Step 3: Launch

# Windows
Windows/start-fast-chat.bat

# macOS
Mac/start.command

# Linux
bash Linux/start.sh

# Android (Termux)
bash Android/start.sh

The engine starts in background and automatically opens your default browser to the local chat UI.

Local Disk Installation

For stationary use on internal SSD (significantly faster than USB):

# Clone or download to C:\ or D:\ drive
cd [project-folder]
Windows/install.bat    # Select models
Windows/start-fast-chat.bat

Real Code Examples

The README provides explicit launch commands rather than API-level code. These are reproduced exactly with explanatory context.

Basic Linux Launch Sequence

# Navigate to project root on mounted USB/disk
cd /media/username/USB-Uncensored-LLM

# One-time engine initialization
bash Linux/install.sh

# Subsequent launches
bash Linux/start.sh

The install.sh script detects the Linux distribution, downloads ollama-linux to Shared/bin/ollama-linux, and verifies executable permissions. The start.sh script then launches the Python HTTP server on a dynamic or default port, initializes the Ollama engine with the selected model, and opens http://localhost:3333 or similar.

Android Termux Session with Wake Lock

# Prevent Android from killing the background process
termux-wake-lock

# Navigate to project (copied via USB OTG or git clone)
cd ~/storage/shared/USB-Uncensored-LLM

# Initialize (keep Termux foreground during downloads)
bash Android/install.sh

# Launch
bash Android/start.sh

The README emphasizes keeping Termux in the foreground during downloads because Android's aggressive background process management will interrupt large file transfers. The termux-wake-lock command requests a partial wake lock through Android's PowerManager, preventing CPU suspension.

LAN Mobile Access Configuration

No explicit configuration code is required—the Python server automatically binds to all interfaces. The terminal displays the network-accessible URL:

Network Access: http://192.168.1.15:3333

From any device on the same WiFi network, navigate to this address in Safari or Chrome. If pages fail to load, the README identifies Windows Firewall as the typical blocker—allow incoming connections on port 3333.

Note: The README contains no additional code examples beyond these shell commands. The web UI is pre-built HTML/CSS/JavaScript↗ Bright Coding Blog; no frontend integration code is documented.

Advanced Usage & Best Practices

Model selection for host hardware. The README provides explicit guidance: use Gemma 2 2B Abliterated on older machines or RAM-constrained environments. The 9B/12B models require 16GB system memory for fluid inference. This isn't merely a recommendation—running oversized models triggers swap thrashing and "slow generation speeds" per the troubleshooting section.

Windows-specific execution alias conflict. A known failure mode: Windows 10/11's "App Execution Aliases" for python.exe can intercept calls and redirect to the non-existent Microsoft Store Python. The documented workarounds are running via explicit command prompt invocation or elevated privileges ("Run as Administrator").

Android battery and thermal management. LLM inference is computationally intensive. The README advises plugging in chargers, closing other apps, and accepting 3-10 tokens/second on 2B models versus 30-50+ on desktop GPUs. These figures represent realistic expectations for ARM64 mobile inference, not benchmarks for comparison against optimized desktop stacks.

Security considerations for portable storage. While the README doesn't address encryption, the air-gapped, portable nature implies users should consider full-disk encryption for any sensitive chat_data or custom models on removable media. This is editorial guidance, not documented project policy.

Comparison with Alternatives

Feature USB-Uncensored-LLM Ollama (standard) LM Studio
Primary design goal Cross-platform USB portability Single-machine local AI User-friendly desktop GUI
Installation Zero-install from removable media System package or installer Downloaded application
Cross-machine model sharing Native via Shared folder Manual ~/.ollama migration Manual export/import
Hardware acceleration Dynamic CUDA/Metal/AVX Static per installation Static per installation
Mobile/edge support Native Android (Termux) Community Termux efforts Not supported
UI paradigm Browser-based, network-proxied CLI + optional web UI Native desktop application
Active maintenance Deprecated (moved to successor) Active Active

USB-Uncensored-LLM's genuine differentiation is portability as architecture, not capability. Standard Ollama offers equivalent inference with broader community support; LM Studio provides superior desktop UX. Where this project fits is specifically the USB/mobile/air-gapped intersection that neither alternative optimizes for. The deprecation to Uncensored-Local-Studio suggests the maintainer recognized limitations in the original architecture that required a ground-up rebuild.

FAQ

Is USB-Uncensored-LLM still maintained? No. The repository is deprecated as of the last commit; active development moved to Uncensored-Local-Studio.

What license covers this project? Not specified in the repository. Users should verify licensing before commercial use or redistribution.

Can I use this on a work computer without admin rights? Yes—this is a core design goal. No system permissions or registry edits are required.

Why does the Windows script close immediately? Likely Windows App Execution Aliases interfering. Run via command prompt or as Administrator.

How do I add custom models? Download .gguf files from HuggingFace directly into Shared/models/.

Does it work on Apple Silicon Macs? Yes, with native Metal GPU acceleration via the macOS engine binary.

What's the difference between "ablated" and "heretic" models? Ablated models have safety vectors mathematically removed; heretic models are aggressively fine-tuned to comply with all prompts regardless of content.

Conclusion

USB-Uncensored-LLM represents a genuinely interesting architectural experiment in portable AI—treating cross-platform mobility and air-gapped operation as first-class constraints rather than edge cases. The unified Shared volume design, dynamic hardware acceleration, and zero-dependency execution solve real problems for users who need AI capabilities across heterogeneous, restricted, or offline environments.

However, the deprecated status is decisive. New users should evaluate whether the existing release meets immediate needs or whether migrating directly to Uncensored-Local-Studio is preferable for ongoing support and bug fixes. The 1,893 stars and 424 forks indicate the concept resonated; the archival suggests execution challenges that required rearchitecting.

For developers, privacy advocates, or field engineers needing uncensored local LLMs on portable storage, the tool remains functional as documented. For those seeking active maintenance, community growth, or production reliability, treat this as a reference implementation and follow the migration path.

Explore the repository at https://github.com/techjarves/USB-Uncensored-LLM and evaluate whether the portable, air-gapped approach fits your specific constraints.


For related local AI deployment strategies, see [INTERNAL_LINK: local-llm-deployment-guide].

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

Recommended Prompts

View All
All tools