Skip to content

How it works

supawho is a thin, secure layer on top of the official Supabase CLI. Here’s the whole model.

Each account you save is just a name you choose (work, client-a) mapped to a Supabase access token (sbp_…). The token is stored in your OS secret vault; the list of names is kept alongside it.

work → sbp_•••••••• (in the OS secret vault)
client-a → sbp_••••••••
side-project → sbp_••••••••

When you run supawho use work, supawho reads that account’s token from the vault and runs:

Terminal window
supabase login --token <token>

So supawho never reimplements authentication — it drives the Supabase CLI you already have. That’s why the Supabase CLI must be installed and on your PATH.

whoami and find call the Supabase Management API with each account’s token:

  • GET /v1/profile → the account’s email
  • GET /v1/organizations → organization names
  • GET /v1/projects → the projects a token can access

These are read-only calls, used only when you run those commands.

Data Where
Access tokens OS secret vault (encrypted)
Account names OS secret vault
Anything on disk Nothing — no config files, no plain-text tokens

More on the security model in Security.