Skip to content

Password

rhoopr edited this page Apr 13, 2026 · 3 revisions

password

Manage stored credentials in the OS keyring or encrypted file store.

Replaces the deprecated credential command.

Usage

# Store a password (prompts interactively)
kei password set -u my@email.address

# Remove a stored password
kei password clear -u my@email.address

# Show which credential backend is active
kei password backend

Subcommands

Subcommand Description
set Store a password in the credential store. Prompts for input.
clear Remove the stored password for the given username.
backend Print the active backend: keyring, encrypted-file, or none.

Backends

On desktop platforms, kei uses the OS keyring (macOS Keychain, Linux Secret Service, Windows Credential Manager). In headless environments without a keyring, it falls back to an AES-256-GCM encrypted file in the data directory.

See Credentials for details on each backend and alternative password delivery methods.

Flags

Global flags (--username, --config, --data-dir, --domain, --log-level) apply to this command.

Flag Description
-p, --password iCloud password (fallback for auth)
--password-file Read password from a file
--password-command Run a command to get the password

Related

Clone this wiki locally