About
The ai-renamer is a Node.js CLI tool designed to intelligently rename files based on their contents, utilizing Ollama and LM Studio models such as Llava, Gemma, and Llama. This tool is particularly helpful for individuals and organizations seeking to organize and manage large collections of files in a more efficient and automated manner. By leveraging AI models, ai-renamer can significantly reduce the time and effort required for file management tasks.
Details
- Usage: Requires Ollama or LM Studio and at least one LLM installed, with ffmpeg necessary for renaming videos.
- Installation: Can be installed globally using npm (
npm install -g ai-renamer
) or run with npx. - Providers: Supports Ollama, LM Studio, and OpenAI as providers, each with options for custom configuration (e.g., model selection, API keys).
- Customization: Offers various flags for customization, including setting the provider, API key, base URL, model, case style, maximum characters in filenames, language, and more.
- Config File: Saves flag values to a config file (
~/ai-renamer.json
) for convenience, allowing users to set preferences once and reuse them. - Case Styling: Utilizes