Logging in
ping before saving it. Account creation is browser-only; gcai auth signup opens the sign-up page.
Related commands:
Where credentials live
gcai auth login stores your key and base URL in ~/.config/gcai/config.json (or $XDG_CONFIG_HOME/gcai/config.json), created with owner-only permissions. Storing the base URL alongside the key means a key minted against a non-production environment keeps hitting the right server without re-passing --base-url.
Choosing a key without logging in
You can skip the stored login for a single command with a flag or an environment variable. Each command resolves its key and base URL in this order:--api-key/--base-urlflagsGCAI_API_KEY/GCAI_BASE_URLenvironment variables- the stored login (
gcai auth login) - the default base URL (
https://app.gc.ai/api/external/v1)
GCAI_API_KEY as a secret and skip auth login entirely.