# Repository Briefing: PurpleDoubleD/locally-uncensored
> Source: https://repoforai.com/repo/PurpleDoubleD/locally-uncensored (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/PurpleDoubleD/locally-uncensored
- **Official Docs / Website**: https://locallyuncensored.com
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: TypeScript
- **License**: AGPL-3.0
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 22/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v3.1.5 (2026-12-02) — https://github.com/PurpleDoubleD/locally-uncensored/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Local AI, Self-Hosted, GPU, API
- **Momentum**: 4,859 ★ total (+5 24h / +126 7d) · 778 forks
- **Topics**: `agent`, `ai-chat`, `ai-studio`, `all-in-one`, `coding-agent`, `desktop-app`, `flux`, `image-generation`, `linux`, `llm`, `local-ai`, `local-llm`
- **When to Use**: Best for: Individuals who want one desktop workspace for local document chat, reviewable repository edits, and GPU-based media generation while keeping an existing inference engine. Skip if: You primarily need a shared browser portal, require direct control of custom ComfyUI graphs, or need offline upscaling and object removal within the same app.

## Overview
```text
### Architecture & Core Mechanics
Locally Uncensored is a TypeScript/React desktop client packaged with Tauri. The repository separates the main UI in `src/`, the desktop shell in `src-tauri/`, and the phone client in `mobile-client/`. The frontend manifest includes Zustand for state management, `pdfjs-dist` and `mammoth` for document handling, and the Tauri shell and updater plugins for desktop integration.

Chat and media generation use different runtimes. Setup discovers a local inference engine or installs LU Engine if one is needed. The model manager can link weights already held by Ollama or LM Studio, while ComfyUI executes image and video workflows behind the Create tab. Settings expose a single OpenAI-compatible address for local models. Agent tooling supports MCP, and remote inference is optional through LU Cloud or user-configured providers and compatible endpoints.

### Key Capabilities & Differentiators
Chat combines an on-device document index with vision input on compatible models, voice input and playback, memory, personas, and conversation compaction that summarizes older turns. The coding workspace maps repositories, previews diffs before applying edits, runs tests, and supports typed Git tools and per-project `.lurules`. Ask, Plan, and Bypass are per-conversation modes; verify the approval behavior of the mode you intend to use before giving it access to an important workspace.

Create wraps ComfyUI workflows for text-to-image, masked inpainting, image-to-video, clip extension, and character LoRA training. It watches the local LoRA folder and lets users stack adapters and adjust their strengths. Model choice materially changes the hardware requirement: SDXL options are listed at 6–8 GB of VRAM, Wan 2.2 TI2V 5B at 12 GB or more, and Qwen-Image 2.1 at 16–24 GB with ComfyUI 0.37.0 or newer.

### Trade-offs & Limitations
Compared with a model-first tool like LM Studio, this app adds media generation and a repository workspace without forcing you to replace your inference engine. Compared with a browser-first option such as Open WebUI, its focus is a desktop workstation, not a shared web portal. Managed ComfyUI removes the need to build node graphs for the workflows in Create, but users who need custom graphs should not assume the simplified interface provides the same control as standalone ComfyUI.

The main costs of local execution are model storage, GPU compatibility, and runtime memory. An 8 GB RAM machine can run a small 3B chat model on CPU, but that does not size the machine for image or video work. LU Cloud shifts heavier jobs to hosted GPUs at a cost; Upscale and Erase Object specifically have no local lane in the app. The AGPL-3.0 app license does not grant commercial rights to model weights: assess each model separately, particularly research-only options such as Qwen-Image 2.1.

### Hardware & Deployment Guide
The desktop installer needs neither Docker nor a terminal. Windows 10/11 has an x64 setup executable and an MSI; Linux builds come as AppImage, DEB, and RPM. Apple Silicon on macOS 14+ is beta: computer control is not fully tested, and remote access and automatic updates are unconfirmed. The recent v3.1.4 and v3.1.5 release entries retain the Windows and Linux package choices. Android 7+ arm64 is distributed as a sideloaded APK; iOS is in App Store review, not a generally available download.

For source builds, `package.json` requires Node.js 22 or newer. Install dependencies with `npm install`, run `npm run dev` for the browser development UI, and use `npm run tauri build` for desktop packaging. After the required engines and models are downloaded, supported local workflows can run offline without an account. Offline capability is not the same as no network activity: the app checks GitHub Releases for updates and records Cloud-switch events. Keep the Local API and phone access on trusted networks unless you have verified the relevant access controls.
```

## Key Capabilities
```text
- Engine reuse: Detects 12 local runtimes, including Ollama, LM Studio, llama.cpp, and vLLM; can link existing Ollama or LM Studio models without copying weights.
- API integration: Settings expose local models through one OpenAI-compatible endpoint.
- Media runtime: The app installs, starts, repairs, and updates ComfyUI and reads the local LoRA folder live for stacking and strength controls.
- Coding workflow: Per-project workspaces combine repository mapping, diff review, test execution, typed Git tools, and .lurules.
- Hardware tiers: CPU-only 3B chat starts at 8 GB of RAM; SDXL images start at 6–8 GB of VRAM; Qwen-Image 2.1 is listed at 16–24 GB.
- Mobile access: The Android companion supports on-device chat and can use desktop-hosted models over home Wi-Fi.
```

## Quick Start / Clone
```bash
git clone https://github.com/PurpleDoubleD/locally-uncensored.git
cd locally-uncensored
npm install
npm run dev          # browser dev mode
npm run tauri build  # desktop binary
```
