Expand description
The command-line program a Roder runtime is embedded in.
Roder’s own CLI is roder, but other programs embed the runtime and ship
their own command line: a hint such as “run roder auth login codex” means
nothing to their users. An embedding program sets its identity once at
startup with set_cli_identity; every user-facing sign-in hint and the
provider sign-in token folder (Codex, SuperGrok, Kimi Code) then follow
it. Until one is set, Roder’s defaults apply; reading the identity never
fixes it, so setting it later still takes effect.
Structs§
Constants§
- PROVIDER_
PLACEHOLDER - The
{provider}placeholder inCliIdentity::auth_login.
Functions§
- auth_
dir_ or - The folder provider sign-in tokens go in: the embedding program’s
auth_dir, elsedefault(a token store’sauth/under Roder’s data folder). - auth_
login_ command - The command a user of this program runs to sign in to
provider. - cli_
identity - The embedding program’s identity, or Roder’s own while none is set.
- set_
cli_ identity - Name the program embedding Roder, before any provider or sign-in runs. The first identity set wins; a later one is returned as the error.