Skip to content

CLI‑cookie directory

rhoopr edited this page May 24, 2026 · 5 revisions

--cookie-directory

This flag was removed in v0.20.

Use top-level data_dir in TOML for a persistent override. Docker still uses KEI_DATA_DIR=/config as runtime glue.

kei sync --config ~/.config/kei/config.toml
data_dir = "/path/to/sessions"

Details

  • Default: ~/.config/kei/
  • Type: String (path)
  • Replacement: top-level data_dir in TOML

The directory stores:

  • Session cookies
  • Trust tokens (from 2FA)
  • Account authentication state
  • SQLite state database
  • Encrypted credential key file

Files are created with 0o600 permissions. Tilde (~) is expanded to your home directory.

Tip

If migrating from the Python version, that tool stores sessions at ~/.pyicloud/ in LWPCookieJar format, which is not compatible with kei. You will need to re-authenticate.

See Also

Commands

Getting Started

Features

Clone this wiki locally