> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/system-keyring-is-unavailable/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# system keyring is unavailable

```text
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:

```text
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](https://tuna.am/en/docs/troubleshooting/errors/system-keyring-did-not-respond.md).

## What to do

* Log in with the `--insecure-storage` flag. The session is saved to `credentials.json` next to the [config file](https://tuna.am/en/docs/guides/config-file.md):

  ```shell
  tuna login --insecure-storage

  ```

* On servers, in CI, and in containers, use an [API key](https://my.tuna.am/api_keys?lang=en): pass it in the `TUNA_API_KEY` variable or save it with `tuna login --with-api-key`.

See [Sessions and API keys](https://tuna.am/en/docs/guides/sessions-and-api-keys.md) for details.
