explaingit

iyaja/llama-fs

5,726TypeScriptAudience · generalComplexity · 2/5Setup · moderate

TLDR

LlamaFS automatically renames and sorts your messy files using AI. Point it at a folder and it figures out sensible names and folder structures based on what your files actually contain, no manual sorting needed.

Mindmap

mindmap
  root((LlamaFS))
    File Organization
      Batch mode
      Watch mode
      Auto rename
      Smart folders
    AI Models
      Llama 3 via Groq
      Moondream images
      Whisper audio
      Ollama local
    Privacy
      Cloud mode
      Incognito mode
      Local processing
    Tech
      Python FastAPI
      Electron desktop
      Fast caching
    Setup
      Python 3.10+
      Groq API key
      Optional Ollama
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Clean up a cluttered Downloads folder by letting AI automatically rename and sort files by their content.

USE CASE 2

Run it in the background so it learns your filing habits and organizes new files for you automatically.

USE CASE 3

Process images and audio files alongside documents, AI reads content from all file types.

USE CASE 4

Keep sensitive files private by using incognito mode to run everything locally on your own machine.

Tech stack

PythonFastAPIElectronTypeScriptLlama 3Groq APIMoondreamWhisper

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Python 3.10+. Get a free Groq API key for cloud mode. For private/local mode, install Ollama separately. Frontend is an Electron desktop app.

License not mentioned in the explanation.

In plain English

LlamaFS is a file organizer that uses an AI model to automatically rename and sort files based on their content. The problem it addresses is the common situation where a Downloads folder or Desktop fills up with poorly named files over time. Instead of manually sorting them, you point LlamaFS at a directory and it figures out sensible names and folder structures based on what the files actually contain. The tool works in two modes. In batch mode, you give it a folder and it suggests a reorganized file structure for you to review and apply. In watch mode, it runs in the background and observes how you personally organize files. If you create a folder called "2023 Taxes" and move a couple files into it, LlamaFS picks up the pattern and starts moving similar files there automatically on your behalf. Under the hood, the tool uses the Llama 3 language model via Groq's fast cloud API to read and summarize file contents. For images it uses a model called Moondream, and for audio files it uses Whisper. Because all of this runs through a cloud API, there is a privacy concern about sending personal files to an external service. The project addresses this with an incognito mode that routes everything through Ollama instead, which runs the same Llama 3 model locally on your machine. The backend is written in Python using FastAPI, and the frontend is an Electron desktop application. Most file decisions in watch mode are processed in under 500 milliseconds according to the README, which attributes this to smart caching that only updates the parts of the file index that changed. Installation requires Python 3.10 or higher, a Groq API key for cloud mode, and optionally Ollama for the privacy-preserving local mode.

Copy-paste prompts

Prompt 1
I'm using LlamaFS to organize my Downloads folder. How do I run it in batch mode to preview a reorganized folder structure before applying any changes?
Prompt 2
How does LlamaFS watch mode learn my filing habits? Explain how I can teach it a new folder pattern by example.
Prompt 3
I'm worried about privacy. Walk me through setting up LlamaFS incognito mode with Ollama so my files never leave my machine.
Prompt 4
LlamaFS uses Groq for speed. What are the tradeoffs between using the Groq cloud API versus running Ollama locally in terms of speed and privacy?
Prompt 5
I want to set up LlamaFS on my computer. What do I need, Python version, API keys, and any other installs, before I can start organizing files?
Open on GitHub → Explain another repo

← iyaja on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.