whoami
Check local Nahook login status, returning workspace, region, and token ID from ~/.nahook/config.toml. Use this to confirm credentials are in place before other commands.
Instructions
Return the workspace, region, and token id the local Nahook CLI is logged into. Use this as a first call to confirm credentials are in place. Reads ~/.nahook/config.toml; never hits the network. Example: "am I logged in?", "what workspace am I in?". Also worth calling defensively before other tools if you suspect credentials might be missing — it tells you whether nahook login has run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logged_in | Yes | true when a CLI token is present in the local config | |
| workspace | No | the workspace public id the token is scoped to | |
| region | No | the region the token routes to (us, eu, or ap) | |
| token_id | No | the token's public id (clitok_xxx), surfaced in the dashboard's active tokens list | |
| machine | No | the machine name recorded at login time | |
| expires_at | No | RFC3339 timestamp when the token expires |