Authenticate and Select Workspace
Log in to the Kick CLI, use personal access tokens safely, and confirm the workspace before running client commands.
Before running client commands, confirm who the CLI is acting as and which workspace the command will use.
Log in interactively
For interactive use, run:
kick loginThe browser flow lets you approve a personal access token. The CLI stores the token in your OS keychain when available. If a keychain is unavailable, it falls back to ~/.config/kick/credentials with restricted file permissions.
Confirm the active user:
kick whoamiUse a token for scripts
For scripts, CI, or agent jobs, provide a PAT explicitly:
export KICK_PAT=kick_pat_...
kick whoamiToken lookup order is:
--token <value>KICK_PATKICK_API_TOKENfor the older environment variable nameOS keychain from
kick login~/.config/kick/credentials
Do not commit PATs, paste them into shared docs, or store them in scripts without a secrets manager.
Select a workspace
List workspaces:
Run a command in a workspace:
To avoid repeating --workspace on every command, set a local default:
If you work across multiple clients, pass --workspace explicitly. This is safer than relying on a remembered default.
Use profiles for repeated work
Profiles can store environment and workspace defaults. These commands write local settings and sign in for the new profile:
Each profile has its own login. kick login stores its token under the active profile, so a new profile needs its own kick login unless you set KICK_PAT.
The CLI stores profiles in ~/.config/kick/config.json, next to the credentials fallback file. To use another folder, set KICK_CONFIG_DIR (the file becomes $KICK_CONFIG_DIR/config.json), or set XDG_CONFIG_HOME to replace ~/.config. KICK_CONFIG_DIR wins when both are set. Inspect the config with:
Use named profiles only when the team understands what each profile points to.
Sign out
When you are done on a shared machine:
Last updated
Was this helpful?
