monkeys

preview

Answers the question you usually have, which is whether the right secret is in there, without printing it.

monkeys preview [@profile] [KEY[,KEY...]]

Answers the question you usually have, which is whether the right secret is in there, without printing it:

monkeys preview
GITHUB_TOKEN        gh...f 40
OPENROUTER_API_KEY  sk...2 73

It shows the first two characters, the last one, and the length. A secret is masked whole whenever fewer than five characters would stay hidden, so nothing under eight characters long gives any of itself away:

monkeys preview SHORT_ONE
SHORT_ONE  ... 6

A length and a two-character prefix are enough to tell a secret pasted whole from one that lost a character on the way, or one provider's from another's.

With no keys, preview shows every key in the profile: those with no profile outside a project, the file's keys inside one.