Skip to content

curdriceaurora/Local-File-Organizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,070 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local File Organizer

CI Version License: MIT

AI-powered local file management. Local-first by default (Ollama, no cloud required)—or connect any OpenAI-compatible endpoint or Anthropic Claude when you need it.

TUI overview

Contents

Features

AI and Analysis

  • AI-Powered Organization: Qwen 2.5 3B (text) + Qwen 2.5-VL 7B (vision) via Ollama — or any OpenAI-compatible endpoint (OpenAI, LM Studio, vLLM) — or Anthropic Claude
  • Audio Transcription: Local speech-to-text with faster-whisper (GPU-accelerated)
  • Video Analysis: Scene detection and keyframe extraction
  • Intelligence: Pattern learning, preference tracking, smart suggestions, auto-tagging

Interfaces

  • Terminal UI: 8-view Textual TUI (Files, Analytics, Audio, History, Copilot, and more)
  • Web UI: Browser-based interface via FastAPI and HTMX
  • Desktop App: Native OS window via pywebview — single Python process, no Electron, no Rust
  • Full CLI: Organize, rules, suggest, dedupe, daemon, analytics, update, api-keys
  • Copilot Chat: Natural-language assistant -- "organize ./Downloads", "find report.pdf", "undo"

Organization

  • Extensive Support: Handles 840 tests, 408 modules, and 39 distinct file types natively
  • Organization Rules: Automated sorting with conditions, preview, and YAML persistence
  • PARA + Johnny Decimal: Built-in organizational methodologies
  • Deduplication: Hash and semantic duplicate detection
  • Undo/Redo: Full operation history
  • Auto-Update: Linux AppImage self-updates from GitHub Releases (verified downloads + rollback); macOS/Windows update via pip/pipx
  • Cross-Platform: Runs on macOS, Windows, and Linux (verified in CI). Linux ships a standalone AppImage plus executables; install on macOS/Windows via pip/pipx

How It Works

flowchart LR
    subgraph Source["Source Directory"]
        direction TB
        A[report.pdf]
        B[photo.jpg]
        C[meeting.mp3]
        D[clip.mp4]
    end

    subgraph AI["AI Analysis"]
        direction TB
        E[Content Extraction]
        F[AI Categorize]
    end

    subgraph Output["Organized Output"]
        direction TB
        G[Work/Reports/]
        H[Photos/Vacation/]
        I[Audio/Meetings/]
    end

    Source --> E --> F --> Output
    F -.-> |Learn Patterns| F
Loading
  1. Scan — Reads files from a source directory, extracting text, metadata, and visual content per file type (80+ formats supported)
  2. Analyze — Sends extracted content to an AI model (Ollama, OpenAI, or Claude) for categorization and naming
  3. Organize — Moves or copies files into a structured folder hierarchy with AI-generated names
  4. Learn — Tracks your patterns and preferences over time for smarter future suggestions

Interfaces (Visuals)

Terminal UI

TUI demo

Web UI (Preview)

Start the FastAPI server and open the UI:

file-organizer serve --reload

Then visit http://localhost:8000/ui/ for the HTMX interface.

Quick Start (Essentials)

With Ollama (local, default)

# Install from PyPI — pipx keeps it isolated and on your PATH:
pipx install local-file-organizer
# or: pip install local-file-organizer

# 1) Configure defaults
fo setup

# 2) Preview a folder before changing anything
fo preview ~/Downloads

# 3) Run organization
fo organize ~/Downloads ~/Organized

# 4) Roll back the most recent organize run if needed
fo undo

Need cloud providers instead of the default local flow?

Use the AI Provider Setup guide for OpenAI-compatible endpoints and Claude.

# OpenAI-compatible providers
export FO_PROVIDER=openai

# Anthropic Claude
export FO_PROVIDER=claude

Documentation

Essentials

Advanced / Admin / Developer

Optional Feature Packs

Canonical extras matrix:

Common installs:

pip install "local-file-organizer[parsers,web]"
pip install "local-file-organizer[cloud,claude]"
pip install "local-file-organizer[all]"

From source (development): clone the repo and use an editable install instead, e.g. pip install -e ".[all]".

Audio system dependencies

For full audio format support, the [audio] pack uses FFmpeg (all platforms) and optionally CUDA + cuDNN (NVIDIA GPU users).

FFmpeg — required for non-.wav formats (MP3, M4A, FLAC, OGG); optional if you only transcribe raw .wav:

# macOS
brew install ffmpeg

# Ubuntu / Debian
sudo apt install ffmpeg

# Windows (winget)
winget install ffmpeg

CUDA + cuDNN — optional, for significantly faster transcription (see faster-whisper benchmarks for hardware-specific numbers):

# Install CUDA Toolkit from https://developer.nvidia.com/cuda-downloads
# Install cuDNN from https://developer.nvidia.com/cudnn

# Verify the full transcription backend (not just PyTorch)
python3 -c "from faster_whisper import WhisperModel; print('faster-whisper OK')"
python3 -c "import torch; print('CUDA:', torch.cuda.is_available())"

Fallback behavior: without FFmpeg, only .wav files are transcribed; other formats are organized by filename/metadata but not content-analyzed. Without CUDA, transcription runs on CPU (slower but fully functional).

See the Installation Guide for troubleshooting and advanced configuration.

Development

# Run tests
pytest

# Lint
ruff check src/

(For a full breakdown of the project structure, see CONTRIBUTING.md)

Contributing

See CONTRIBUTING.md for development setup, coding standards, project structure, and how to submit changes.

Configuration

Configuration is stored in platform-appropriate locations using platformdirs:

  • macOS: ~/Library/Application Support/file-organizer/
  • Linux: ~/.config/file-organizer/ (or $XDG_CONFIG_HOME/file-organizer/)
  • Windows: %APPDATA%/file-organizer/

See Configuration Guide for details.

License

This project is licensed under the MIT License.


Status: Stable | Version: 2.0.2 | Last Updated: 2026-07-05

About

File Organizer v2.0 - AI-powered local file management with 100% privacy. Uses Ollama+ Qwen2.5 models (text+vision) to organize 40+ file types.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 98.6%
  • HTML 0.6%
  • Shell 0.4%
  • JavaScript 0.2%
  • CSS 0.1%
  • TypeScript 0.1%