Search engine for your files!
Project description
Cosma
Search engine for your files!
Use it yourself or plug it into your agents. Comes with a CLI, TUI, and macOS app.
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 in progress.
Installing
Cosma can be downloaded from PyPI.
The installation commands below use uvx.sh to install Cosma
via uv. If you prefer using uv directly,
use uv tool install cosma.
MacOS/Linux
curl -LsSf uvx.sh/cosma/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/cosma/install.ps1 | iex"
Upgrading
To upgrade to the latest version:
uv tool upgrade cosma --no-cache
Running
Backend
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. For persistent use, consider running this as a background process or configure it as a system service.
cosma serve
[!IMPORTANT]
The backend must be running for the following commands to work (see above).
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.
TUI
Cosma also comes with a terminal UI (TUI).
cosma tui /path/to/directory/to/search
[!WARNING] This will begin processing all files in the directory specified, which will take some time if running locally.
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.6.0.tar.gz.
File metadata
- Download URL: cosma-0.6.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cac185333dec614c794c43827e09427a2669db5119e5ea68ef854de7e35f1047
|
|
| MD5 |
cd1dac572e3811a17fec4a166b6df425
|
|
| BLAKE2b-256 |
94d080a68cd2293f286350f0c9fb44a709baad34a0ed030a8a2306df9c311578
|
Provenance
The following attestation bundles were made for cosma-0.6.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.6.0.tar.gz -
Subject digest:
cac185333dec614c794c43827e09427a2669db5119e5ea68ef854de7e35f1047 - Sigstore transparency entry: 1097269779
- Sigstore integration time:
-
Permalink:
cosmasense/cosma@be5e4115d600d79bdf47fe7cff81d81e5c1f2f88 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/cosmasense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be5e4115d600d79bdf47fe7cff81d81e5c1f2f88 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cosma-0.6.0-py3-none-any.whl.
File metadata
- Download URL: cosma-0.6.0-py3-none-any.whl
- Upload date:
- Size: 19.9 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 |
a39cc356466ec1cea159dd69197b49a9ba6816315826c01dd41f77b162d1e96d
|
|
| MD5 |
1b1f5599790e9fec235c258a823b5634
|
|
| BLAKE2b-256 |
eebd13efdd9e922d7761504ea0e04a13ed396af12757096d61d95ffa426f656a
|
Provenance
The following attestation bundles were made for cosma-0.6.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.6.0-py3-none-any.whl -
Subject digest:
a39cc356466ec1cea159dd69197b49a9ba6816315826c01dd41f77b162d1e96d - Sigstore transparency entry: 1097269797
- Sigstore integration time:
-
Permalink:
cosmasense/cosma@be5e4115d600d79bdf47fe7cff81d81e5c1f2f88 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/cosmasense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be5e4115d600d79bdf47fe7cff81d81e5c1f2f88 -
Trigger Event:
push
-
Statement type: