# zalando/go-keyring

Cross-platform keyring interface for Go

Repository: https://github.com/zalando/go-keyring
Canonical: https://ross.abutalabs.com/products/go-keyring
Language: Go
License: MIT
License Family: permissive
Topics: golang, dbus, secret, keyring, utilities, authentication
Last push: 2026-07-24T21:27:43+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 44, longevity 100
- inputs: {"age_days": 3698, "days_push": 40, "days_rel": 163, "gap_med": 256.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1321, forks 119 (observed 2026-08-28T04:04:21.907063+00:00)

## What it is
A cross-platform Go library for setting, getting, and deleting secrets in the operating system's native keyring (macOS Keychain, Windows Credential Manager, Linux/BSD Secret Service via dbus). It avoids C bindings so statically linked binaries remain easy to build.

## Use cases
- store api credentials locally in a go cli
- save user passwords in the system keychain
- securely persist tokens on macos linux and windows
- avoid storing secrets in plaintext config files
- retrieve keyring secrets from a go application

## When to choose
- you need OS-native credential storage in a Go program
- you want statically linked binaries without C bindings
- you're building a CLI that must remember user credentials between runs

## When to avoid
- you need secrets storage in a non-Go language
- your target Linux environment lacks a Secret Service dbus provider like GNOME Keyring
- you need cross-platform encrypted file-based storage rather than OS keyrings

## Facets
- artifact type: library
- maturity: active
- function: auth, security, cryptography, developer-tools
- domain: security, developer-tools, cross-platform
- platform: windows, go, cross-platform
- tags: keyring, keychain, secret-storage, credentials, dbus, secret-service, macos, linux

## Member repositories
- zalando/go-keyring (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:21.907063+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:47:21.084550+00:00, confidence not recorded.
  - readme: https://github.com/zalando/go-keyring (fetched 2026-08-28T04:04:21.907063+00:00, sha 033d30844dd0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
