Skip to main content
The auth command manages your CLI authentication. API keys are stored locally so you can switch between teams without re-entering credentials.

login

Authenticate with your Loops API key. Pass a name of your choosing — you’ll use it later with auth use, auth logout, and the --team flag to refer to this key. You’ll be prompted to paste the key interactively.

Flags

list

List all stored API keys.
Pass --pick to filter the list interactively with fzf and switch to the selected team (equivalent to loops auth use <name>). Requires fzf to be installed and on your PATH.

Flags

get

Print a stored API key by name. In text output, only the key is printed — useful for piping into scripts or other tools.
Use --output json to get the key name and value together:
This command prints your API key to stdout. Be careful when using it in shared terminals or scripts that log output.

status

Print the resolved configuration, including which API key is currently active.

use

Set or clear the active API key. Pass the name of a stored key to switch to it.
To clear the active team selection:

Flags

logout

Remove a stored API key.
Last modified on July 1, 2026