Skip to main content

Module cli_identity

Module cli_identity 

Source
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§

CliIdentity

Constants§

PROVIDER_PLACEHOLDER
The {provider} placeholder in CliIdentity::auth_login.

Functions§

auth_dir_or
The folder provider sign-in tokens go in: the embedding program’s auth_dir, else default (a token store’s auth/ 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.