Authentication
Log in to the CCP CLI with your Cluster account via email OTP.
Authentication
CCP authenticates via email one-time passwords (OTP). 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.comScripted Login
For non-interactive use (CI, dev VMs, agents), pass both --email and --code. --code skips the OTP send step and assumes a code has already been issued for that address:
ccp auth login --email you@example.com --code 123456In a long-lived headless context, prefer exporting an existing token via CCP_SESSION_TOKEN instead — see Headless Mode.
Logout
ccp auth logoutAccess 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-tokenShell 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
}Sync Your Session Into a Dev VM
ccp auth sync gives the ccp running inside a dev VM your session, so an
agent in the VM can run ccp deploy (and other authenticated commands) as you:
ccp auth sync --vm <vm_id> # the in-VM ccp now acts as you
ccp auth desync --vm <vm_id> # remove itIt snapshots your current access token into the VM as a hidden
CCP_SESSION_TOKEN variable (the in-VM ccp reads it automatically; it is
never shown by ccp env list).
Note: the synced token is your current access token (about 1 hour) and is
not refreshed inside the VM — refreshing it would rotate your own login
session. Re-run ccp auth sync when it expires. (A scoped, longer-lived
successor is planned.)
Auth Subcommands
| Command | Description |
|---|---|
ccp auth login | Log in via email OTP |
ccp auth logout | Log out and clear credentials |
ccp auth export-access-token | Print export TOKEN="..." for eval |
ccp auth print-access-token | Print raw JWT to stdout |
ccp auth shell-setup | Print shell wrapper for ~/.zshrc |
ccp auth sync --vm <id> | Sync your session into a dev VM (in-VM ccp acts as you) |
ccp auth desync --vm <id> | Remove your synced session from a dev VM |