/ns-keychain.el

emacs package to interface with macOS keychain (for tools that use logins, like email, copilot, chatgpt)

Primary LanguageEmacs Lisp

ns-keychain.el

Simple emacs package that integrates macOS’s security command into emacs; this way, you can store passwords for services like email (with gnus or similar) or even API keys for ChatGPT.

Install

(use-package ns-keychain
  :straight (:host github :repo "yaqubroli/ns-keychain.el"))

Functions

Function NameDescription
ns-keychain-add-generic-passwordAdd a generic password to macOS’s OS-wide keychain. SERVICE and ACCOUNT are strings. PASSWORD is a string or nil.
ns-keychain-add-internet-passwordAdd an internet password to macOS’s OS-wide keychain. SERVER and ACCOUNT are strings. PASSWORD is a string or nil.
ns-keychain-get-generic-passwordGet the password for SERVICE and ACCOUNT from macOS’s OS-wide keychain.
ns-keychain-get-internet-passwordGet the password for SERVER and ACCOUNT from macOS’s OS-wide keychain.