Skip to content
EntwiningPublic

About

Stores API keys, tokens, passwords, and SSH keys in iCloud Keychain and gives them to commands as environment variables, masking their values in output.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maskey

Maskey is a macOS app and command line (mk) that let scripts and coding agents use credentials without putting their values in prompts or project files. Keep entries in iCloud Keychain to sync them across Macs on the same Apple Account, or connect a Bitwarden Secrets Manager project to share them across accounts.

What it does

Give a command its credentials

mk run gives a command just the API keys, tokens, or passwords you select, as environment variables. If the command prints an exact value to stdout or stderr, mk shows a marker such as ***.

mk set github/GITHUB_TOKEN      # prompts without echoing the value
mk run github/GITHUB_TOKEN -- gh auth status

Lend an SSH key

For an SSH Key entry, the command gets a public key and an SSH agent. The private key stays in mk's process. During the run, the command can request any signature with that key. The agent ends with the command.

Manage entries in a window

Create, search, and edit entries in the macOS window. Reveal or copy a value when you need it. Program access lets a credential helper obtain a raw value after you grant the entry access.

Know which programs used them

mk activity shows which programs used or changed entries through Maskey on this Mac. The record contains no values, notes, command arguments, or environment variables.

Get started

You need an Apple silicon Mac running macOS 13 or later and Apple's Command Line Tools or Xcode.

brew install --cask entwining/tap/maskey
xattr -dr com.apple.quarantine /Applications/Maskey.app
mk setup

Maskey is signed ad hoc and is not notarized. The xattr command removes Gatekeeper's quarantine. You can also install with a script or build from source.

For coding agents, run mk skill install to install the shipped skill. Sandboxed commands that use the Maskey service need access to its Unix socket.

Know the limits

Wrap only the tool that needs the credential. A whole coding agent can write logs outside mk's output. Give credentials only to commands you trust with them, since a command can transform, save, or send a value beyond Maskey's masking.

Development

Maskey is written in Go with MyGo. Run the repository checks before submitting a change.

License

Maskey is available under the MIT license.

About

Stores API keys, tokens, passwords, and SSH keys in iCloud Keychain and gives them to commands as environment variables, masking their values in output.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages