Search engine for your files!
Caution
This software is in early alpha! There will be lots of bugs. If you encounter any, please report them to the issue tracker.
Choose which directories to index, and Cosma will process all files in those directories into a search-optimized index. It'll also watch for changes to keep the index updated.
After files are indexed, you can search for them with natural language! Cosma uses vector-powered search to find files quickly and easily.
Cosma can run 100% locally or in the cloud.
Currently, Cosma has only been tested on MacOS ARM. Windows and Linux support is coming soon!
Cosma can be downloaded from PyPI. We highly recommend you do this with uv.
uv tool install cosmaTo upgrade to the latest version:
uv tool upgrade cosma --no-cacheMake sure you have Ollama installed.
Cosma has a backend to serve search queries, so it must be started first. This needs to always be running to watch for file changes and process files in the background.
cosma serveTo start the terminal UI and start searching, run search.
Important
The backend must be running for this command to work (see above).
cosma search /path/to/directory/to/searchWarning
This will begin processing all files in the directory specified, which will take some time if running locally.
We're also working on a Mac app! If this seems like a useful project, give us a star!
Cosma is open source, and we'd love to have you contribute! Please feel free to open an issue or pull request with code changes, or join our Discord. We'll have documentation for how best to contribute soon!