AgentSkillsCN

agentuity-cli-auth-whoami

显示当前已认证用户的有关信息。需要认证。用于管理认证凭据

SKILL.md
--- frontmatter
name: agentuity-cli-auth-whoami
description: Display information about the currently authenticated user. Requires authentication. Use for managing authentication credentials
version: "0.1.2"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
metadata:
  command: "agentuity auth whoami"
  tags: "read-only fast requires-auth"

Auth Whoami

Display information about the currently authenticated user

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity auth whoami

Examples

Show current user:

bash
bunx @agentuity/cli auth whoami

Show output in JSON format:

bash
bunx @agentuity/cli --json auth whoami

Output

Returns JSON object:

json
{
  "userId": "string",
  "firstName": "string",
  "lastName": "string",
  "organizations": "array"
}
FieldTypeDescription
userIdstringUnique user identifier
firstNamestringUser first name
lastNamestringUser last name
organizationsarrayOrganizations the user belongs to