Retrieve Your Credentials
In Kosh, retrieving a credential means securely decrypting a stored entry using your master password and copying the password to your system clipboard.
Kosh provides two ways to retrieve credentials:
- Exact match retrieval using
kosh get - Adaptive fuzzy search using
kosh search(default command)
Retrieve a Credential (Exact Match)
Section titled “Retrieve a Credential (Exact Match)”Use kosh get when you know the exact label and username:
kosh get github plutoYou’ll be prompted for your master password. Once verified, Kosh decrypts the stored password and copies it directly to your clipboard.
This is the fastest option when you know exactly what you’re looking for.
Search Your Vault (Fuzzy Retrieval)
Section titled “Search Your Vault (Fuzzy Retrieval)”If you don’t remember the exact label or username, use Kosh’s adaptive fuzzy search:
kosh search gitOr simply use the shorthand:
kosh gitSearch works across both label and username fields. It returns the best-matching entry based on Kosh’s adaptive ranking algorithm.
You will then be prompted for your master password, and the matched credential will be decrypted and copied to your clipboard.
Two-Argument Search
Section titled “Two-Argument Search”You can also provide separate fuzzy queries for the label and username:
kosh search mail personalor:
kosh search github plutoKosh treats the first argument as the label query and the second as the user query, applying fuzzy matching to both.
About the Adaptive Search
Section titled “About the Adaptive Search”Kosh’s search is powered by a custom ranking algorithm that considers:
- Fuzzy match quality (Levenshtein distance)
- Prefix / substring boosts
- Recent usage
- Frequency of access
The highest-scoring entry is returned first.
A detailed explanation of the scoring algorithm can be found in the dedicated Search Algorithm section.