Login and Authentication

The Codity CLI uses browser-based magic link authentication to securely connect your account.

Logging In

Run the login command:

codity login

This opens your default browser where you authenticate with your VCS provider (GitHub, GitLab, Bitbucket, or Azure DevOps). Once authenticated, the CLI automatically receives your credentials — no manual token copying required.

After a successful login, the CLI displays:

  • Account — Your username
  • Organization — Your workspace/org name
  • Provider — The VCS provider used
  • Workspace — The active workspace ID

Logging Out

To log out from CLI:

codity logout

Personal Access Tokens (PAT)

For pull request operations (codity pr), you may need to configure a VCS Personal Access Token:

codity config set-pat

This interactive command prompts you to:

  1. Select your VCS provider (GitHub, GitLab, Bitbucket, or Azure DevOps)
  2. Enter your Personal Access Token
  3. Optionally add a label

The token is encrypted and stored securely on the server — it is never stored in plaintext locally.