Authentication

Log in to the CCP CLI with your Cluster account via email OTP.

Authentication

CCP authenticates via email one-time passwords (OTP) through Supabase. Credentials are stored securely in your system keychain.

Login

ccp auth login
# Email: you@example.com
# Sending code to you@example.com...
# Check your email for a login code.
# Code: 123456
# ◼ You are now logged in!

You can also pass your email directly:

ccp auth login --email you@example.com

Logout

ccp auth logout

Access Tokens

Export your access token for use in scripts or API calls:

# Print as export statement (use with eval)
eval $(ccp auth export-access-token)

# Print raw token to stdout
ccp auth print-access-token

Shell Wrapper

For convenience, add the shell wrapper to auto-export tokens:

# Print the wrapper function
ccp auth shell-setup

# Add to your ~/.zshrc:
ccp() {
  case "$1:$2" in
    auth:export-access-token)
      eval $(command ccp "$@")
      ;;
    *)
      command ccp "$@"
      ;;
  esac
}

Auth Subcommands

CommandDescription
ccp auth loginLog in via email OTP
ccp auth logoutLog out and clear credentials
ccp auth export-access-tokenPrint export TOKEN="..." for eval
ccp auth print-access-tokenPrint raw JWT to stdout
ccp auth shell-setupPrint shell wrapper for ~/.zshrc

On this page