CLI tools with login / logout commands often include commands to show the currently logged in user (see e.g. the Azure CLI tool https://docs.microsoft.com/en-us/cli/azure/account?view=azure-cli-latest).
So something like obsctl whoami or obsctl account show should return either the logged in user or Anonymous.