# gram whoami

The `whoami` command displays information about the currently configured
profile, including organization details, project settings, and API key scopes.

<Callout type="info">
    If no profile is configured, the command will indicate that no profile is
    set up. Run [gram auth](/docs/ai-control-plane/reference/command-line/auth) to authenticate and
    create a profile.
</Callout>

## Usage

Display current profile information:

```bash
gram whoami
```

This command shows:

- Organization details
- Target project details
- API key scopes
- All projects available to the profile

Output as JSON for scripting:

```bash
gram whoami --json
```

## Options

### <code>json</code>

Output the profile information as JSON. This is useful for scripting and
automation.

```bash
gram whoami --json
```

### <code>api-key</code>

Verify a specific API key instead of the one stored in the current profile.

```bash
gram whoami --api-key MY_API_KEY
```

The API key can also be set via the `GRAM_API_KEY` environment variable.
