BuyProxy logo
Log inSign up

CLI · Account

buyproxy whoami

Show the account behind the current key and where the key came from.

Usage

shell
$ buyproxy whoami

Useful when something behaves unexpectedly — it confirms which account and key type you're using, with the key masked.

How it works

The Read from line tells you which source won: --key flag, BUYPROXY_API_KEY, or the saved config file (the precedence is in that order).

Examples

Who am I?

shell
$ buyproxy whoami
example output
Account
  Email          you@example.com
  Key type       personal
  Details        pro plan
  Key            bp_key_abcde••••••••f3a9
  Read from      /home/you/.config/buyproxy/config.json

JSON output

--json prints { "email", "kind", "detail", "key" } with the key masked.

Troubleshooting

You seeHow to fix it
You're not logged in.Run buyproxy login.

Was this page helpful?