Skip to content

Files and environment

What Linux macOS
Data: models, backend ~/.local/share/gerald ~/Library/Application Support/gerald
State: sign-in identity, off switch, Fill ledger ~/.local/state/gerald ~/.local/state/gerald
Cache: code search index ~/.cache/gerald ~/.cache/gerald
Binary ~/.local/bin/gerald ~/.local/bin/gerald

XDG_DATA_HOME, XDG_STATE_HOME and XDG_CACHE_HOME move the Linux data directory, the state directory and the cache.

Models are several gigabytes each. To keep them on another disk, set GERALD_DATA_DIR to an absolute path, in every shell that runs Gerald.

Path
account/ This install’s identity and revocation records. Not a secret, but back it up with your keychain entry; do not delete it to reset an account
off Present while gerald off is in effect
serve.lock, serve.log The model agents started: which one is running, and what it printed. No source
usage.jsonl, usage.jsonl.1 The ledger behind gerald stats. Counts, times and file names
fill/ Recent Fill replies, kept for 24 hours

Sign-in credentials are not in these directories. They are in the login Keychain (macOS) or Secret Service (Linux).

scout/index.sqlite is the code search index. It is safe to delete; Gerald rebuilds it.

Variable
GERALD_DATA_DIR Absolute path for models and the backend
GERALD_OFF Any value but empty or 0 hides Gerald from agents for that process
GERALD_IDLE_MINUTES Minutes the model agents started may sit idle before it stops. Default 15; 0 keeps it running
XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME Base directories, as above
XDG_CONFIG_HOME Where gerald install finds OpenCode’s configuration
CODEX_HOME Where gerald install finds Codex’s configuration. Default ~/.codex

The installer has its own variables; see Install.

Host Used for
software.bitfoot.co Sign-in, licence status, finding a release
downloads.bitfoot.co The CLI, backends and models
127.0.0.1 The served model, and the backend behind it on a random port

Gerald uses HTTPS, follows no redirects and ignores proxy settings for the account service.