Install
openclaw skills install whoami-toolPrint the current effective username. Simple identity query for scripts, session tracking, and access control verification.
openclaw skills install whoami-toolDisplay the current effective username (and optionally uid/gid/group membership). Essential for scripts that need to verify permissions, log user context, or conditionally execute based on identity.
# Show current username
whoami-tool
# Show full identity
whoami-tool --full
whoami-tool [OPTIONS]
Options:
--full Show username, UID, GID, and primary group
--uid Show numeric user ID only
--groups Show all group memberships
--json Output as structured JSON
--check USER Exit 0 if current user matches, 1 if not
# Basic username
whoami-tool
# Full user identity
whoami-tool --full
# Check if running as root (for privilege checks)
whoami-tool --check root && echo "Running as root"
# Show all groups
whoami-tool --groups
# JSON output for logging
whoami-tool --json
# UID for numeric comparisons
whoami-tool --uid