Search engine for your files!
Project description
Cosma
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.
How It Works
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.
Get Started
Cosma has been tested on MacOS ARM and Windows. Linux support is coming soon!
Installing
Cosma can be downloaded from PyPI. We highly recommend you do this with uv.
uv tool install cosma
Upgrading
To upgrade to the latest version:
uv tool upgrade cosma --no-cache
Setup
Make 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 serve
Running
To 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/search
[!WARNING] This will begin processing all files in the directory specified, which will take some time if running locally.
CLI
Cosma includes a CLI with three output modes:
- default - Rich formatted output with colors and tables for interactive use
--plain- Simple text output without colors, for piping and scripts--json- Structured JSON output for agents and programmatic access
cosma search "my query" # Search indexed files
cosma index /path/to/dir # Index a directory
cosma status # Check backend status
cosma watch add /path/to/dir # Watch directory for changes
cosma files stats # Get file statistics
Run cosma --help for all commands.
MacOS App
We're also working on a Mac app! If this seems like a useful project, give us a star!
Contributing
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosma-0.4.0.tar.gz.
File metadata
- Download URL: cosma-0.4.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07f99843e6a31c8e1ca985f69d3a22e176e199c044a93bda6e601fc7da51104a
|
|
| MD5 |
653646f3db9f5567c9456a3bf5a61bbb
|
|
| BLAKE2b-256 |
99ec2bc3aa7ef8c3d45c625523aa56b15c667922f7b2736ea5585baedbdb9ad6
|
Provenance
The following attestation bundles were made for cosma-0.4.0.tar.gz:
Publisher:
release.yml on cosmasense/cosma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cosma-0.4.0.tar.gz -
Subject digest:
07f99843e6a31c8e1ca985f69d3a22e176e199c044a93bda6e601fc7da51104a - Sigstore transparency entry: 867448103
- Sigstore integration time:
-
Permalink:
cosmasense/cosma@e1fcdb51c1383b725345a5c4bb2e2354753f3f53 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/cosmasense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1fcdb51c1383b725345a5c4bb2e2354753f3f53 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cosma-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cosma-0.4.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b1b47e6cfdae4a555d2d5b33dbe6795db9bcac26b56c80ba93c754259f89523
|
|
| MD5 |
35c0d9f7ad91a947027854b33767a6dd
|
|
| BLAKE2b-256 |
e244b0c7d9003d1b22271c0094bb4ea1c5dddd318f7c461766239e2a89392770
|
Provenance
The following attestation bundles were made for cosma-0.4.0-py3-none-any.whl:
Publisher:
release.yml on cosmasense/cosma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cosma-0.4.0-py3-none-any.whl -
Subject digest:
8b1b47e6cfdae4a555d2d5b33dbe6795db9bcac26b56c80ba93c754259f89523 - Sigstore transparency entry: 867448332
- Sigstore integration time:
-
Permalink:
cosmasense/cosma@e1fcdb51c1383b725345a5c4bb2e2354753f3f53 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/cosmasense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1fcdb51c1383b725345a5c4bb2e2354753f3f53 -
Trigger Event:
push
-
Statement type: