#gog does not store my password
1 messages · Page 1 of 1 (latest)
In WSL, gog can’t use macOS Keychain / a desktop keychain, so it usually falls back to the encrypted file keyring. That means it will keep prompting for a password unless you provide it non-interactively.
A few quick checks / fixes:
- See what keyring backend it’s using + where it stores config:
gog auth keyring
- If it’s trying to use a keychain backend (or you just want to be explicit), force the file backend:
gog auth keyring file
# (optional) also force via env:
export GOG_KEYRING_BACKEND=file
- To stop the “enter password every time” prompts, set:
export GOG_KEYRING_PASSWORD='your-long-random-passphrase'
Put that export in ~/.bashrc (tradeoff: secret lives in env), or use some safer secret-loading approach.
Also: make sure your gog config dir is on the Linux filesystem (e.g. under /home/<you>/...), not somewhere flaky like /mnt/c/..., or it can look like it “doesn’t persist”.
If you paste:
- the exact prompt/error you see, and
- output of
gog auth keyring+gog --version
…I can tell you the exact minimal change for your setup.
i am trying to setup my main agent to test if it can access my calendar he says that:
Estado real,
gog instalado: sĂ,
cuenta autorizada: parece que sĂ,
uso desde tu terminal: sĂ,
uso desde mĂ, vĂa OpenClaw: no todavĂa,
motivo: el proceso no ve GOG_KEYRING_PASSWORD
Eso cuadra 100%: tu terminal WSL sĂ tiene GOG_KEYRING_PASSWORD, pero el proceso del Gateway (OpenClaw) no lo hereda, asĂ que cuando el agente intenta usar gog desde OpenClaw no puede desbloquear el keyring.
La solución “correcta” (especialmente si el Gateway corre como servicio) es ponerlo en el .env global de OpenClaw:
- Crea/edita este archivo en WSL:
mkdir -p ~/.openclaw
nano ~/.openclaw/.env
- Añade:
GOG_KEYRING_BACKEND=file
GOG_KEYRING_PASSWORD=tu-passphrase-larga
- Asegura permisos y reinicia el gateway:
chmod 600 ~/.openclaw/.env
openclaw gateway restart
Luego prueba desde OpenClaw (o pĂdele al agente que pruebe) algo tipo gog auth status / gog calendar calendars.
Alternativa si no quieres guardar el secreto en ~/.openclaw/.env: habilita importaciĂłn del shell env en ~/.openclaw/openclaw.json:
{
env: { shellEnv: { enabled: true, timeoutMs: 15000 } }
}
(Pero en WSL/servicio normalmente lo más estable es ~/.openclaw/.env.)
Docs: https://docs.openclaw.ai/help/faq#i-started-the-gateway-via-the-service-and-my-env-vars-disappeared-what-now and https://docs.openclaw.ai/help/environment
GOG_KEYRING_BACKEND=file
GOG_KEYRING_PASSWORD=tu-passphrase-larga
que tengo que poner el file?
ya funciona como lo dejo como solved?
file es literalmente la palabra “file” — no es una ruta ni un nombre de archivo.
Lo que tienes que poner es esto en ~/.openclaw/.env:
GOG_KEYRING_BACKEND=file
GOG_KEYRING_PASSWORD=pon-aqui-una-passphrase-larga-y-random
GOG_KEYRING_BACKEND=file= “usa el keyring en disco (encriptado)”, en vez de intentar usar un keychain del sistema (que en WSL suele fallar / pedir contraseña).GOG_KEYRING_PASSWORD=...= la contraseña que usará para desencriptar ese keyring.
Si quieres generar una buena passphrase:
openssl rand -hex 32
Después guarda el archivo y:
openclaw gateway restart
Si quieres ver dĂłnde guarda gog ese keyring en disco:
gog auth keyring