Skip to main content

Local File Organizer

CI Version License: MIT

This software uses AI to organize your local files. It operates locally with Ollama. It does not need a cloud connection. You can also connect it to an OpenAI-compatible endpoint or Anthropic Claude.

TUI overview

Contents

Features

AI and Analysis

  • AI-Powered Organization: Uses Qwen 2.5 3B (text) and Qwen 2.5-VL 7B (vision) with Ollama. It also supports OpenAI-compatible endpoints and Anthropic Claude.
  • Audio Transcription: Uses faster-whisper to convert local speech to text. This uses the GPU.
  • Video Analysis: Finds scenes and gets keyframes from video files.
  • Intelligence: Learns patterns, tracks your preferences, suggests actions, and adds tags automatically.

Interfaces

  • Terminal UI: Gives you an 8-view Textual TUI (Files, Analytics, Audio, History, Copilot).
  • Web UI: Shows a browser interface with FastAPI and HTMX.
  • Desktop App: Shows a native OS window with pywebview. It uses a single Python process. It does not use Electron or Rust.
  • Full CLI: Includes commands to organize, set rules, suggest, find duplicates, run as a daemon, show analytics, update, and manage API keys.
  • Copilot Chat: Lets you use natural language to give commands. For example, type "organize ./Downloads" or "undo".

Organization

  • Extensive Support: Operates on 840 tests, 408 modules, and 39 file types.
  • Organization Rules: Sorts files automatically with conditions and previews. It saves rules in YAML.
  • PARA + Johnny Decimal: Includes these organizational methodologies.
  • Deduplication: Finds duplicate files with hash and semantic checks.
  • Undo/Redo: Keeps a full history of operations so you can undo them.
  • Auto-Update: Updates Linux AppImage from GitHub Releases. Updates macOS and Windows with pip or pipx.
  • Cross-Platform: Operates on macOS, Windows, and Linux.

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
  1. Scan — The software reads files from a source directory. It gets text, metadata, and visual content. It supports more than 80 formats.
  2. Analyze — The software sends the content to an AI model. The model categorizes and names the files.
  3. Organize — The software moves or copies files into folders. It uses the AI-generated names.
  4. Learn — The software tracks your patterns and preferences to make better suggestions in the future.

Interfaces (Visuals)

Terminal UI

TUI demo

Web UI (Preview)

To start the FastAPI server and open the UI, type this command:

file-organizer serve --reload

Then, go to http://localhost:8000/ui/ in your browser.

Quick Start (Essentials)

With Ollama (local, default)

# Install from PyPI with pipx:
pipx install local-file-organizer
# or with pip:
pip install local-file-organizer

# 1) Set the default configuration
fo setup

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

# 3) Start the organization process
fo organize ~/Downloads ~/Organized

# 4) Undo the most recent organize run if necessary
fo undo

Use cloud providers instead of the default local flow

Read 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 installation commands:

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

From source (development): Download the repository and use an editable install (for example, pip install -e ".[all]").

Audio system dependencies

To get full audio format support, the [audio] pack uses FFmpeg (all platforms). It optionally uses CUDA + cuDNN (for NVIDIA GPU users).

FFmpeg — This is necessary for non-.wav formats (MP3, M4A, FLAC, OGG). It is optional if you only transcribe raw .wav files:

# macOS
brew install ffmpeg

# Ubuntu / Debian
sudo apt install ffmpeg

# Windows (winget)
winget install ffmpeg

CUDA + cuDNN — This is optional. It makes transcription much faster.

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

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

Fallback behavior: If you do not have FFmpeg, the software only transcribes .wav files. It organizes other formats by filename and metadata, but it does not analyze their content. If you do not have CUDA, the transcription uses the CPU. This is slower but it operates correctly.

Read the Installation Guide to find troubleshooting steps and advanced configuration options.

Development

# Start tests
pytest

# Find errors with ruff
ruff check src/

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

Contributing

Read CONTRIBUTING.md to learn about the development setup, coding standards, project structure, and how to submit your changes.

Configuration

The software stores configuration files in these locations:

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

Read the Configuration Guide for more data.

License

This project uses the MIT License.


Status: Stable | Version: 2.1.1 | Last Updated: 2026-07-20

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

local_file_organizer-2.1.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

local_file_organizer-2.1.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file local_file_organizer-2.1.1.tar.gz.

File metadata

  • Download URL: local_file_organizer-2.1.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for local_file_organizer-2.1.1.tar.gz
Algorithm Hash digest
SHA256 8cab678220c6f0c576c8cbd9a1221eadcc1459e8586c538615afd822ef7ac251
MD5 1beeea8c5724efbb6b6cdf0db67db923
BLAKE2b-256 9278473fa5dc20b97be71011fdf8261cfeb6f0eb01768af06d7731bd7ad5ab0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_file_organizer-2.1.1.tar.gz:

Publisher: release.yml on curdriceaurora/Local-File-Organizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file local_file_organizer-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for local_file_organizer-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c34fdf5236077f364ae4bd5738e59b47650e3e06433ac62cdd3f9b113764741e
MD5 fad12c4234b94f34f8797cf51c925a9c
BLAKE2b-256 4b88be8adafd19756297e492ff869b9eee9997d7ad856701e3e21231255de982

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_file_organizer-2.1.1-py3-none-any.whl:

Publisher: release.yml on curdriceaurora/Local-File-Organizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page