whoami
rai whoami [OPTIONS]Show who the active config says you are.
Reads identity from the resolved :class:Config — no session,
instant. Pass --resolve to open a session and report the
server-resolved identity (catches SSO/JWT/OAuth user mappings;
verbose form shows Config user: foo (resolved to BAR) on
drift). --json / --output yaml emits a
{"whoami": {...}} envelope with the full payload regardless
of --verbose.
Examples: rai whoami rai whoami -v rai whoami —resolve rai whoami —json rai —profile dev whoami
Options
Section titled “Options”| Option | Type | Description |
|---|---|---|
--verbose, -v | Boolean | Show the full identity table with auth + config provenance. Default: False. |
--resolve | Boolean | Open a session and report the server-resolved identity. Slower (one auth round-trip) but catches SSO / JWT / OAuth / PAT user mappings and other config-vs-server drift. Default: False. |