codity config

View and manage CLI configuration. All settings are stored in ~/.codity/config.yaml.

Subcommands

config show

Display current configuration values.

codity config show

Shows: environment, API URL, access token (masked), refresh token (masked), token expiry, user ID, workspace ID, and auth provider.


config set

Set a specific configuration value.

codity config set <key> <value>

Valid keys:

Key Description
env Environment (local or production)
api_url API endpoint URL
access_token JWT access token
refresh_token Refresh token
token_expiry Token expiration timestamp
user_id User ID
workspace_id Active workspace ID
auth_provider Auth provider (github, gitlab, bitbucket, azure)

Example:

codity config set env production
codity config set workspace_id ws_abc123

config reset

Clear all configuration and return to defaults.

codity config reset
warning

This removes all stored credentials. You will need to run codity login again after resetting.


config set-pat

Store a VCS Personal Access Token for PR operations.

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 on the server, never in plaintext locally.