Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

feat: v2.2.2 — Codex agent, MCP tools, permissions, file upload, thinking, UI overhaul

PurpleDoubleD88ec91a954a6
diff --git a/README.md b/README.md
index 9a159ff9..9146176f 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
# Locally Uncensored
-**The only local AI app that does Chat + Agent Mode + Images + Video — all in one.**
+**Chat + Coding Agent + Images + Video — all local, all in one.**
No cloud. No censorship. No data collection. Your AI, your rules.
@@ -16,15 +16,15 @@ No cloud. No censorship. No data collection. Your AI, your rules.
<img src="docs/demo.gif" alt="Locally Uncensored Demo" width="700">
-*Chat with AI personas, generate images, create videos — all running locally on your machine.*
+*Chat with AI, code with Codex, generate images, create videos — all running locally on your machine.*
-[Getting Started](#-quick-start) · [Portable Download](#-portable--no-install) · [Features](#-features) · [Why This App?](#-why-locally-uncensored) · [Roadmap](#-roadmap) · [Contributing](CONTRIBUTING.md)
+[Download](#-download) · [Features](#-features) · [Quick Start](#-quick-start) · [Why This App?](#-why-locally-uncensored) · [Roadmap](#-roadmap)
</div>
---
-### 📸 Screenshots
+### Screenshots
| Chat with Personas | Image / Video Generation |
|:---:|:---:|
@@ -34,110 +34,113 @@ No cloud. No censorship. No data collection. Your AI, your rules.
---
-## v2.2.1 — Latest Release (Hotfix)
+## v2.2.2 — Latest Release
-**Fixed:** Model unloading now works correctly, GPU offloading enabled by default (`num_gpu: 99`), silent error swallowing replaced with console logging. Resolves high CPU/RAM usage on systems with dedicated GPUs.
+**Codex Coding Agent, MCP Tools, Permissions, File Upload, Thinking Mode**
-See the full [Release Notes](https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.2.1).
+- **Codex Coding Agent** — Three-tab system (LU | Codex | OpenClaw). Dedicated coding mode with file tree, native folder picker, shell execution, up to 20 iterations per task.
+- **13 MCP Tools** — Dynamic tool registry: web_search, web_fetch, file_read, file_write, file_list, file_search, shell_execute, code_execute, system_info, process_list, screenshot, image_generate, run_workflow.
+- **Granular Permissions** — 7 categories (web, filesystem, terminal, system, desktop, image, workflow) with blocked/confirm/auto levels. Per-conversation overrides.
+- **File Upload + Vision** — Drag & drop, Ctrl+V paste, clip button. Up to 5 images per message. Works across all providers (Ollama, OpenAI, Anthropic).
+- **Thinking Mode** — Provider-agnostic. Ollama native `think:true`, cloud via system prompt. Collapsible thinking blocks.
+- **Model Load/Unload** — Power icons in header to load/unload models from VRAM.
+- **Smart Tool Selection** — Keyword-based filtering saves ~80% of tool-definition tokens.
+- **JSON Repair** — Fixes broken JSON from local LLMs (trailing commas, single quotes, missing braces).
+- **Native PC Control** — Rust commands for shell, filesystem, system info (async, non-blocking).
+- **UI Overhaul** — 15% larger UI, compact message bubbles, monochrome tool blocks, collapsible code blocks, light mode support.
----
-
-## ❓ Why Locally Uncensored?
+See [Release Notes](https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.2.2).
-Tired of switching between Ollama for chat, ComfyUI for images, and another tool for video? Frustrated with bloated UIs that need Docker and a PhD to set up?
-
-**Locally Uncensored** is the all-in-one solution. One app. One setup. Everything local.
+---
-### How it compares
+## Why Locally Uncensored?
| Feature | Locally Uncensored | Open WebUI | LM Studio | SillyTavern |
|---------|:-:|:-:|:-:|:-:|
-| AI Chat | ✅ | ✅ | ✅ | ✅ |
-| **Multi-Provider** (Ollama + Cloud) | **✅** | ✅ | ✅ | ❌ |
-| **Agent Mode (Tool Calling)** | **✅** | ❌ | ❌ | ❌ |
-| **Model A/B Compare** | **✅** | ❌ | ❌ | ❌ |
-| **Local Benchmark** | **✅** | ❌ | ❌ | ❌ |
-| Image Generation | ✅ | ❌ | ❌ | ❌ |
-| Video Generation | ✅ | ❌ | ❌ | ❌ |
-| Uncensored by Default | ✅ | ❌ | ❌ | ⚠️ |
-| Memory System | ✅ | ⚠️ (plugin) | ❌ | ❌ |
-| **Agent Workflows** | **✅** | ❌ | ❌ | ❌ |
-| LaTeX / Math Rendering | ✅ | ✅ | ❌ | ❌ |
-| One-Click Setup | ✅ | ❌ (Docker) | ✅ | ❌ (Node.js) |
-| 25+ Built-in Personas | ✅ | ❌ | ❌ | ⚠️ (manual) |
-| RAG / Document Chat | ✅ | ✅ | ❌ | ❌ |
-| Voice (STT + TTS) | ✅ | ⚠️ | ❌ | ❌ |
-| Open Source | ✅ | ✅ | ❌ | ✅ |
-| 100% Offline | ✅ | ✅ | ✅ | ✅ |
+| AI Chat | **Yes** | Yes | Yes | Yes |
+| **Coding Agent (Codex)** | **Yes** | No | No | No |
+| **13 MCP Agent Tools** | **Yes** | No | No | No |
+| **Multi-Provider** (Ollama + Cloud) | **Yes** | Yes | Yes | No |
+| **A/B Model Compare** | **Yes** | No | No | No |
+| **Local Benchmark** | **Yes** | No | No | No |
+| Image Generation | **Yes** | No | No | No |
+| Video Generation | **Yes** | No | No | No |
+| **File Upload + Vision** | **Yes** | Yes | Yes | No |
+| **Thinking Mode** | **Yes** | No | No | No |
+| **Granular Permissions** | **7 Categories** | No | No | No |
+| Uncensored by Default | **Yes** | No | No | Partial |
+| Memory System | **Yes** | Plugin | No | No |
+| Agent Workflows | **Yes** | No | No | No |
+| Document Chat (RAG) | **Yes** | Yes | No | No |
+| Voice (STT + TTS) | **Yes** | Partial | No | No |
+| Open Source | **MIT** | MIT | No | AGPL |
+| No Docker | **Yes** | No | Yes | Yes |
---
-## ✨ Features
-
-- **Uncensored AI Chat** — Run abliterated models locally with zero restrictions
-- **Multi-Provider Support** — Ollama (local), OpenAI-compatible (OpenRouter, Groq, LMStudio, vLLM), Anthropic (Claude). Switch providers per conversation.
-- **Agent Mode (Beta)** — Give your AI tools: web search, web fetch, file I/O, code execution, image generation. It chains tools autonomously to answer questions with real data. Best with [Hermes 3](https://ollama.com/library/hermes3).
-- **Model A/B Compare** — Send the same prompt to two models side by side. Compare speed, quality, and token usage in real-time with parallel streaming.
-- **Local Benchmark** — One-click benchmark any model on your hardware. Measures tokens/sec, time-to-first-token. Leaderboard across all tested models.
-- **Memory System** — The AI remembers you across conversations. Context-aware injection scales with model size. Auto-extraction learns from every exchange. Export/import as .md or .json.
-- **Agent Workflows** — Reusable multi-step agent chains. 3 built-in workflows (Research Topic, Summarize URL, Code Review). Visual builder for custom workflows with prompt, tool, condition, and loop steps.
-- **Image Generation** — Text-to-image via ComfyUI with full parameter control
-- **Video Generation** — Text-to-video with Wan 2.1/2.2, HunyuanVideo, LTX support
-- **Document Chat (RAG)** — Upload PDFs, DOCX, or TXT files and chat with your documents
-- **Voice Chat** — Talk to your AI with push-to-talk and hear responses with TTS
-- **LaTeX / Math Rendering** — Full KaTeX support for inline and block math equations
-- **Chat Export** — Export conversations as Markdown or JSON with one click
-- **Token Counter** — Live token usage display with color-coded progress bar
-- **Keyboard Shortcuts** — Ctrl+N (new chat), Ctrl+E (export), Ctrl+L (focus input), Ctrl+/ (shortcuts)
-- **Search Providers** — Agent web search via SearXNG, Brave Search, Tavily, or DuckDuckGo. Configurable in settings.
-- **25+ Personas** — From Helpful Assistant to Roast Master, switchable via dropdown
-- **Model Manager** — Browse uncensored + mainstream models. HOT/AGENT badges. Variant selector for multi-size downloads.
-- **Thinking Display** — See the AI's reasoning in collapsible blocks
-- **Custom Dark Titlebar** — No native Windows chrome. Sleek frameless window with drag region, matching the app's luxury dark aesthetic.
-- **Branded Installer** — Dark-themed NSIS installer with custom header and sidebar images. Premium from first click.
-- **Linear/Arc UI** — Compact, monochrome, collapsible settings. Premium feel.
-- **Privacy First** — Zero tracking. All API calls proxied locally. No analytics.
-- **100% Local** — Everything runs on your machine (cloud providers optional)
-- **Standalone Desktop App** — Tauri v2 Rust backend. Download the .exe, run it.
+## Features
+
+### Core
+- **Uncensored AI Chat** — Abliterated models with zero restrictions. Streaming + thinking display.
+- **Multi-Provider** — Ollama (local), OpenAI-compatible (OpenRouter, Groq, vLLM), Anthropic (Claude). Switch per conversation.
+- **Codex Coding Agent** — Reads codebase, writes code, runs shell commands. File tree with native folder picker. Up to 20 tool iterations.
+- **Agent Mode** — 13 MCP tools: web search, file I/O, shell, code execution, screenshots, system info. Native + Hermes XML fallback.
+- **Image Generation** — FLUX.1, Juggernaut XL, Pony Diffusion via ComfyUI. Full parameter control, no content filter.
+- **Video Generation** — Wan 2.1/2.2, HunyuanVideo, LTX Video on your GPU.
+
+### Intelligence
+- **Thinking Mode** — Provider-agnostic. See the AI's reasoning before the answer.
+- **File Upload + Vision** — Drag & drop, paste, clip button. Vision models analyze images.
+- **Granular Permissions** — 7 tool categories, 3 permission levels, per-conversation overrides.
+- **Smart Tool Selection** — Reduces tool definitions per request by ~80%. JSON repair for local LLMs.
+- **Memory System** — Persistent across conversations. Auto-extraction. Export/import.
+- **Agent Workflows** — Multi-step chains. 3 built-in (Research, Summarize URL, Code Review). Visual builder.
+
+### Productivity
+- **Model A/B Compare** — Same prompt, two models, side by side. Parallel streaming.
+- **Local Benchmark** — One-click benchmark any model. Tokens/sec leaderboard.
+- **Document Chat (RAG)** — Upload PDFs, DOCX, TXT. Hybrid search with source citations.
+- **Voice Chat** — Push-to-talk STT + sentence-level TTS streaming.
+- **25+ Personas** — Pre-built characters. Switch without prompt engineering.
+- **Chat Export** — Markdown or JSON. Token counter. Keyboard shortcuts.
+
+### Polish
+- **Standalone Desktop App** — Tauri v2 Rust backend. Download .exe, run it.
+- **Model Load/Unload** — Power icons in header. Load into VRAM, unload when done.
+- **Custom Dark Titlebar** — Frameless window, no native chrome.
+- **Linear/Arc UI** — Compact, monochrome. 15% larger for readability.
+- **Privacy First** — Zero tracking, all API calls proxied locally.
## Tech Stack
-- **Desktop**: Tauri v2 (Rust backend, standalone .exe — no Node.js required)
+- **Desktop**: Tauri v2 (Rust backend, standalone .exe)
- **Frontend**: React 19, TypeScript, Tailwind CSS 4, Framer Motion
- **State**: Zustand with localStorage persistence
-- **AI Backend**: Ollama (local text), OpenAI-compat (cloud/local), Anthropic (cloud), ComfyUI (images/video), faster-whisper (voice)
+- **AI Backend**: Ollama, OpenAI-compat, Anthropic, ComfyUI, faster-whisper
- **Build**: Vite 8 (dev), Tauri CLI (production)
---
-## 🚀 Quick Start
+## Download
### Windows
+Download the installer from [Releases](https://github.com/PurpleDoubleD/locally-uncensored/releases/latest):
+- **`.exe`** — NSIS installer (recommended)
+- **`.msi`** — Windows Installer
-```bash
-git clone https://github.com/PurpleDoubleD/locally-uncensored.git
-cd locally-uncensored
-setup.bat
-```
+### Linux
+- **`.AppImage`** — Portable, no install needed
-### Linux / macOS
+### macOS
+Build from source (see below).
-```bash
-git clone https://github.com/PurpleDoubleD/locally-uncensored.git
-cd locally-uncensored
-chmod +x setup.sh
-./setup.sh
-```
+> **Prerequisite:** [Ollama](https://ollama.com/) must be installed for AI chat.
-The setup script automatically:
-1. Checks for Node.js 18+, Git, and Ollama
-2. Installs missing dependencies
-3. Downloads a recommended uncensored AI model (~5.7 GB)
-4. Starts the app in your browser
+---
-### Manual Installation
+## Quick Start
-**Prerequisites:** [Node.js](https://nodejs.org/) 18+, [Ollama](https://ollama.com/)
+### From Source
```bash
git clone https://github.com/PurpleDoubleD/locally-uncensored.git
@@ -146,184 +149,74 @@ npm install
npm run dev
```
-Open **http://localhost:5173** — the app recommends models on first launch.
-
-### Image & Video Generation
-
-No separate installation needed! When you open the **Create** tab:
-
-1. The app checks for ComfyUI automatically
-2. If not found, click **"Install ComfyUI Automatically"** — it clones, installs dependencies, and sets up CUDA in one click
-3. Go to **Model Manager → Discover → Image/Video** and click **Install All** on any model bundle
-4. Generate images and videos — everything is ready
-
-The entire setup happens inside the app. No terminal commands, no manual config files.
-
-### One-Click Start (Windows)
+### Windows One-Click Setup
-```batch
-start.bat
+```bash
+git clone https://github.com/PurpleDoubleD/locally-uncensored.git
+cd locally-uncensored
+setup.bat
```
-Launches Ollama + ComfyUI + the app in one go.
-
----
-
-## 📦 Portable / No-Install
-
-**Don't want to install anything?** Download the portable version — just extract and run. No admin rights, no installer, no registry entries.
-
-### Windows (Portable)
-1. Go to [Releases](https://github.com/PurpleDoubleD/locally-uncensored/releases)
-2. Download the `.exe` installer
-3. When the installer opens, select **"Install for current user only (portable)"**
-4. Choose any folder (e.g., a USB drive) — done!
-
-Alternatively, download the `.msi` for a traditional system-wide install.
-
-### Linux (Portable)
-1. Download the `.AppImage` from [Releases](https://github.com/PurpleDoubleD/locally-uncensored/releases)
-2. `chmod +x Locally-Uncensored_*.AppImage`
-3. `./Locally-Uncensored_*.AppImage`
-
-No installation needed — AppImage is portable by design.
+Installs Node.js, Ollama, downloads an uncensored model, launches the app.
-### macOS (Portable)
-1. Download the `.dmg` from [Releases](https://github.com/PurpleDoubleD/locally-uncensored/releases)
-2. Drag to any folder (doesn't have to be Applications)
-3. Right-click → Open (first time only, to bypass Gatekeeper)
+### Image & Video Generation
-> **Note:** You still need [Ollama](https://ollama.com/) installed for AI chat. The app will guide you through setup on first launch.
+Open the **Create** tab → click **"Install ComfyUI Automatically"**. One click, fully automated.
---
-## 🧠 Model Auto-Detection
-
-The app automatically detects all installed models across all backends — no manual configuration needed:
-
-- **Text models** — Auto-detected from Ollama. On first launch, the app scans your hardware and recommends the best uncensored models for your system.
-- **Image models** — Auto-detected from ComfyUI's `models/checkpoints` folder. Drop any checkpoint in there and it shows up instantly.
-- **Video models** — Auto-detected from ComfyUI. The app identifies your video backend (Wan 2.1/2.2 or AnimateDiff) and lists available models automatically.
-
-Just install models in the standard locations and the app picks them up.
+## Recommended Models
-## 🎭 Recommended Models
+### Text (Ollama)
-### Text (Ollama) — scales to your hardware
-
-| Model | Size | VRAM | Best For |
-|-------|------|------|----------|
-| **Hermes 3 8B** | 4.3 GB | 6 GB | **Agent Mode** — uncensored + native tool calling |
-| **Hermes 3 70B** | 42 GB | 48 GB | **Best Agent** — maximum power |
-| **Gemma 4 26B MoE** | 18 GB | 8 GB | 26B brain, runs like 4B. Vision + tools. Apache 2.0 |
-| Gemma 4 E4B | 9.6 GB | 6 GB | Vision + native tools. 128K context |
-| **Qwen3-Coder 30B** | 18 GB | 16 GB | **Best coding agent** — 256K context, native tool calling |
-| Qwen 3.5 Abliterated | 5–18 GB | 6–16 GB | Best overall intelligence |
-| Qwen 3 8B Abliterated | 5.2 GB | 6 GB | Fast, great for coding |
-| DeepSeek R1 (8B–70B) | 5–42 GB | 6–48 GB | Chain-of-thought reasoning |
-| GLM 4.6 9B Abliterated | 6 GB | 8 GB | Strong coding |
-| Llama 3.1 8B Abliterated | 5.7 GB | 6 GB | Fastest all-rounder |
-| Llama 3.3 70B Abliterated | 42 GB | 48 GB | Maximum intelligence |
+| Model | VRAM | Best For |
+|-------|------|----------|
+| **Gemma 4 26B MoE** | 8 GB | Vision + native tools. Apache 2.0. Runs like 4B. |
+| **Qwen3-Coder 30B** | 16 GB | Best coding agent. 256K context. |
+| **Qwen 3.5 Abliterated** | 6-16 GB | Best overall intelligence. |
+| Hermes 3 8B | 6 GB | Agent Mode. Uncensored + tool calling. |
+| DeepSeek R1 (8B-70B) | 6-48 GB | Chain-of-thought reasoning. |
### Image (ComfyUI)
| Model | VRAM | Notes |
|-------|------|-------|
-| FLUX 2 Klein 4B | 8 GB | Next-gen, fastest FLUX |
-| FLUX.1 Dev / Schnell | 8–10 GB | Best text-to-image |
-| Juggernaut XL V9 | 6 GB | Best photorealistic SDXL |
-| Pony Diffusion V6 XL | 6 GB | Anime/stylized |
+| FLUX.1 Dev / Schnell | 8-10 GB | Best text-to-image |
+| Juggernaut XL V9 | 6 GB | Best photorealistic |
### Video (ComfyUI)
-| Model | VRAM | Output | Notes |
-|-------|------|--------|-------|
-| Wan 2.1 T2V 1.3B | 8–10 GB | 480p | Best entry point, fast |
-| Wan 2.1 T2V 14B FP8 | 12+ GB | 720p | High quality |
-| HunyuanVideo 1.5 FP8 | 12+ GB | 480p | Excellent temporal consistency |
-| LTX Video 2.3 22B FP8 | 16+ GB | 480p+ | Latest, fast inference |
-
----
-
-## ⚙️ Configuration
-
-### Environment Variables
-
-Create a `.env` file (see `.env.example`):
-
-```env
-# Path to your ComfyUI installation (optional)
-COMFYUI_PATH=/path/to/your/ComfyUI
-```
-
-### In-App Settings
-
-- **Temperature** — Controls randomness (0 = deterministic, 1 = creative)
-- **Top P / Top K** — Fine-tune token sampling
-- **Max Tokens** — Limit response length (0 = unlimited)
-- **Theme** — Dark or Light mode
-
----
-
-## 🗺️ Roadmap
-
-- [x] **RAG / Document Chat** — Upload PDFs and chat with your documents
-- [x] **Agent Mode (Beta)** — Tool calling with web search, file I/O, code execution
-- [x] **Memory System** — Persistent agent memory with export/import
-- [x] **Voice Chat** — STT + TTS with local Whisper
-- [x] **Multi-Provider** — Ollama + OpenAI-compatible + Anthropic
-- [x] **Model A/B Compare** — Side-by-side model comparison with parallel streaming
-- [x] **Local Benchmark** — One-click benchmark with leaderboard
-- [x] **LaTeX Rendering** — KaTeX for math equations
-- [x] **Token Counter** — Live context window usage
-- [x] **Chat Export** — Markdown and JSON export
-- [x] **Keyboard Shortcuts** — Power-user shortcuts (Ctrl+N, Ctrl+E, Ctrl+/)
-- [x] **Search Providers** — Brave Search, Tavily, SearXNG, DuckDuckGo
-- [x] **Regenerate / Edit** — Edit user messages, regenerate AI responses
-- [x] **Memory Debug** — See which memories are injected into prompts
-- [ ] **MCP Support** — Model Context Protocol for extensible tool calling
-- [ ] **Create Modes** — img2img, upscale, inpainting, background removal
-- [x] **Agent Workflows** — Multi-step workflow chains with visual builder
-- [ ] **Plugin System** — Extend the app with community plugins
-- [ ] **Mobile UI** — Responsive layout for phone/tablet access
-
-Have an idea? [Open a discussion](https://github.com/PurpleDoubleD/locally-uncensored/discussions)!
+| Model | VRAM | Notes |
+|-------|------|-------|
+| Wan 2.1 T2V 1.3B | 8-10 GB | Fast entry point |
+| Wan 2.1 T2V 14B | 12+ GB | High quality |
---
-## 📁 Project Structure
-
-```
-src/
- api/ # Backend clients (Ollama, ComfyUI, providers, RAG, voice, agents)
- providers/ # Multi-provider system (Ollama, OpenAI-compat, Anthropic)
- components/ # React components
- chat/ # Chat UI, A/B Compare, Token Counter, Export
- create/ # Image/Video generation UI
- models/ # Model management, Benchmark, Discovery
- personas/ # Persona selection
- settings/ # App settings, Provider config, Search provider
- layout/ # App shell, Sidebar, Header, Shortcuts modal
- ui/ # Reusable UI components
- hooks/ # useChat, useABCompare, useBenchmark, useKeyboardShortcuts
- stores/ # Zustand stores (chat, model, settings, provider, compare, benchmark)
- types/ # TypeScript definitions
- lib/ # Utilities, benchmark prompts, chat export, model compatibility
-```
+## Roadmap
+
+- [x] Codex Coding Agent
+- [x] MCP Tool Registry (13 tools)
+- [x] Granular Permissions (7 categories)
+- [x] File Upload + Vision
+- [x] Thinking Mode (provider-agnostic)
+- [x] Model Load/Unload from header
+- [x] Multi-Provider (Ollama + OpenAI + Anthropic)
+- [x] Agent Mode + Workflows
+- [x] Memory System
+- [x] A/B Compare + Local Benchmark
+- [x] RAG / Document Chat
+- [x] Voice Chat (STT + TTS)
+- [ ] OpenClaw Integration
+- [ ] Voice Mode (Qwen Omni live voice)
+- [ ] Video Upload
+- [ ] Create Modes (img2img, upscale, inpainting)
+- [ ] Plugin System
---
-## 🖥️ Platform Support
-
-| Platform | Status | Download |
-|----------|--------|----------|
-| **Windows** (10/11) | ✅ Fully tested | `.exe` / `.msi` |
-| **Linux** (Ubuntu 22.04+, Debian, Fedora) | ✅ Fully tested | `.AppImage` / `.deb` |
-| **macOS** | 🚧 Community testing | Build from source |
-
-> **Note:** We actively test and support Windows and Linux. macOS builds are provided on a best-effort basis — we don't have Mac hardware for testing. macOS users can build from source (see below) and we welcome community feedback and PRs for Mac-specific issues.
+## Build from Source
-### Build from source (all platforms)
```bash
git clone https://github.com/PurpleDoubleD/locally-uncensored.git
cd locally-uncensored
@@ -332,24 +225,28 @@ npm run dev # Development
npm run tauri build # Production binary
```
-## Contributing
+## Platform Support
+
+| Platform | Status | Download |
+|----------|--------|----------|
+| **Windows** (10/11) | Fully tested | `.exe` / `.msi` |
+| **Linux** (Ubuntu 22.04+) | Fully tested | `.AppImage` |
+| **macOS** | Community testing | Build from source |
-We welcome contributions! Check out the [Contributing Guide](CONTRIBUTING.md) for details on how to get started.
+## Contributing
-See our [open issues](https://github.com/PurpleDoubleD/locally-uncensored/issues) or the [Roadmap](#-roadmap) for areas where help is needed.
+Check out the [Contributing Guide](CONTRIBUTING.md). See [open issues](https://github.com/PurpleDoubleD/locally-uncensored/issues) or the [Roadmap](#-roadmap).
## License
-This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
+MIT License — see [LICENSE](LICENSE).
---
<div align="center">
-**Built with privacy in mind. Your data stays on your machine.** 🔒
-
-If you find this useful, consider giving it a ⭐
+**Your data stays on your machine.**
-[Website](https://locallyuncensored.com) · [Report Bug](https://github.com/PurpleDoubleD/locally-uncensored/issues/new?template=bug_report.yml) · [Request Feature](https://github.com/PurpleDoubleD/locally-uncensored/issues/new?template=feature_request.yml) · [Join Discussion](https://github.com/PurpleDoubleD/locally-uncensored/discussions)
+[Website](https://locallyuncensored.com) · [Report Bug](https://github.com/PurpleDoubleD/locally-uncensored/issues/new?template=bug_report.yml) · [Request Feature](https://github.com/PurpleDoubleD/locally-uncensored/issues/new?template=feature_request.yml) · [Discussions](https://github.com/PurpleDoubleD/locally-uncensored/discussions)
</div>
diff --git a/docs/index.html b/docs/index.html
index 0da66430..08eb9491 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,10 +4,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Locally Uncensored — Local AI Desktop App for Chat, Images & Video</title>
-<meta name="description" content="Free, open-source desktop app for running AI privately on your machine. Uncensored chat, image generation, and video creation — all in one interface. No cloud, no accounts, no data collection. 500+ users, MIT licensed. Windows & Linux.">
-<meta name="keywords" content="local AI app, local AI desktop app, ollama frontend, ollama GUI, comfyui frontend, comfyui alternative, run AI locally, uncensored AI local, local AI image generation, local AI video generation, private AI app, self-hosted AI, offline AI chat, local LLM frontend, abliterated models, best local AI app 2026, open source AI app, all in one AI app, stable diffusion local, FLUX local, Wan 2.1 local, AI without cloud, free AI app, local AI chat">
-<meta property="og:title" content="Locally Uncensored — Chat, Images & Video. All Local. All Uncensored.">
-<meta property="og:description" content="The only open-source local AI app combining uncensored chat, image generation, and video creation in one interface. No cloud, no censorship, no data collection.">
+<meta name="description" content="Free, open-source desktop app for running AI privately on your machine. Uncensored chat, coding agent, image generation, and video creation — all in one interface. No cloud, no accounts, no data collection. MIT licensed. Windows & Linux.">
+<meta name="keywords" content="local AI app, local AI desktop app, ollama frontend, ollama GUI, comfyui frontend, comfyui alternative, run AI locally, uncensored AI local, local AI image generation, local AI video generation, private AI app, self-hosted AI, offline AI chat, local LLM frontend, abliterated models, best local AI app 2026, open source AI app, all in one AI app, stable diffusion local, FLUX local, Wan 2.1 local, AI without cloud, free AI app, local AI chat, coding agent local, MCP tools">
+<meta property="og:title" content="Locally Uncensored — Chat, Code, Create. All Local. All Uncensored.">
+<meta property="og:description" content="The only open-source local AI app combining uncensored chat, coding agent, image generation, and video creation in one interface. 13 built-in tools, multi-provider, no cloud.">
<meta property="og:image" content="https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png">
<meta property="og:image:width" content="2752">
<meta property="og:image:height" content="1536">
@@ -17,24 +17,20 @@
<meta property="og:locale" content="en_US">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Locally Uncensored — Run Uncensored AI Locally">
-<meta name="twitter:description" content="Chat, generate images, create videos — all running locally. Open source, private, uncensored.">
+<meta name="twitter:description" content="Chat, code, generate images, create videos — all running locally. Open source, private, uncensored.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png">
<link rel="canonical" href="https://locallyuncensored.com/">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#0a0a0a">
<link rel="icon" href="./favicon.png">
-<!-- Privacy: No external fonts loaded. Using system fonts. -->
-<!-- Analytics: Self-hosted Plausible (privacy-friendly, no cookies, GDPR compliant) -->
-<!-- Setup: docker compose up -d on your server, then replace YOUR-DOMAIN below -->
-<script defer data-domain="YOUR-DOMAIN.com" src="https://plausible.YOUR-DOMAIN.com/js/script.js"></script>
<script type="application/ld+json">
-{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows, macOS, Linux","description":"All-in-one local AI desktop app for uncensored chat, image generation, and video creation. Run Llama, Mistral, Qwen, FLUX, Stable Diffusion, and Wan 2.1 models locally with zero cloud dependency.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored","softwareVersion":"2.2.1","license":"https://opensource.org/licenses/MIT","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Uncensored AI Chat via Ollama","Image Generation via ComfyUI and Stable Diffusion","Video Generation with Wan 2.1 and AnimateDiff","25+ Built-in AI Personas","One-Click Setup on Windows, macOS, Linux","Model Auto-Detection","100% Offline and Private","No Docker Required"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/screenshots/marketing_03_chat_personas.png","softwareRequirements":"Node.js 18+, Ollama","memoryRequirements":"8 GB RAM minimum","storageRequirements":"6 GB for default model"}
+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows, macOS, Linux","description":"All-in-one local AI desktop app for uncensored chat, coding agent, image generation, and video creation. 13 built-in tools, multi-provider support, granular permissions. Run Gemma 4, Qwen 3.5, FLUX, and Wan 2.1 models locally.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.2/Locally.Uncensored_2.2.2_x64-setup.exe","softwareVersion":"2.2.2","license":"https://opensource.org/licenses/MIT","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"featureList":["Uncensored AI Chat via Ollama","Codex Coding Agent with 13 MCP Tools","Multi-Provider (Ollama + OpenAI + Anthropic)","Image Generation via ComfyUI","Video Generation with Wan 2.1","Granular Permission System","File Upload with Vision Support","Thinking Mode","A/B Model Compare","100% Offline and Private"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png","softwareRequirements":"Ollama","memoryRequirements":"8 GB RAM minimum","storageRequirements":"6 GB for default model"}
</script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"Organization","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD","sameAs":["https://github.com/PurpleDoubleD","https://reddit.com/user/GroundbreakingMall54"]}
</script>
<script type="application/ld+json">
-{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is Locally Uncensored?","acceptedAnswer":{"@type":"Answer","text":"Locally Uncensored is a free, open-source desktop app that lets you run uncensored AI locally on your own machine. It combines AI chat (via Ollama), image generation (via ComfyUI/Stable Diffusion), and video generation (via Wan 2.1/AnimateDiff) in one beautiful interface. No cloud services, no subscriptions, no data collection."}},{"@type":"Question","name":"Is Locally Uncensored really free and offline?","acceptedAnswer":{"@type":"Answer","text":"Yes, 100%. Locally Uncensored is MIT licensed and completely free. Everything runs on your local machine — your conversations, generated images, and videos never leave your computer. No internet connection is needed after the initial setup and model download."}},{"@type":"Question","name":"What AI models does Locally Uncensored support?","acceptedAnswer":{"@type":"Answer","text":"For chat: any Ollama-compatible model including Llama 3.1, Mistral Nemo, Qwen 3, and DeepSeek R1 (abliterated/uncensored versions recommended). For images: SDXL, FLUX.1 Schnell, Pony Diffusion, Juggernaut XL via ComfyUI. For video: Wan 2.1/2.2 and AnimateDiff."}},{"@type":"Question","name":"How is Locally Uncensored different from Open WebUI or LM Studio?","acceptedAnswer":{"@type":"Answer","text":"Open WebUI and LM Studio only handle text chat. Locally Uncensored is the only local AI app that combines chat, image generation, AND video generation in one interface. It also ships with 25+ built-in personas and uses uncensored/abliterated models by default."}},{"@type":"Question","name":"What hardware do I need to run Locally Uncensored?","acceptedAnswer":{"@type":"Answer","text":"Minimum: 8 GB RAM and any modern CPU for text chat with smaller models. Recommended: NVIDIA GPU with 8+ GB VRAM for image generation, 10-12 GB VRAM for video generation. Works on Windows, macOS, and Linux."}}]}
+{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is Locally Uncensored?","acceptedAnswer":{"@type":"Answer","text":"Locally Uncensored is a free, open-source desktop app that lets you run uncensored AI locally. It combines AI chat, a coding agent with 13 tools, image generation, and video creation in one interface. Multi-provider support for Ollama, OpenAI-compatible, and Anthropic. No cloud, no subscriptions, no data collection."}},{"@type":"Question","name":"Is it really free and offline?","acceptedAnswer":{"@type":"Answer","text":"Yes. After initial setup and model download, no internet is needed. Your conversations, images, and videos never leave your machine. MIT licensed, zero telemetry."}},{"@type":"Question","name":"How is this different from Open WebUI or LM Studio?","acceptedAnswer":{"@type":"Answer","text":"Those tools only handle text chat. Locally Uncensored combines chat, a coding agent (Codex) with 13 MCP tools, image generation, AND video creation. It also has multi-provider support, granular permissions, file upload with vision, thinking mode, A/B compare, and local benchmarking."}},{"@type":"Question","name":"What hardware do I need?","acceptedAnswer":{"@type":"Answer","text":"Text chat: 8 GB RAM. Image generation: NVIDIA GPU with 8+ GB VRAM. Video generation: 10-12 GB VRAM. The app auto-detects hardware and recommends models. Windows & Linux supported."}},{"@type":"Question","name":"What does uncensored mean?","acceptedAnswer":{"@type":"Answer","text":"Locally Uncensored uses abliterated AI models where artificial restrictions are removed. The AI responds honestly without refusing or adding disclaimers. Combined with local execution, your conversations are completely private."}}]}
</script>
<style>
*{margin:0;padding:0;box-sizing:border-box}
@@ -43,11 +39,9 @@ body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font
a{color:var(--text);text-decoration:none}
::selection{background:var(--accent);color:#fff}
-/* Nav */
nav{position:fixed;top:0;width:100%;padding:0 24px;height:56px;display:flex;align-items:center;justify-content:space-between;background:rgba(10,10,10,0.8);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);z-index:100}
.nav-left{display:flex;align-items:center;gap:32px}
.nav-logo{font-weight:700;font-size:15px;letter-spacing:-0.3px;display:flex;align-items:center;gap:8px}
-.nav-logo svg{width:18px;height:18px;opacity:0.7}
.nav-links{display:flex;gap:24px}
.nav-links a{font-size:14px;color:var(--text-secondary);transition:color 0.15s}
.nav-links a:hover{color:var(--text)}
@@ -57,14 +51,12 @@ nav{position:fixed;top:0;width:100%;padding:0 24px;height:56px;display:flex;alig
.btn-nav-primary{background:#fff;color:#000;border-color:#fff}
.btn-nav-primary:hover{opacity:0.9}
-/* Sections */
section{max-width:1080px;margin:0 auto;padding:0 24px}
-/* Hero */
-.hero{padding-top:140px;padding-bottom:80px;text-align:center}
+.hero{padding-top:140px;padding-bottom:60px;text-align:center}
.hero-badge{display:inline-block;font-size:13px;color:var(--text-secondary);border:1px solid var(--border);padding:4px 14px;border-radius:100px;margin-bottom:24px;letter-spacing:0.2px}
.hero h1{font-size:clamp(40px,6vw,64px);font-weight:800;letter-spacing:-2px;line-height:1.1;margin-bottom:20px;background:linear-gradient(180deg,#fff 0%,#999 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
-.hero p{font-size:18px;color:var(--text-secondary);max-width:520px;margin:0 auto 40px;line-height:1.7}
+.hero p{font-size:18px;color:var(--text-secondary);max-width:540px;margin:0 auto 40px;line-height:1.7}
.hero-cta{display:flex;gap:12px;justify-content:center;margin-bottom:64px}
.btn{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;padding:10px 20px;border-radius:10px;border:1px solid var(--border);cursor:pointer;transition:all 0.15s;font-family:var(--font);background:transparent;color:var(--text)}
.btn:hover{border-color:var(--border-hover);background:var(--bg-subtle)}
@@ -73,16 +65,11 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.hero-image{position:relative;max-width:960px;margin:0 auto;border-radius:16px;overflow:hidden;border:1px solid var(--border);box-shadow:0 24px 80px rgba(0,0,0,0.5)}
.hero-image img{width:100%;height:auto;display:block}
-/* Install */
-.install{text-align:center;padding:80px 24px}
-.install-cmd{display:inline-block;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:16px 32px;font-family:'SF Mono',SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:var(--text-secondary);letter-spacing:0.3px;cursor:pointer;transition:border-color 0.15s;position:relative;max-width:100%;overflow-x:auto;word-break:break-all}
-.install-cmd:hover{border-color:var(--border-hover)}
-.install-cmd span{color:var(--text)}
+.install{text-align:center;padding:60px 24px}
.install-sub{margin-top:16px;font-size:13px;color:var(--text-tertiary)}
.install-sub a{color:var(--text-secondary);border-bottom:1px solid var(--border)}
.install-sub a:hover{color:var(--text)}
-/* Features */
.features{padding:80px 0}
.section-label{font-size:13px;color:var(--accent);font-weight:600;letter-spacing:1px;text-transform:uppercase;margin-bottom:16px}
.section-heading{font-size:clamp(28px,4vw,40px);font-weight:700;letter-spacing:-1px;line-height:1.2;margin-bottom:16px}
@@ -95,15 +82,13 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.feature-cell p{font-size:14px;color:var(--text-secondary);line-height:1.6}
.feature-icon{width:32px;height:32px;margin-bottom:16px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-dim);color:var(--accent);font-size:16px}
-/* Screenshots */
-.showcase{padding:80px 0}
+.showcase{padding:60px 0}
.showcase-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.showcase-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color 0.2s}
.showcase-card:hover{border-color:var(--border-hover)}
.showcase-card img{width:100%;height:auto;display:block}
.showcase-card-label{padding:16px;font-size:13px;color:var(--text-secondary);font-weight:500}
-/* Compare */
.agent-section{padding:80px 0}
.agent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:900px;margin:3rem auto 2rem}
.agent-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;text-align:left;transition:border-color .2s}
@@ -111,9 +96,7 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.agent-icon{font-size:1.8rem;margin-bottom:.8rem}
.agent-card h3{font-size:1rem;margin-bottom:.5rem;color:var(--text)}
.agent-card p{font-size:.85rem;color:var(--text-secondary);line-height:1.5}
-.agent-highlight{max-width:700px;margin:0 auto;background:rgba(139,92,246,0.08);border:1px solid rgba(139,92,246,0.25);border-radius:var(--radius);padding:1.2rem 1.5rem;text-align:center;font-size:.9rem;color:var(--text-secondary);line-height:1.6}
-.agent-highlight strong{color:var(--accent)}
-@media(max-width:768px){.agent-grid{grid-template-columns:1fr}}
+
.compare{padding:80px 0}
.compare-table{width:100%;border-collapse:collapse;font-size:14px}
.compare-table th{text-align:left;padding:12px 16px;font-weight:600;font-size:13px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:0.5px;border-bottom:1px solid var(--border)}
@@ -124,15 +107,13 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.check{color:#22c55e}
.cross{color:var(--text-tertiary)}
-/* How it works */
-.how-it-works{padding:80px 0}
+.how-it-works{padding:60px 0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:48px}
.step{text-align:center}
.step-num{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--accent-dim);color:var(--accent);font-weight:700;font-size:18px;margin-bottom:16px}
.step h3{font-size:15px;font-weight:600;margin-bottom:8px}
.step p{font-size:14px;color:var(--text-secondary);line-height:1.6}
-/* Models */
.models{padding:80px 0}
.model-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px}
.model-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;transition:border-color 0.2s}
@@ -141,7 +122,6 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.model-card .model-type{font-size:12px;color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:8px}
.model-card p{font-size:13px;color:var(--text-secondary);line-height:1.5}
-/* FAQ */
.faq{padding:80px 0}
.faq-list{margin-top:48px;max-width:720px}
.faq-item{border-bottom:1px solid var(--border);padding:24px 0}
@@ -149,93 +129,55 @@ section{max-width:1080px;margin:0 auto;padding:0 24px}
.faq-item h3{font-size:16px;font-weight:600;margin-bottom:8px;cursor:pointer}
.faq-item p{font-size:14px;color:var(--text-secondary);line-height:1.7}
-/* CTA */
-.cta{padding:120px 0;text-align:center}
+.cta{padding:100px 0;text-align:center}
.cta h2{font-size:clamp(28px,4vw,40px);font-weight:700;letter-spacing:-1px;margin-bottom:16px}
.cta p{font-size:16px;color:var(--text-secondary);margin-bottom:32px}
.cta-buttons{display:flex;gap:12px;justify-content:center}
-/* Footer */
footer{border-top:1px solid var(--border);padding:32px 24px;max-width:1080px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--text-tertiary)}
footer a{color:var(--text-secondary)}
footer a:hover{color:var(--text)}
.footer-links{display:flex;gap:20px}
-/* Prevent horizontal overflow / pinch-zoom on mobile */
html,body{overflow-x:hidden}
-/* Responsive */
@media(max-width:768px){
- /* Nav */
.nav-links{display:none}
.nav-right .btn-nav:not(.btn-nav-primary){display:none}
nav{padding:0 16px}
-
- /* Hero */
.hero{padding-top:100px;padding-bottom:48px}
.hero h1{font-size:32px;letter-spacing:-1px;background:none;-webkit-background-clip:unset;-webkit-text-fill-color:#fff}
.hero p{font-size:15px;margin-bottom:28px}
.hero-cta{flex-direction:column;align-items:center;gap:10px}
.hero-cta .btn{width:100%;max-width:260px;justify-content:center}
.hero-image{border-radius:10px}
-
- /* Install */
.install{padding:48px 16px}
- .install-cmd{font-size:10px;padding:12px 14px;letter-spacing:0;word-break:break-all;white-space:normal;line-height:1.5}
-
- /* Sections */
section{padding-left:16px;padding-right:16px}
-
- /* Features */
.features{padding:48px 0}
.feature-grid{grid-template-columns:1fr}
.feature-cell{padding:24px 20px}
.section-heading{font-size:26px}
.section-desc{font-size:14px;margin-bottom:32px}
-
- /* Showcase */
.showcase-grid{grid-template-columns:1fr}
-
- /* Agent / v2.0 section */
.agent-section{padding:48px 0}
.agent-grid{grid-template-columns:1fr;gap:1rem}
- .agent-card{padding:1.2rem}
- .agent-highlight{font-size:.82rem;padding:1rem}
-
- /* Comparison table — horizontal scroll wrapper */
.compare{padding:48px 0}
.compare-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;font-size:13px}
.compare-table th,.compare-table td{padding:10px 12px;min-width:90px}
.compare-table th:first-child,.compare-table td:first-child{position:sticky;left:0;background:var(--bg);z-index:1}
-
- /* Steps */
.how-it-works{padding:48px 0}
.steps{grid-template-columns:1fr;gap:24px}
-
- /* Models */
.models{padding:48px 0}
.model-grid{grid-template-columns:1fr;gap:12px}
.model-card{padding:20px}
-
- /* FAQ */
.faq{padding:48px 0}
.faq-item{padding:18px 0}
- .faq-item h3{font-size:15px}
- .faq-item p{font-size:13px}
-
- /* CTA */
.cta{padding:64px 0}
- .cta h2{font-size:26px}
- .cta p{font-size:14px}
.cta-buttons{flex-direction:column;align-items:center;gap:10px}
.cta-buttons .btn{width:100%;max-width:260px;justify-content:center}
-
- /* Footer */
footer{flex-direction:column;gap:16px;text-align:center;padding:24px 16px}
- .footer-links{gap:16px}
}
-/* Fade in */
.reveal{opacity:0;transform:translateY(20px);transition:opacity 0.6s ease,transform 0.6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
</style>
@@ -250,26 +192,25 @@ html,body{overflow-x:hidden}
</a>
<div class="nav-links">
<a href="#features">Features</a>
- <a href="#agent-mode">Agent Mode</a>
+ <a href="#whats-new">What's New</a>
<a href="#compare">Compare</a>
<a href="#models">Models</a>
<a href="#faq">FAQ</a>
<a href="blog/">Blog</a>
- <a href="https://github.com/PurpleDoubleD/locally-uncensored" target="_blank">Docs</a>
</div>
</div>
<div class="nav-right">
<a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn-nav" target="_blank">GitHub</a>
- <a href="#install" class="btn-nav btn-nav-primary">Get Started</a>
+ <a href="#install" class="btn-nav btn-nav-primary">Download</a>
</div>
</nav>
<section class="hero">
- <div class="hero-badge">Open Source / MIT License</div>
- <h1>Run uncensored AI locally.<br>Chat. Images. Video.</h1>
- <p>The only local AI app that combines uncensored chat, image generation, and video creation in one interface. No cloud, no subscriptions, no data collection.</p>
+ <div class="hero-badge">v2.2.2 / Open Source / MIT License</div>
+ <h1>Your AI. Your machine.<br>No limits.</h1>
+ <p>Chat, code, generate images, create videos — all running locally. Multi-provider, 13 built-in tools, coding agent. No cloud, no accounts.</p>
<div class="hero-cta">
- <a href="#install" class="btn btn-primary">Get Started</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.2/Locally.Uncensored_2.2.2_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a>
<a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn" target="_blank">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
View Source
@@ -278,97 +219,88 @@ html,body{overflow-x:hidden}
<div class="hero-image">
<picture>
<source srcset="screenshots/chat_personas_dark.webp" type="image/webp">
- <img src="screenshots/chat_personas_dark.jpg" alt="Locally Uncensored — Uncensored AI Chat Interface with Ollama, showing persona selection and private local conversation" loading="eager" width="1871" height="921">
+ <img src="screenshots/chat_personas_dark.jpg" alt="Locally Uncensored — AI Chat with multi-provider support, coding agent, and 13 built-in tools" loading="eager" width="1871" height="921">
</picture>
</div>
</section>
<section class="install reveal" id="install">
- <p style="margin-bottom:1.5rem;font-size:1.1rem;color:#ededed;font-weight:600">Download v2.2.1</p>
+ <p style="margin-bottom:1.5rem;font-size:1.1rem;color:#ededed;font-weight:600">Download v2.2.2</p>
<div style="display:flex;gap:1rem;justify-content:center;margin-bottom:2rem;flex-wrap:wrap">
- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.1/Locally.Uncensored_2.2.1_x64-setup.exe" class="btn btn-primary" style="font-size:.9rem;padding:.6rem 1.5rem" download>Windows (.exe)</a>
- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.1/Locally.Uncensored_2.2.1_amd64.AppImage" class="btn btn-primary" style="font-size:.9rem;padding:.6rem 1.5rem" download>Linux (.AppImage)</a>
- <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.2.1" class="btn" style="font-size:.9rem;padding:.6rem 1.5rem">All Downloads</a>
- </div>
- <p style="color:var(--text-tertiary);font-size:.8rem;margin-bottom:2rem">macOS: <a href="https://github.com/PurpleDoubleD/locally-uncensored#-build-from-source-all-platforms">Build from source</a></p>
- <div class="install-cmd" onclick="navigator.clipboard.writeText('git clone https://github.com/PurpleDoubleD/locally-uncensored.git && cd locally-uncensored && setup.bat')">
- $ git clone https://github.com/PurpleDoubleD/locally-uncensored.git && <span>setup.bat</span>
- </div>
- <div class="install-sub">
- Windows — installs Node.js, Ollama, downloads an uncensored model, and launches the app.<br>
- <a href="https://github.com/PurpleDoubleD/locally-uncensored#-quick-start">Linux / macOS instructions</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.2/Locally.Uncensored_2.2.2_x64-setup.exe" class="btn btn-primary" style="font-size:.9rem;padding:.6rem 1.5rem" download>Windows (.exe)</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/tag/v2.2.2" class="btn" style="font-size:.9rem;padding:.6rem 1.5rem">All Downloads</a>
</div>
+ <p style="color:var(--text-tertiary);font-size:.8rem">Requires <a href="https://ollama.com/" style="color:var(--text-secondary);border-bottom:1px solid var(--border)">Ollama</a> for AI chat. Linux & macOS: <a href="https://github.com/PurpleDoubleD/locally-uncensored#-build-from-source-all-platforms" style="color:var(--text-secondary);border-bottom:1px solid var(--border)">build from source</a>.</p>
</section>
<section class="features reveal" id="features">
<div class="section-label">Capabilities</div>
- <h2 class="section-heading">Three tools. One interface.</h2>
- <div class="section-desc">Stop switching between Ollama for chat, ComfyUI for images, and AnimateDiff for video in separate tabs.</div>
+ <h2 class="section-heading">Everything in one app.</h2>
+ <div class="section-desc">Chat, code, generate images, create videos. Multi-provider. 13 tools. No switching between apps.</div>
<div class="feature-grid">
<div class="feature-cell" style="border-color:rgba(139,92,246,0.3);background:rgba(139,92,246,0.03)">
<div class="feature-icon" style="color:#8b5cf6">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2a4 4 0 0 1 4 4v1a2 2 0 0 1 2 2v1a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9a2 2 0 0 1 2-2V6a4 4 0 0 1 4-4z"/><path d="M8 14v2a4 4 0 0 0 8 0v-2"/></svg>
</div>
- <h3>Agent Mode <span style="font-size:10px;background:rgba(139,92,246,0.2);padding:1px 6px;border-radius:4px;vertical-align:middle">BETA</span></h3>
- <p>Your AI uses tools autonomously — web search, page fetching, file I/O, code execution. Multi-step chains with live tool-call blocks. Powered by Hermes 3.</p>
+ <h3>Agent Mode — 13 MCP Tools</h3>
+ <p>Web search, file I/O, shell commands, code execution, screenshots, system info. Granular permissions per category. Native + Hermes fallback for any model.</p>
+ </div>
+ <div class="feature-cell" style="border-color:rgba(59,130,246,0.3);background:rgba(59,130,246,0.03)">
+ <div class="feature-icon" style="color:#3b82f6;background:rgba(59,130,246,0.08)">
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
+ </div>
+ <h3>Codex Coding Agent</h3>
+ <p>Dedicated coding mode. Reads your codebase, writes code, runs commands. File tree browser, native folder picker, working directory. Up to 20 iterations per task.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</div>
- <h3>Uncensored AI Chat</h3>
- <p>Powered by Ollama. Run abliterated models like Llama 3.1, Qwen 3.5, or DeepSeek R1 locally — uncensored, private, with streaming responses and thinking display.</p>
+ <h3>Multi-Provider Chat</h3>
+ <p>Ollama (local), OpenAI-compatible (OpenRouter, Groq, vLLM), Anthropic (Claude). Switch providers per conversation. Streaming + thinking display.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
</div>
- <h3>Local Image Generation</h3>
- <p>Text-to-image via ComfyUI. Supports Stable Diffusion XL, FLUX.1 Schnell, Pony Diffusion, and Juggernaut XL checkpoints. Full parameter control, no content filter.</p>
+ <h3>Image Generation</h3>
+ <p>FLUX.1, Juggernaut XL, Pony Diffusion via ComfyUI. Full parameter control, no content filter. One-click ComfyUI setup.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="23 7 16 12 23 17 23 7"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>
</div>
- <h3>AI Video Generation</h3>
- <p>Wan 2.1/2.2 and AnimateDiff support. Generate video clips from text on your own GPU. No cloud API, no watermarks, no usage limits.</p>
+ <h3>Video Generation</h3>
+ <p>Wan 2.1/2.2, HunyuanVideo, LTX Video. Text-to-video on your own GPU. No watermarks, no usage limits.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>
</div>
- <h3>25+ AI Personas</h3>
- <p>Pre-built characters from Helpful Assistant to Roast Master. Switch personalities without prompt engineering. Works with any uncensored Ollama model.</p>
+ <h3>File Upload + Vision</h3>
+ <p>Drag & drop images, Ctrl+V paste screenshots, clip button. Vision models describe what they see. Up to 5 images per message.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
- <h3>One-Click Model Manager</h3>
- <p>Browse, install, and switch AI models from within the app. Auto-detects text, image, and video models across Ollama and ComfyUI backends.</p>
+ <h3>Granular Permissions</h3>
+ <p>7 tool categories (web, filesystem, terminal, system, desktop, image, workflow). Block, confirm, or auto-approve per category and per conversation.</p>
</div>
<div class="feature-cell">
<div class="feature-icon">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
</div>
- <h3>100% Private & Offline</h3>
- <p>Everything runs on localhost. No telemetry, no cloud, no accounts, no Docker required. Your conversations, images, and videos never leave your machine.</p>
+ <h3>Model Manager</h3>
+ <p>Browse, install, switch models. Auto-detects text, image, video. Load/unload from VRAM. Hardware-aware recommendations.</p>
</div>
<div class="feature-cell">
- <div class="feature-icon">📄</div>
- <h3>Document Chat (RAG)</h3>
- <p>Upload PDFs, DOCX, or TXT files and chat with your documents. Hybrid search with confidence scores and source citations.</p>
- </div>
- <div class="feature-cell">
- <div class="feature-icon">🎤</div>
- <h3>Voice Chat</h3>
- <p>Talk to your AI with push-to-talk and hear responses with sentence-level text-to-speech streaming.</p>
- </div>
- <div class="feature-cell">
- <div class="feature-icon">🤖</div>
- <h3>AI Agents</h3>
- <p>Give your AI a goal — it plans, searches the web, reads/writes files, and executes Python code autonomously.</p>
+ <div class="feature-icon">
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"/></svg>
+ </div>
+ <h3>Thinking Mode</h3>
+ <p>Toggle thinking for any provider. Ollama native, cloud via system prompt. See the AI's reasoning in collapsible blocks before the answer.</p>
</div>
</div>
</section>
@@ -378,67 +310,63 @@ html,body{overflow-x:hidden}
<div class="showcase-card">
<picture>
<source srcset="screenshots/create_dark.webp" type="image/webp">
- <img src="screenshots/create_dark.jpg" alt="Locally Uncensored — Local AI image and video generation with ComfyUI backend, Stable Diffusion and Wan 2.1 support" loading="lazy" width="1908" height="909">
+ <img src="screenshots/create_dark.jpg" alt="Locally Uncensored — Local AI image and video generation" loading="lazy" width="1908" height="909">
</picture>
- <div class="showcase-card-label">Image and video generation with full parameter control — no content filters</div>
+ <div class="showcase-card-label">Image and video generation — no content filters</div>
</div>
<div class="showcase-card">
<picture>
<source srcset="screenshots/model_manager_dark.webp" type="image/webp">
- <img src="screenshots/model_manager_dark.jpg" alt="Locally Uncensored — AI Model Manager showing one-click install for Ollama and ComfyUI models" loading="lazy" width="1914" height="909">
+ <img src="screenshots/model_manager_dark.jpg" alt="Locally Uncensored — AI Model Manager" loading="lazy" width="1914" height="909">
</picture>
- <div class="showcase-card-label">One-click model installation with hardware-aware recommendations</div>
+ <div class="showcase-card-label">One-click model installation with hardware recommendations</div>
</div>
</div>
</section>
-<section class="agent-section reveal" id="agent-mode">
- <div class="section-label">New in v2.2</div>
- <h2 class="section-heading">Custom Titlebar. Branded Installer. Qwen3-Coder.</h2>
- <div class="section-desc">v2.2 brings a frameless dark window, a premium installer experience, Qwen3-Coder integration, Download Manager with multi-pull, and auto-unload on model switch.</div>
+<section class="agent-section reveal" id="whats-new">
+ <div class="section-label">New in v2.2.2</div>
+ <h2 class="section-heading">Codex Agent. MCP Tools. Permissions.</h2>
+ <div class="section-desc">The biggest update yet. A coding agent, 13 built-in tools, granular permissions, file upload, thinking mode, and a completely overhauled UI.</div>
<div class="agent-grid">
<div class="agent-card">
- <div class="agent-icon">🖼</div>
- <h3>Custom Dark Titlebar</h3>
- <p>Native Windows chrome removed. Sleek frameless window with drag region, minimize/maximize/close buttons, matching the app's luxury dark aesthetic.</p>
+ <div class="agent-icon">&#x1F4BB;</div>
+ <h3>Codex Coding Agent</h3>
+ <p>Three-tab system: LU | Codex | OpenClaw. Codex reads your codebase, writes files, runs shell commands. File tree with native folder picker.</p>
</div>
<div class="agent-card">
- <div class="agent-icon">📦</div>
- <h3>Branded Installer</h3>
- <p>Dark-themed NSIS installer with custom header and sidebar images. Premium experience from the very first click.</p>
+ <div class="agent-icon">&#x1F527;</div>
+ <h3>13 MCP Tools</h3>
+ <p>Dynamic tool registry: web_search, web_fetch, file_read, file_write, file_list, file_search, shell_execute, code_execute, system_info, process_list, screenshot, image_generate, run_workflow.</p>
</div>
<div class="agent-card">
- <div class="agent-icon">🧑‍💻</div>
- <h3>Qwen3-Coder</h3>
- <p>Featured in Model Manager. 256K context, native tool calling, abliterated variants. The best coding agent for local AI.</p>
+ <div class="agent-icon">&#x1F512;</div>
+ <h3>Granular Permissions</h3>
+ <p>7 categories: web, filesystem, terminal, system, desktop, image, workflow. Per-conversation overrides. Block, confirm, or auto-approve.</p>
</div>
<div class="agent-card">
- <div class="agent-icon">⬇</div>
- <h3>Download Manager</h3>
- <p>Multi-pull: download multiple models simultaneously. Per-model progress bars, pause/resume/dismiss. Header badge shows active downloads.</p>
+ <div class="agent-icon">&#x1F4CE;</div>
+ <h3>File Upload + Vision</h3>
+ <p>Attach images via clip button, drag & drop, or Ctrl+V paste. Vision models analyze images. Works across all providers.</p>
</div>
<div class="agent-card">
- <div class="agent-icon">🔄</div>
- <h3>Auto-Unload on Switch</h3>
- <p>Selecting a new model automatically unloads the previous one from RAM/VRAM. No more 100% CPU from multiple models loaded.</p>
+ <div class="agent-icon">&#x1F9E0;</div>
+ <h3>Thinking Mode</h3>
+ <p>Provider-agnostic. Ollama native think:true, cloud providers via system prompt. Collapsible thinking blocks in chat.</p>
</div>
<div class="agent-card">
- <div class="agent-icon">🎯</div>
- <h3>Redesigned Model Selector</h3>
- <p>Completely rewritten dropdown. Color-coded type dots, provider sections, compact dark design matching the app's language.</p>
+ <div class="agent-icon">&#x26A1;</div>
+ <h3>Smart Tool Selection</h3>
+ <p>Keyword-based filtering reduces tool definitions per request by ~80%. JSON repair fixes broken output from local LLMs. Retry logic.</p>
</div>
</div>
-
- <div class="agent-highlight">
- <p><strong>Also includes:</strong> Memory System, Agent Workflows, Multi-Provider, A/B Compare, Local Benchmark, Update Checker, and all v2.0 features.</p>
- </div>
</section>
<section class="compare reveal" id="compare">
<div class="section-label">Comparison</div>
<h2 class="section-heading">What others don't do.</h2>
- <div class="section-desc">Every competitor handles chat. None combine agents, uncensored chat, image generation, and video creation in one local app.</div>
+ <div class="section-desc">Every competitor handles chat. None combine a coding agent, 13 tools, image gen, and video creation in one local app.</div>
<table class="compare-table">
<thead>
@@ -452,22 +380,19 @@ html,body{overflow-x:hidden}
</thead>
<tbody>
<tr><td>AI Chat</td><td class="check">Yes</td><td class="check">Yes</td><td class="check">Yes</td><td class="check">Yes</td></tr>
+ <tr><td>Multi-Provider</td><td class="check hl">3 Providers</td><td class="check">Yes</td><td class="check">Yes</td><td class="cross">No</td></tr>
+ <tr><td>Coding Agent</td><td class="check hl">Codex</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
+ <tr><td>Agent Tools (MCP)</td><td class="check hl">13 Tools</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
<tr><td>Image Generation</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
<tr><td>Video Generation</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
+ <tr><td>File Upload + Vision</td><td class="check hl">Yes</td><td class="check">Yes</td><td class="check">Yes</td><td class="cross">No</td></tr>
+ <tr><td>Thinking Mode</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
+ <tr><td>Granular Permissions</td><td class="check hl">7 Categories</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
+ <tr><td>A/B Model Compare</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
+ <tr><td>Local Benchmark</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
<tr><td>Uncensored by Default</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="check">Partial</td></tr>
- <tr><td>One-Click Setup</td><td class="check">Yes</td><td class="cross">Docker</td><td class="check">Yes</td><td class="cross">Node.js</td></tr>
- <tr><td>Built-in Personas</td><td class="check">25+</td><td class="cross">No</td><td class="cross">No</td><td class="check">Manual</td></tr>
<tr><td>Open Source</td><td class="check">MIT</td><td class="check">MIT</td><td class="cross">No</td><td class="check">AGPL</td></tr>
- <tr><td>No Docker Required</td><td class="check">Yes</td><td class="cross">No</td><td class="check">Yes</td><td class="check">Yes</td></tr>
- <tr><td>Document Chat (RAG)</td><td class="check hl">Yes</td><td class="check">Yes</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Voice (STT + TTS)</td><td class="check hl">Yes</td><td class="check">Partial</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>AI Agents + Tool Calling</td><td class="check hl">6 Tools</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Memory System</td><td class="check hl">Yes</td><td class="cross">Plugin</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Agent Workflows</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Multi-Provider</td><td class="check hl">3 Providers</td><td class="check">Yes</td><td class="check">Yes</td><td class="cross">No</td></tr>
- <tr><td>Model A/B Compare</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Local Benchmark</td><td class="check hl">Yes</td><td class="cross">No</td><td class="cross">No</td><td class="cross">No</td></tr>
- <tr><td>Abliterated Model Support</td><td class="check hl">Auto-fix</td><td class="cross">No</td><td class="cross">No</td><td class="check">Partial</td></tr>
+ <tr><td>No Docker</td><td class="check">Yes</td><td class="cross">Docker</td><td class="check">Yes</td><td class="check">Yes</td></tr>
</tbody>
</table>
</section>
@@ -475,23 +400,22 @@ html,body{overflow-x:hidden}
<section class="how-it-works reveal" id="how-it-works">
<div class="section-label">Setup</div>
<h2 class="section-heading">Running in under 5 minutes.</h2>
- <div class="section-desc">One command. No Docker, no config files, no manual model downloads.</div>
<div class="steps">
<div class="step">
<div class="step-num">1</div>
- <h3>Clone & Run Setup</h3>
- <p>Run <code>git clone</code> and <code>setup.bat</code> (or <code>setup.sh</code> on Linux/macOS). The script checks for Node.js and Ollama, installs them if missing.</p>
+ <h3>Install Ollama</h3>
+ <p>Download <a href="https://ollama.com/" style="color:var(--accent)">Ollama</a> and pull a model. Or let the app recommend one on first launch.</p>
</div>
<div class="step">
<div class="step-num">2</div>
- <h3>Auto Model Download</h3>
- <p>The setup script downloads a recommended uncensored/abliterated model (~5.7 GB). The app launches in your browser at localhost:5173.</p>
+ <h3>Download & Run</h3>
+ <p>Download the .exe installer above. Install, launch. The app detects your models automatically.</p>
</div>
<div class="step">
<div class="step-num">3</div>
- <h3>Chat, Create, Generate</h3>
- <p>Start chatting immediately. For image and video generation, click "Install ComfyUI" in the Create tab — one click, fully automated.</p>
+ <h3>Chat, Code, Create</h3>
+ <p>Start chatting. Switch to Codex for coding tasks. Open Create for images and video. Everything is local.</p>
</div>
</div>
</section>
@@ -499,53 +423,38 @@ html,body{overflow-x:hidden}
<section class="models reveal" id="models">
<div class="section-label">Supported Models</div>
<h2 class="section-heading">Works with the best local AI models.</h2>
- <div class="section-desc">Auto-detects all installed models. Just drop them in and they show up.</div>
+ <div class="section-desc">Auto-detects all installed models. Just pull and they show up.</div>
<div class="model-grid">
<div class="model-card">
- <div class="model-type">Agent / Chat</div>
- <h3>Hermes 3 (8B-70B)</h3>
- <p>Best for Agent Mode. Native tool calling, uncensored. 6-48 GB VRAM. The go-to agent model.</p>
+ <div class="model-type">Agent / Vision</div>
+ <h3>Gemma 4 26B MoE</h3>
+ <p>26B brain, runs like 4B. Vision + native tools. Apache 2.0. 8 GB VRAM. 128K context.</p>
</div>
<div class="model-card">
- <div class="model-type">Text / Vision</div>
- <h3>Gemma 4 26B MoE</h3>
- <p>26B brain that runs like 4B. Vision + native tools. Apache 2.0. 8 GB VRAM. 128K context.</p>
+ <div class="model-type">Coding Agent</div>
+ <h3>Qwen3-Coder 30B</h3>
+ <p>Best coding agent. 256K context, native tool calling, abliterated variants. 16 GB VRAM.</p>
</div>
<div class="model-card">
- <div class="model-type">Text / Chat</div>
+ <div class="model-type">Chat / Reasoning</div>
<h3>Qwen 3.5 Abliterated</h3>
- <p>Best overall intelligence. 6-16 GB VRAM. Exceptional reasoning, coding, and multilingual.</p>
+ <p>Best overall intelligence. 6-16 GB VRAM. Exceptional reasoning, coding, multilingual.</p>
</div>
<div class="model-card">
- <div class="model-type">Image Generation</div>
+ <div class="model-type">Image</div>
<h3>FLUX.1 Dev / Schnell</h3>
- <p>Best text-to-image. 8-10 GB VRAM. Incredible prompt following, detail, and coherence.</p>
- </div>
- <div class="model-card">
- <div class="model-type">Image Generation</div>
- <h3>FLUX 2 Klein</h3>
- <p>Next-gen image model. 8 GB VRAM. Fastest FLUX architecture with stunning quality.</p>
+ <p>Best text-to-image. 8-10 GB VRAM. Incredible prompt following and detail.</p>
</div>
<div class="model-card">
- <div class="model-type">Image Generation</div>
+ <div class="model-type">Image</div>
<h3>Juggernaut XL V9</h3>
- <p>Top photorealistic SDXL checkpoint. 6 GB VRAM. Perfect for portraits and realistic scenes.</p>
+ <p>Top photorealistic SDXL. 6 GB VRAM. Perfect for portraits and realistic scenes.</p>
</div>
<div class="model-card">
- <div class="model-type">Video Generation</div>
+ <div class="model-type">Video</div>
<h3>Wan 2.1 (1.3B-14B)</h3>
- <p>Best text-to-video. 8-12+ GB VRAM. Lightweight 1.3B for speed, 14B for cinema quality.</p>
- </div>
- <div class="model-card">
- <div class="model-type">Video Generation</div>
- <h3>HunyuanVideo 1.5</h3>
- <p>Tencent's video model. 12+ GB VRAM. Excellent temporal consistency and visual quality.</p>
- </div>
- <div class="model-card">
- <div class="model-type">Video Generation</div>
- <h3>LTX Video 2</h3>
- <p>Lightricks' latest. 12+ GB VRAM. Fast inference, high quality text-to-video generation.</p>
+ <p>Best text-to-video. 8-12+ GB VRAM. 1.3B for speed, 14B for cinema quality.</p>
</div>
</div>
</section>
@@ -557,48 +466,45 @@ html,body{overflow-x:hidden}
<div class="faq-list">
<div class="faq-item">
<h3>What is Locally Uncensored?</h3>
- <p>Locally Uncensored is a free, open-source desktop app that lets you run uncensored AI locally on your own machine. It combines AI chat (via Ollama), image generation (via ComfyUI with FLUX, SDXL, and more), and video generation (via Wan 2.1, HunyuanVideo, LTX Video) in one interface. No cloud, no subscriptions, no data collection. Everything is MIT licensed.</p>
+ <p>A free, open-source desktop app for running AI locally. Combines uncensored chat, a coding agent (Codex) with 13 tools, image generation (ComfyUI), and video creation in one interface. Supports Ollama, OpenAI-compatible, and Anthropic providers. MIT licensed.</p>
</div>
<div class="faq-item">
- <h3>Is it really 100% free and offline?</h3>
- <p>Yes. After the initial setup and model download, no internet connection is needed. Your conversations, generated images, and videos never leave your machine. There are no accounts, no telemetry, and no usage limits. The MIT license means you can use, modify, and distribute it freely.</p>
+ <h3>Is it really free and offline?</h3>
+ <p>Yes. After setup and model download, no internet needed. No accounts, no telemetry, no usage limits. Cloud providers are optional — the core runs 100% locally.</p>
</div>
<div class="faq-item">
- <h3>How is this different from Open WebUI, LM Studio, or SillyTavern?</h3>
- <p>Those tools only handle text chat. Locally Uncensored is the only local AI app that combines chat, image generation, AND video generation in one interface. It ships with 25+ built-in personas, uses uncensored/abliterated models by default, and wraps ComfyUI's complexity behind a simple UI — no node graphs required.</p>
+ <h3>How is this different from Open WebUI or LM Studio?</h3>
+ <p>Those tools handle text chat. Locally Uncensored adds a coding agent with 13 MCP tools, image generation, video creation, A/B model comparison, local benchmarking, granular permissions, file upload with vision, and thinking mode. All in one app.</p>
</div>
<div class="faq-item">
<h3>What hardware do I need?</h3>
- <p>For text chat: any modern computer with 8 GB RAM. For image generation: NVIDIA GPU with 8+ GB VRAM (GTX 1080 or better). For video generation: 10-12 GB VRAM recommended. The app auto-detects your hardware and recommends appropriate models. Works on Windows, macOS, and Linux.</p>
+ <p>Text chat: 8 GB RAM. Images: NVIDIA GPU with 8+ GB VRAM. Video: 10-12 GB VRAM. The app recommends models based on your hardware. Windows and Linux supported.</p>
</div>
<div class="faq-item">
<h3>What does "uncensored" mean?</h3>
- <p>Locally Uncensored uses abliterated AI models — models where artificial content restrictions have been removed. This means the AI responds honestly to any question without refusing or adding disclaimers. Combined with running locally, your conversations are completely private and unrestricted.</p>
+ <p>Abliterated models with artificial restrictions removed. The AI responds honestly without refusing or adding disclaimers. Combined with local execution, your conversations are completely private.</p>
</div>
</div>
</section>
-<section class="faq reveal" id="blog" style="padding:80px 0">
+<section class="faq reveal" id="blog" style="padding:60px 0">
<div class="section-label">Blog</div>
<h2 class="section-heading">Guides and comparisons.</h2>
<div class="faq-list">
- <div class="faq-item"><h3><a href="blog/best-local-ai-apps-2026.html" style="color:#ededed">Best Local AI Apps in 2026</a></h3><p>Complete comparison of GPT4All, Open WebUI, LM Studio, Jan, Kobold.cpp, SillyTavern, text-generation-webui, and Locally Uncensored.</p></div>
- <div class="faq-item"><h3><a href="blog/run-uncensored-ai-locally.html" style="color:#ededed">How to Run Uncensored AI Locally</a></h3><p>A complete guide to running AI locally without restrictions. Setup, models, and why local beats cloud.</p></div>
- <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-gpt4all.html" style="color:#ededed">Locally Uncensored vs GPT4All</a></h3><p>All-in-one AI creative suite vs the most popular local chatbot with document RAG.</p></div>
- <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-jan.html" style="color:#ededed">Locally Uncensored vs Jan.ai</a></h3><p>Lightweight Tauri app with image/video gen vs polished Electron chat client with cloud API support.</p></div>
- <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-open-webui.html" style="color:#ededed">Locally Uncensored vs Open WebUI</a></h3><p>Both are MIT-licensed Ollama frontends. Only one combines chat, image gen, and video generation.</p></div>
- <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-lm-studio.html" style="color:#ededed">Locally Uncensored vs LM Studio</a></h3><p>Open source all-in-one vs polished closed-source chat client.</p></div>
- <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-sillytavern.html" style="color:#ededed">Locally Uncensored vs SillyTavern</a></h3><p>Both run uncensored AI locally. One is built for roleplay, the other for everything else.</p></div>
+ <div class="faq-item"><h3><a href="blog/best-local-ai-apps-2026.html" style="color:#ededed">Best Local AI Apps in 2026</a></h3><p>Complete comparison of GPT4All, Open WebUI, LM Studio, Jan, and more.</p></div>
+ <div class="faq-item"><h3><a href="blog/run-uncensored-ai-locally.html" style="color:#ededed">How to Run Uncensored AI Locally</a></h3><p>Setup guide. Models, hardware, and why local beats cloud.</p></div>
+ <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-open-webui.html" style="color:#ededed">LU vs Open WebUI</a></h3><p>Both MIT-licensed. Only one does chat + code + images + video.</p></div>
+ <div class="faq-item"><h3><a href="blog/locally-uncensored-vs-lm-studio.html" style="color:#ededed">LU vs LM Studio</a></h3><p>Open source all-in-one vs polished closed-source chat client.</p></div>
<div class="faq-item" style="border-bottom:none;text-align:center;padding-top:16px"><a href="blog/" style="font-size:14px">View all posts</a></div>
</div>
</section>
<section class="cta reveal">
- <h2>Run your own uncensored AI stack.</h2>
- <p>Free, open source, and yours to keep. No sign-up required.</p>
+ <h2>Run your own AI stack. No limits.</h2>
+ <p>Free, open source, and yours to keep.</p>
<div class="cta-buttons">
- <a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn btn-primary" target="_blank">View on GitHub</a>
- <a href="https://github.com/PurpleDoubleD/locally-uncensored/discussions" class="btn" target="_blank">Join the Discussion</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/releases/download/v2.2.2/Locally.Uncensored_2.2.2_x64-setup.exe" class="btn btn-primary" download>Download for Windows</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn" target="_blank">View on GitHub</a>
</div>
</section>
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index a5cf31c4..d3d66177 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url><loc>https://locallyuncensored.com/</loc><lastmod>2026-03-29</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>
+ <url><loc>https://locallyuncensored.com/</loc><lastmod>2026-04-05</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>
<url><loc>https://locallyuncensored.com/blog/</loc><lastmod>2026-04-02</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
<url><loc>https://locallyuncensored.com/blog/run-uncensored-ai-locally.html</loc><lastmod>2026-03-29</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url>
<url><loc>https://locallyuncensored.com/blog/locally-uncensored-vs-open-webui.html</loc><lastmod>2026-03-29</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url>
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index d2175411..5df3fe13 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -47,6 +47,181 @@ version = "1.0.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
+[[package]]
+name = "ashpd"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2f3f79755c74fd155000314eb349864caa787c6592eace6c6882dad873d9c39"
+dependencies = [
+ "async-fs",
+ "async-net",
+ "enumflags2",
+ "futures-channel",
+ "futures-util",
+ "rand 0.9.2",
+ "raw-window-handle",
+ "serde",
+ "serde_repr",
+ "url",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "zbus",
+]
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-channel"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
+dependencies = [
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-fs"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5"
+dependencies = [
+ "async-lock",
+ "blocking",
+ "futures-lite",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-net"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"
+dependencies = [
+ "async-io",
+ "blocking",
+ "futures-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.89"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "atk"
version = "0.18.2"
@@ -142,6 +317,19 @@ dependencies = [
"objc2",
]
+[[package]]
+name = "blocking"
+version = "1.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
[[package]]
name = "brotli"
version = "8.0.2"
@@ -328,6 +516,15 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "concurrent-queue"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
+dependencies = [
+ "crossbeam-utils",
+]
+
[[package]]
name = "convert_case"
version = "0.4.0"
@@ -638,6 +835,15 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "dlib"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
+dependencies = [
+ "libloading",
+]
+
[[package]]
name = "dlopen2"
version = "0.8.2"
@@ -676,6 +882,12 @@ dependencies = [
"tendril 0.5.0",
]
+[[package]]
+name = "downcast-rs"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
+
[[package]]
name = "dpi"
version = "0.1.2"
@@ -747,6 +959,33 @@ dependencies = [
"cfg-if",
]
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
+[[package]]
+name = "enumflags2"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+dependencies = [
+ "enumflags2_derive",
+ "serde",
+]
+
+[[package]]
+name = "enumflags2_derive"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "equivalent"
version = "1.0.2"
@@ -774,6 +1013,27 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "event-listener"
+version = "5.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
+dependencies = [
+ "concurrent-queue",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "event-listener-strategy"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
+dependencies = [
+ "event-listener",
+ "pin-project-lite",
+]
+
[[package]]
name = "fastrand"
version = "2.3.0"
@@ -927,6 +1187,19 @@ version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
[[package]]
name = "futures-macro"
version = "0.3.32"
@@ -1934,6 +2207,7 @@ dependencies = [
"num_cpus",
"regex",
"reqwest 0.12.28",
+ "rfd",
"serde",
"serde_json",
"sysinfo",
@@ -2391,6 +2665,16 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
[[package]]
name = "os_pipe"
version = "1.2.3"
@@ -2426,6 +2710,12 @@ dependencies = [
"system-deps",
]
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
[[package]]
name = "parking_lot"
version = "0.12.5"
@@ -2660,6 +2950,17 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
[[package]]
name = "pkg-config"
version = "0.3.32"
@@ -2680,7 +2981,7 @@ checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"
dependencies = [
"base64 0.22.1",
"indexmap 2.13.0",
- "quick-xml",
+ "quick-xml 0.38.4",
"serde",
"time",
]
@@ -2711,6 +3012,26 @@ dependencies = [
"miniz_oxide",
]
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "pollster"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
+
[[package]]
name = "potential_utf"
version = "0.1.4"
@@ -2834,6 +3155,15 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "quick-xml"
+version = "0.39.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "958f21e8e7ceb5a1aa7fa87fab28e7c75976e0bfe7e23ff069e0a260f894067d"
+dependencies = [
+ "memchr",
+]
+
[[package]]
name = "quote"
version = "1.0.45"
@@ -2880,6 +3210,16 @@ dependencies = [
"rand_core 0.6.4",
]
+[[package]]
+name = "rand"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
+dependencies = [
+ "rand_chacha 0.9.0",
+ "rand_core 0.9.5",
+]
+
[[package]]
name = "rand_chacha"
version = "0.2.2"
@@ -2900,6 +3240,16 @@ dependencies = [
"rand_core 0.6.4",
]
+[[package]]
+name = "rand_chacha"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.9.5",
+]
+
[[package]]
name = "rand_core"
version = "0.5.1"
@@ -2918,6 +3268,15 @@ dependencies = [
"getrandom 0.2.17",
]
+[[package]]
+name = "rand_core"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
+dependencies = [
+ "getrandom 0.3.4",
+]
+
[[package]]
name = "rand_hc"
version = "0.2.0"
@@ -3118,6 +3477,30 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "rfd"
+version = "0.15.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed"
+dependencies = [
+ "ashpd",
+ "block2",
+ "dispatch2",
+ "js-sys",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "pollster",
+ "raw-window-handle",
+ "urlencoding",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "windows-sys 0.59.0",
+]
+
[[package]]
name = "ring"
version = "0.17.14"
@@ -3274,6 +3657,12 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "scoped-tls"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
+
[[package]]
name = "scopeguard"
version = "1.2.0"
@@ -4485,9 +4874,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
"pin-project-lite",
+ "tracing-attributes",
"tracing-core",
]
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "tracing-core"
version = "0.1.36"
@@ -4537,6 +4938,17 @@ version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "unic-char-property"
version = "0.9.0"
@@ -4865,6 +5277,66 @@ dependencies = [
"semver",
]
+[[package]]
+name = "wayland-backend"
+version = "0.3.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2857dd20b54e916ec7253b3d6b4d5c4d7d4ca2c33c2e11c6c76a99bd8744755d"
+dependencies = [
+ "cc",
+ "downcast-rs",
+ "rustix",
+ "scoped-tls",
+ "smallvec",
+ "wayland-sys",
+]
+
+[[package]]
+name = "wayland-client"
+version = "0.31.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "645c7c96bb74690c3189b5c9cb4ca1627062bb23693a4fad9d8c3de958260144"
+dependencies = [
+ "bitflags 2.11.0",
+ "rustix",
+ "wayland-backend",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols"
+version = "0.32.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "563a85523cade2429938e790815fd7319062103b9f4a2dc806e9b53b95982d8f"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-scanner"
+version = "0.31.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a"
+dependencies = [
+ "proc-macro2",
+ "quick-xml 0.39.2",
+ "quote",
+]
+
+[[package]]
+name = "wayland-sys"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
+dependencies = [
+ "dlib",
+ "log",
+ "pkg-config",
+]
+
[[package]]
name = "web-sys"
version = "0.3.92"
@@ -5490,6 +5962,9 @@ name = "winnow"
version = "0.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
+dependencies = [
+ "memchr",
+]
[[package]]
name = "winnow"
@@ -5692,6 +6167,67 @@ dependencies = [
"synstructure",
]
+[[package]]
+name = "zbus"
+version = "5.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca82f95dbd3943a40a53cfded6c2d0a2ca26192011846a1810c4256ef92c60bc"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.2",
+ "winnow 0.7.15",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "5.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "897e79616e84aac4b2c46e9132a4f63b93105d54fe8c0e8f6bffc21fa8d49222"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "4.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f"
+dependencies = [
+ "serde",
+ "winnow 0.7.15",
+ "zvariant",
+]
+
[[package]]
name = "zerocopy"
version = "0.8.48"
@@ -5777,3 +6313,44 @@ name = "zmij"
version = "1.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
+
+[[package]]
+name = "zvariant"
+version = "5.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5708299b21903bbe348e94729f22c49c55d04720a004aa350f1f9c122fd2540b"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "url",
+ "winnow 0.7.15",
+ "zvariant_derive",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "5.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b59b012ebe9c46656f9cc08d8da8b4c726510aef12559da3e5f1bf72780752c"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 2.0.117",
+ "winnow 0.7.15",
+]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index c50af57f..077d219a 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "locally-uncensored"
-version = "2.2.1"
+version = "2.2.2"
description = "Private, local AI chat & image/video generation"
authors = ["purpledoubled"]
edition = "2021"
@@ -29,6 +29,7 @@ futures-util = "0.3"
tokio-util = "0.7"
urlencoding = "2"
url = "2"
+rfd = "0.15"
[profile.release]
panic = "abort"
diff --git a/src-tauri/src/commands/shell.rs b/src-tauri/src/commands/shell.rs
index 58544c6c..d78bc14c 100644
--- a/src-tauri/src/commands/shell.rs
+++ b/src-tauri/src/commands/shell.rs
@@ -8,7 +8,21 @@ use std::os::windows::process::CommandExt;
const CREATE_NO_WINDOW: u32 = 0x08000000;
#[tauri::command]
-pub fn shell_execute(
+pub async fn shell_execute(
+ command: String,
+ args: Option<Vec<String>>,
+ cwd: Option<String>,
+ timeout: Option<u64>,
+ shell: Option<String>,
+) -> Result<serde_json::Value, String> {
+ tokio::task::spawn_blocking(move || {
+ shell_execute_sync(command, args, cwd, timeout, shell)
+ })
+ .await
+ .map_err(|e| format!("Task join error: {}", e))?
+}
+
+fn shell_execute_sync(
command: String,
args: Option<Vec<String>>,
cwd: Option<String>,
@@ -42,7 +56,7 @@ pub fn shell_execute(
}
}
- // Working directory
+ // Working directory — validate it exists
if let Some(ref dir) = cwd {
let path = std::path::Path::new(dir);
if path.is_dir() {
diff --git a/src-tauri/src/commands/system.rs b/src-tauri/src/commands/system.rs
index 6aa93e4c..8abaf410 100644
--- a/src-tauri/src/commands/system.rs
+++ b/src-tauri/src/commands/system.rs
@@ -95,3 +95,13 @@ pub fn screenshot() -> Result<serde_json::Value, String> {
Err("Screenshot not implemented for this platform yet".to_string())
}
}
+
+#[tauri::command]
+pub async fn pick_folder(default_path: Option<String>) -> Result<Option<String>, String> {
+ let mut dialog = rfd::AsyncFileDialog::new();
+ if let Some(ref p) = default_path {
+ dialog = dialog.set_directory(p);
+ }
+ let result = dialog.pick_folder().await;
+ Ok(result.map(|f| f.path().to_string_lossy().to_string()))
+}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index b9a484e8..9a3f6490 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -49,6 +49,7 @@ fn main() {
commands::system::system_info,
commands::system::process_list,
commands::system::screenshot,
+ commands::system::pick_folder,
// Downloads
commands::download::download_model,
commands::download::download_progress,
@@ -77,6 +78,12 @@ fn main() {
window.open_devtools();
}
+ // Remove Windows DWM shadow/border (the 1mm border around the window)
+ #[cfg(target_os = "windows")]
+ if let Some(window) = app.get_webview_window("main") {
+ let _ = window.set_shadow(false);
+ }
+
// ─── System Tray ───
let show = MenuItem::with_id(app, "show", "Show", true, None::<&str>)?;
let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?;
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index ce6fe3c2..b04e3e78 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
"productName": "Locally Uncensored",
- "version": "2.2.1",
+ "version": "2.2.2",
"identifier": "com.purpledoubled.locally-uncensored",
"build": {
"beforeBuildCommand": "npm run build",
diff --git a/src/api/ollama.ts b/src/api/ollama.ts
index ecb812e8..5e5bd05f 100644
--- a/src/api/ollama.ts
+++ b/src/api/ollama.ts
@@ -191,6 +191,18 @@ export async function listRunningModels(): Promise<string[]> {
}
}
+export async function loadModel(name: string): Promise<void> {
+ const res = await localFetch(ollamaUrl("/generate"), {
+ method: "POST",
+ body: JSON.stringify({ model: name, prompt: "", stream: false, keep_alive: "10m" }),
+ })
+ if (!res.ok) {
+ console.warn(`[ollama] failed to load model "${name}":`, res.status)
+ }
+ // Consume response to ensure model is fully loaded
+ try { await res.json() } catch {}
+}
+
export async function unloadModel(name: string): Promise<void> {
const res = await localFetch(ollamaUrl("/generate"), {
method: "POST",
diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsx
index 030c6b05..1090c19d 100644
--- a/src/components/chat/CodexView.tsx
+++ b/src/components/chat/CodexView.tsx
@@ -73,6 +73,11 @@ export function CodexView() {
<p className="text-[0.55rem] text-gray-400 dark:text-gray-600 mt-0.5 max-w-[300px]">
Send a coding instruction. Codex will read your codebase, write code, and run commands.
</p>
+ {!thread?.workingDirectory && (
+ <p className="text-[0.55rem] text-amber-500/70 mt-2">
+ Set a working directory in the file tree panel →
+ </p>
+ )}
</div>
) : (
<div className="py-1">
diff --git a/src/components/chat/FileTree.tsx b/src/components/chat/FileTree.tsx
index c37c7769..ed32e29c 100644
--- a/src/components/chat/FileTree.tsx
+++ b/src/components/chat/FileTree.tsx
@@ -1,7 +1,8 @@
-import { useState, useEffect, useRef } from 'react'
+import { useState, useEffect } from 'react'
import { FolderOpen, Folder, FileText, ArrowLeft, RefreshCw } from 'lucide-react'
import { useCodexStore } from '../../stores/codexStore'
import { toolRegistry } from '../../api/mcp'
+import { isTauri } from '../../api/backend'
import type { FileTreeNode } from '../../types/codex'
export function FileTree() {
@@ -10,7 +11,6 @@ export function FileTree() {
const setFileTree = useCodexStore((s) => s.setFileTree)
const setWorkingDirectory = useCodexStore((s) => s.setWorkingDirectory)
const [loading, setLoading] = useState(false)
- const folderInputRef = useRef<HTMLInputElement>(null)
const loadDirectory = async (dir: string) => {
if (!dir.trim()) return
@@ -36,13 +36,12 @@ export function FileTree() {
}
}
- // Go to parent directory — always works as long as there's a path
+ // Go to parent directory
const goBack = () => {
if (!workingDirectory) return
const normalized = workingDirectory.replace(/\\/g, '/')
const parts = normalized.split('/').filter(Boolean)
if (parts.length <= 1) {
- // Already at root (e.g. "C:")
loadDirectory(parts[0] + '/')
} else {
const parent = parts.slice(0, -1).join('/')
@@ -50,30 +49,24 @@ export function FileTree() {
}
}
- // Native folder picker via hidden input with webkitdirectory
- const handleFolderSelect = (e: React.ChangeEvent<HTMLInputElement>) => {
- const files = e.target.files
- if (!files || files.length === 0) return
- // Extract directory path from the first file's webkitRelativePath
- const relativePath = (files[0] as any).webkitRelativePath || ''
- const folderName = relativePath.split('/')[0]
- if (folderName) {
- // We can't get the full absolute path from browser file input
- // So we use the folder name and ask the user to confirm
- // In Tauri mode this would use the native dialog
- const fullPath = window.prompt(
- `Selected folder: "${folderName}"\nEnter the full path to this folder:`,
- workingDirectory ? workingDirectory.replace(/\\/g, '/').replace(/\/[^/]*$/, '/' + folderName) : folderName
- )
- if (fullPath) loadDirectory(fullPath)
+ // Native folder picker — Tauri uses Rust dialog, dev mode uses prompt fallback
+ const handlePickClick = async () => {
+ if (isTauri()) {
+ try {
+ const invoke = (await import('@tauri-apps/api/core')).invoke
+ const selected = await invoke<string | null>('pick_folder', {
+ defaultPath: workingDirectory || undefined,
+ })
+ if (selected) loadDirectory(selected)
+ } catch {
+ // Fallback if invoke fails
+ const dir = window.prompt('Enter folder path:', workingDirectory || 'C:\\Users')
+ if (dir) loadDirectory(dir)
+ }
+ } else {
+ const dir = window.prompt('Enter folder path:', workingDirectory || 'C:\\Users')
+ if (dir) loadDirectory(dir)
}
- e.target.value = ''
- }
-
- // Simpler approach: just let them type the path on click
- const handlePickClick = () => {
- const dir = window.prompt('Enter folder path:', workingDirectory || 'C:\\Users')
- if (dir) loadDirectory(dir)
}
useEffect(() => {
@@ -84,7 +77,7 @@ export function FileTree() {
return (
<div className="h-full flex flex-col border-l border-gray-200 dark:border-white/[0.04] bg-gray-50 dark:bg-white/[0.01]">
- {/* Directory picker — click to open prompt */}
+ {/* Directory picker — click to open native dialog */}
<div className="p-1.5 border-b border-gray-200 dark:border-white/[0.04]">
<button
onClick={handlePickClick}
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 39b23c17..d1a650e0 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -1,16 +1,71 @@
-import { Menu, Settings, Sun, Moon, MessageSquare, Film, Layers, GitCompareArrows, Trophy } from 'lucide-react'
+import { useState, useEffect } from 'react'
+import { Menu, Settings, Sun, Moon, MessageSquare, Film, Layers, GitCompareArrows, Trophy, Loader2, Power, PowerOff } from 'lucide-react'
import { useUIStore } from '../../stores/uiStore'
import { useSettingsStore } from '../../stores/settingsStore'
import { useChatStore } from '../../stores/chatStore'
import { useCompareStore } from '../../stores/compareStore'
+import { useModelStore } from '../../stores/modelStore'
import { ModelSelector } from '../models/ModelSelector'
import { UpdateBadge } from './UpdateBadge'
import { DownloadBadge } from './DownloadBadge'
+import { loadModel, unloadModel, listRunningModels } from '../../api/ollama'
+import { getProviderIdFromModel } from '../../api/providers'
export function Header() {
const { currentView, toggleSidebar, setView } = useUIStore()
const { settings, updateSettings } = useSettingsStore()
const isComparing = useCompareStore((s) => s.isComparing)
+ const activeModel = useModelStore((s) => s.activeModel)
+ const [loadingState, setLoadingState] = useState<'idle' | 'loading' | 'unloading'>('idle')
+ const [isModelLoaded, setIsModelLoaded] = useState(false)
+
+ // Check if active model is an Ollama model
+ const isOllamaModel = activeModel ? getProviderIdFromModel(activeModel) === 'ollama' : false
+ const modelToUse = activeModel?.includes('::') ? activeModel.split('::')[1] : activeModel
+
+ const handleLoad = async () => {
+ if (!modelToUse || loadingState !== 'idle') return
+ setLoadingState('loading')
+ try {
+ await loadModel(modelToUse)
+ setIsModelLoaded(true)
+ } catch {}
+ finally { setLoadingState('idle') }
+ }
+
+ const handleUnload = async () => {
+ if (!modelToUse || loadingState !== 'idle') return
+ setLoadingState('unloading')
+ try {
+ await unloadModel(modelToUse)
+ setIsModelLoaded(false)
+ } catch {}
+ finally { setLoadingState('idle') }
+ }
+
+ // Check loaded state when model changes
+ useEffect(() => {
+ if (modelToUse && isOllamaModel) {
+ listRunningModels().then(running => {
+ setIsModelLoaded(running.some(r => r.includes(modelToUse.split(':')[0])))
+ })
+ } else {
+ setIsModelLoaded(false)
+ }
+ }, [modelToUse, isOllamaModel])
+
+ // Poll running state every 5s while idle
+ useEffect(() => {
+ if (!modelToUse || !isOllamaModel) return
+ const interval = setInterval(() => {
+ if (loadingState === 'idle') {
+ listRunningModels().then(running => {
+ setIsModelLoaded(running.some(r => r.includes(modelToUse.split(':')[0])))
+ })
+ }
+ }, 5000)
+ return () => clearInterval(interval)
+ }, [modelToUse, isOllamaModel, loadingState])
const toggleTheme = () => {
updateSettings({ theme: settings.theme === 'dark' ? 'light' : 'dark' })
@@ -58,8 +113,48 @@ export function Header() {
</button>
</div>
- {/* Center: Model Selector */}
- <ModelSelector />
+ {/* Center: Model Selector + Load/Unload */}
+ <div className="flex items-center gap-1">
+ <ModelSelector />
+ {isOllamaModel && (
+ <div className="flex items-center gap-0.5">
+ {/* Load model (green when loaded, gray when not) */}
+ <button
+ onClick={handleLoad}
+ disabled={loadingState !== 'idle'}
+ className={`p-1 rounded-md transition-colors ${
+ isModelLoaded
+ ? 'text-green-400 bg-green-500/10'
+ : 'text-gray-600 hover:text-green-400 hover:bg-green-500/10'
+ }`}
+ title={isModelLoaded ? 'Model loaded in VRAM' : 'Load model into VRAM'}
+ >
+ {loadingState === 'loading' ? (
+ <Loader2 size={13} className="animate-spin text-green-400" />
+ ) : (
+ <Power size={13} />
+ )}
+ </button>
+ {/* Unload model (red on hover, gray default) */}
+ <button
+ onClick={handleUnload}
+ disabled={loadingState !== 'idle'}
+ className={`p-1 rounded-md transition-colors ${
+ !isModelLoaded
+ ? 'text-gray-700 opacity-30'
+ : 'text-gray-600 hover:text-red-400 hover:bg-red-500/10'
+ }`}
+ title="Unload model from VRAM"
+ >
+ {loadingState === 'unloading' ? (
+ <Loader2 size={13} className="animate-spin text-red-400" />
+ ) : (
+ <PowerOff size={13} />
+ )}
+ </button>
+ </div>
+ )}
+ </div>
{/* Right: Nav icons — Order: Chat, Create, A/B Compare, Benchmark, Models, Settings */}
<div className="flex items-center gap-0.5">
diff --git a/src/hooks/useCodex.ts b/src/hooks/useCodex.ts
index e1844947..b8309ae3 100644
--- a/src/hooks/useCodex.ts
+++ b/src/hooks/useCodex.ts
@@ -192,12 +192,20 @@ export function useCodex() {
const toolName = tc.function.name
const toolArgs = { ...tc.function.arguments }
- // Inject working directory for file/shell tools
+ // Inject working directory for file/shell tools (skip if workDir is just '.' or empty)
+ const hasValidWorkDir = workDir && workDir !== '.' && workDir.length > 2
if (toolName === 'shell_execute' && !toolArgs.cwd) {
- toolArgs.cwd = workDir
+ if (hasValidWorkDir) {
+ toolArgs.cwd = workDir
+ }
+ // Without a valid cwd, shell_execute will use default — add timeout guard
+ if (!toolArgs.timeout) toolArgs.timeout = 30000
}
if (toolName === 'code_execute' && !toolArgs.cwd) {
- toolArgs.cwd = workDir
+ if (hasValidWorkDir) {
+ toolArgs.cwd = workDir
+ }
+ if (!toolArgs.timeout) toolArgs.timeout = 30000
}
// Resolve relative file paths against working directory
if ((toolName === 'file_read' || toolName === 'file_write' || toolName === 'file_list' || toolName === 'file_search') && toolArgs.path) {
@@ -218,9 +226,20 @@ export function useCodex() {
toolCall: agentToolCall, timestamp: Date.now(),
})
- // Execute
+ // Execute with timeout guard (60s max to prevent freeze)
const startTime = Date.now()
- const result = await toolRegistry.execute(toolName, toolArgs)
+ const toolTimeout = 60000
+ let result: string
+ try {
+ result = await Promise.race([
+ toolRegistry.execute(toolName, toolArgs),
+ new Promise<string>((_, reject) =>
+ setTimeout(() => reject(new Error('Tool execution timed out (60s)')), toolTimeout)
+ ),
+ ])
+ } catch (timeoutErr) {
+ result = `Error: ${(timeoutErr as Error).message}`
+ }
const duration = Date.now() - startTime
const isError = result.startsWith('Error:')
diff --git a/src/index.css b/src/index.css
index 84b34d18..5b28b570 100644
--- a/src/index.css
+++ b/src/index.css
@@ -2,6 +2,10 @@
@custom-variant dark (&:where(.dark, .dark *));
+html {
+ font-size: 18.4px; /* 16px * 1.15 = 15% larger UI */
+}
+
* {
box-sizing: border-box;
}