Keyring Provider
The Keyring provider stores secrets in your system’s native credential store. Recommended for local development.
Supported Platforms
Section titled “Supported Platforms”- macOS: Keychain
- Windows: Credential Manager
- Linux: Secret Service (GNOME Keyring, KWallet)
Installation
Section titled “Installation”Linux only - install if missing:
# Debian/Ubuntu$ sudo apt-get install gnome-keyring
# Fedora$ sudo dnf install gnome-keyring
# Arch$ sudo pacman -S gnome-keyring
Configuration
Section titled “Configuration”[project]name = "myapp"
[[providers]]type = "keyring"uri = "keyring://"
# Set a secret$ secretspec set DATABASE_URLEnter value for DATABASE_URL: postgresql://localhost/mydb✓ Secret DATABASE_URL saved to keyring
# Get a secret$ secretspec get DATABASE_URLpostgresql://localhost/mydb
# Run with secrets$ secretspec run -- npm start
# Use with profiles$ secretspec set API_KEY --profile production$ secretspec run --profile production -- npm start