|
|
Your access tokens live in your operating system's native secret vault: supawho never writes them to a file.
One command to jump between projects and clients. π
Tired of the endless
supabase logoutβsupabase loginβ paste token dance every time you switch project or client?supawho saves each account once and lets you jump between them in seconds, with your tokens kept in the OS secret vault instead of a file.
| π Secure by design | Tokens live in the OS secret store β encrypted, never written to a file |
| π Know who is who | supawho whoami maps every account to its real email + organizations |
| π©Ί Health check | supawho doctor flags revoked tokens and environment issues, with the fix for each |
| π₯οΈ Truly cross-platform | One static binary for macOS, Linux and Windows. No runtime to install |
| β‘ Instant switching | supawho use client-a and you're logged in |
| π Self-updating | supawho upgrade keeps you current on any OS |
| πΊ Installs everywhere | Homebrew, .deb/.rpm/.apk packages, or a one-line script |
# 1. Install (macOS shown β Linux & Windows below)
brew install EliaTolin/tap/supawho
# 2. Use it
supawho add # save an account (once): asks for a name and the token, input hidden
supawho use work # switch to it in a second
supawho whoami # forgot which is which? map them allNot on macOS? Grab your one-liner from Installation β
install.shfor Linux,install.ps1for Windows.Full walkthrough: Get started with supawho.
Pick your platform β every option gives you the same single, dependency-free binary.
brew install EliaTolin/tap/supawhoPrefer a script or a raw binary?
curl -fsSL https://raw.githubusercontent.com/EliaTolin/supawho/main/install.sh | bashOr grab the Darwin archive from the releases page and drop the binary in your PATH.
curl -fsSL https://raw.githubusercontent.com/EliaTolin/supawho/main/install.sh | bashNative packages (.deb / .rpm / .apk)
Download the package for your distro and CPU (x86_64 or arm64) from the releases page, then:
# Debian / Ubuntu
sudo dpkg -i supawho_*_linux_amd64.deb
# Fedora / RHEL
sudo rpm -i supawho_*_linux_amd64.rpm
# Alpine
sudo apk add --allow-untrusted supawho_*_linux_amd64.apkβΉοΈ Linux needs a Secret Service provider (GNOME Keyring, KWallet, β¦) running to store tokens.
irm https://raw.githubusercontent.com/EliaTolin/supawho/main/install.ps1 | iexPrefer the raw binary?
Download the Windows .zip for your CPU (x86_64 or arm64) from the releases page, extract supawho.exe, and add it to your PATH.
Requires Go 1.25+:
git clone https://github.com/EliaTolin/supawho.git
cd supawho
go install .- Open supabase.com/dashboard β profile icon (top right)
- Account preferences β Access Tokens
- Generate new token, name it, and copy it
π‘ The token starts with
sbp_and is shown only once β copy it right away.
Then save it. supawho add asks for a name and the token, and hides the token as you paste it, so it stays out of your shell history:
supawho addFor scripts there is a one-line form, supawho add <name> "$SUPABASE_TOKEN". Avoid typing a literal token on the command line: it ends up in your shell history.
| Command | Description |
|---|---|
supawho |
Interactive account picker |
supawho add |
Save a new account (guided, hidden token input) |
supawho add <name> <token> |
Save a new account in one line, for scripts |
supawho use <name> |
Switch to an account |
supawho list |
Show all saved accounts |
supawho whoami [name] |
Reveal the email + organizations behind each account |
supawho find <project-ref> |
Find which account owns a project |
supawho projects [name] |
List the projects of each account (--json for scripts) |
supawho doctor [name] |
Check token validity and system health (--json for scripts) |
supawho rename <old> <new> |
Rename a saved account |
supawho remove <name> |
Delete an account |
supawho upgrade |
Update to the latest version |
supawho version |
Print the installed version |
Every command has its own page in the command reference.
Just run supawho with no arguments:
___ _ _ ___ ___ _ _ _ _ ___
/ __|| | | | _ \/ _ \| | | | || |/ _ \
\__ \| |_| | _/ (_) | |/\| | __ | (_)
|___/ \___/|_| \__\_\__/\__|_||_|\___/
π Who are you today?
Select an account:
1) myproject
2) another-project
Enter number (1-2):
Got a dozen accounts and can't remember whose is whose? supawho whoami asks Supabase and maps each one to its email and organizations β a revoked token is flagged on its own row without breaking the rest:
Add a name to look up a single account: supawho whoami client-a.
The reverse lookup: paste a Supabase project ref and supawho find tells you which saved account it lives in.
$ supawho find abcdefghijklmnopqrst
β Found in account 'client-a'
Project storefront
Reference abcdefghijklmnopqrst
Organization Client A
Region eu-central-1
Status ACTIVE_HEALTHY
Email you@example.com
Account client-a
Switch to it: supawho use client-a
supawho projects lists every project an account can reach, with its reference, organization, region and status. Add a name to list a single account, or --json for scripts.
$ supawho projects client-a
client-a (2)
PROJECT REFERENCE ORGANIZATION REGION STATUS
api abcdefghijklmnopqrst Client A eu-central-1 ACTIVE_HEALTHY
api-dev tsrqponmlkjihgfedcba Client A eu-central-1 INACTIVE
supawho tells you when a new version ships, and updates itself with one command:
supawho upgradeIt downloads the latest release, verifies its checksum, and swaps the binary in place. If supawho was installed through a package manager, it won't fight it β it points you to the right command instead:
| Installed via | How it updates |
|---|---|
| Homebrew | brew upgrade supawho |
| Install script / raw binary | supawho upgrade |
.deb / .rpm / .apk |
your system package manager |
Prefer silence? Set
SUPAWHO_NO_UPDATE_CHECK=1to disable the background version check.
supawho never writes your tokens to a file. They live in your operating system's native secret store β the same encrypted vault the OS uses for passwords and certificates:
- macOS β Keychain
- Linux β Secret Service (GNOME Keyring / KWallet, via
libsecret) - Windows β Credential Manager
| supawho | Plain-text files | |
|---|---|---|
| Encrypted at rest | β | β |
| Protected by system login | β | β |
Survives an accidental git add . |
β | β |
What this does not cover, so you can judge for yourself:
- To switch account, supawho runs
supabase login --token <token>. For that brief moment the token is visible in the process list to other processes running as your user. - After the switch, the Supabase CLI keeps the active token in its own storage: the OS keyring when available, otherwise a plain-text file under
~/.supabase. - The only file supawho writes is a timestamp for the daily update check. It contains no token.
The full picture is in the security model.
- macOS, Linux, or Windows β a single static binary, no runtime to install
- On Linux, a Secret Service provider must be running (GNOME Keyring, KWallet, β¦)
- Supabase CLI β installed and available in your
PATH
Account not found when running supawho use
Run supawho list to check the exact name β account names are case-sensitive.
The token stops working after switching
Confirm it's still valid in Supabase Dashboard β Access Tokens, then run supawho add again with the same name and a fresh token: it replaces the saved one.
Linux: Cannot create an item in a locked collection
Your keyring is locked or no Secret Service is running. Unlock your login keyring (GNOME Keyring / KWallet) and try again.
supawho upgrade says it's managed by a package manager
That's on purpose β update through the manager you installed it with (see the table above).
More cases, with the exact error messages, are in the troubleshooting guide.
Issues, ideas and PRs are welcome β this project grew cross-platform thanks to the community. Special thanks to @igorgomes3 whose supawho-linux fork sparked the multi-OS rewrite.
Found a bug or want a feature? Open an issue.
MIT β Made with π by Elia Tolin

