> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bonya.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Account

> whoami, logout, and version

This page covers the **Account** commands that aren't organization-related. See [`bonya org`](https://docs.bonya.ai/cli-reference/org) for switching organizations and [`bonya login`](https://docs.bonya.ai/cli-reference/login) for authenticating.

## `bonya whoami`

Shows where the API key, endpoint, and organization id currently in effect each come from.

```shell theme={null}
bonya whoami
```

```console theme={null}
$ bonya whoami
api key:         bonya login (saved)
endpoint:        (not set)
organization id: bonya login (saved): org-4f1c9a2b3c4d5e6f7a8b9c0d1e2f3a4b
```

> [!NOTE]
>
> `whoami` makes **no network call**. It only reports which source — `--flag`, `environment variable`, `bonya login (saved)`, or `(not set)` — each setting resolves from, following the same [precedence order](https://docs.bonya.ai/cli-reference/configuration.md#precedence) every other command uses. It never confirms the key is actually valid; use `bonya list` or another real command for that.

The API key's value is never printed, even when it's set — only its source. Endpoint and organization id print their actual saved value alongside the source, since those aren't secret.

## `bonya logout`

Removes the API key (and endpoint/organization id) saved by `bonya login`, by deleting the config file.

```shell theme={null}
bonya logout
```

```console theme={null}
$ bonya logout
Removed /Users/you/.config/bonya/config.json
```

This only affects the saved login — a `--api-key` flag or `BONYA_API_KEY` environment variable still works after `logout`, since those take priority over (and don't depend on) the saved config.

## `bonya version`

> [!NOTE]
>
> Alias: `v`

Prints the installed CLI version.

```shell theme={null}
bonya version
```

```console theme={null}
$ bonya version
bonya version v1.4.0
```

`bonya --version` prints the same string, and the version is also folded into `bonya --help`'s output next to the `-h` flag. Note that `-v` is short only for the `version` subcommand (`bonya v`) — the root `--version` flag itself has no single-letter shorthand.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.