system keyring is unavailable
Error: system keyring is unavailable: The name org.freedesktop.secrets was not provided by any .service files; use --insecure-storage to store the session in a file or `tuna login --with-api-key` on servers
tuna login prints this error before opening the browser and exits. The text after the colon is the reason reported by the operating system and depends on the system.
If the keyring fails after you've already confirmed the login in the browser, the message is different:
Error: save session to system keyring (tuna/…): …; use --insecure-storage to store it in a file
Cause
tuna login saves the session to the system keyring: Keychain on macOS, Credential Manager on Windows, Secret Service on Linux. Before logging in, the CLI checks that it can write to the keyring. If it can't, the login stops.
Most often, there's no keyring on Linux servers, in containers, in WSL, or in minimal installs without a desktop environment: Secret Service doesn't run there.
If the text after the colon says system keyring did not respond, the keyring exists but is locked and waiting for a password — see System keyring did not respond.
What to do
-
Log in with the
--insecure-storageflag. The session is saved tocredentials.jsonnext to the config file:tuna login --insecure-storage -
On servers, in CI, and in containers, use an API key: pass it in the
TUNA_API_KEYvariable or save it withtuna login --with-api-key.
See Sessions and API keys for details.