LinuxCommandLibrary

gnome-keyring

TLDR

Start keyring daemon

$ gnome-keyring-daemon --start
copy
Start with specific components
$ gnome-keyring-daemon --start --components=secrets,ssh
copy
Replace running daemon
$ gnome-keyring-daemon --replace
copy
Unlock keyring via CLI
$ secret-tool store --label="My Secret" service myapp
copy
Lookup secret
$ secret-tool lookup service myapp
copy

SYNOPSIS

gnome-keyring-daemon [options]

DESCRIPTION

GNOME Keyring is a daemon that stores secrets, passwords, and keys. It provides secure storage for applications and handles SSH key management.
The keyring is typically started at login and unlocked with the user's password. Applications access it through libsecret or the Secret Service D-Bus API.

PARAMETERS

--start

Start daemon if not running.
--replace
Replace running daemon.
--components list
Components: secrets, pkcs11, ssh.
--daemonize
Run as daemon.
-f, --foreground
Run in foreground.
-l, --login
Read login password from stdin.

COMPONENTS

- secrets: Password/secret storage
- ssh: SSH agent (replaces ssh-agent)
- pkcs11: PKCS#11 smart card support

COMMAND-LINE ACCESS

$ # Store a secret
secret-tool store --label="GitHub Token" service github account token

# Retrieve a secret
secret-tool lookup service github

# Clear a secret
secret-tool clear service github
copy

CAVEATS

Usually started by desktop session. SSH component may conflict with ssh-agent. Keyring locked when session locks. Non-GNOME desktops may need manual setup.

HISTORY

GNOME Keyring was created for the GNOME desktop to provide secure credential storage. It implements the freedesktop.org Secret Service specification for cross-desktop compatibility.

SEE ALSO

Copied to clipboard