setup
keys add
keys list
* marks the active key. Keys always print as a prefix plus the last four
characters. The full secret is never printed by any command, in either human or
JSON output.
If GORO_API_KEY is set in your shell, keys list says so, because that key
wins over everything stored:
keys use
Where keys live
~/.goro/config.json, mode 0600, inside a directory with mode 0700. The
CLI re-applies those permissions on every write, so a file that something else
loosened is tightened again rather than left open.
If it finds the file world-readable, keys list warns:
GORO_CONFIG_HOME, which
is how you keep separate profiles:
Precedence
When more than one key is available, the first match wins:1
GORO_API_KEY
An environment variable beats everything stored. Nothing is written to disk.
2
The active stored key
Whatever
keys use last selected.--api, then GORO_API_URL, then
the api_url saved in your config, then the default.
Losing a key
Revoke it in the dashboard. A revoked key fails closed on the next call:2, so a script can tell an auth problem from an empty wallet
(3) or a flaky provider (4).