Global Options
Authentication
login
Authenticate with CodeAnt AI via browser-based OAuth.logout
Sign out and remove stored credentials.set-token
Store an authentication token for an SCM platform.github, gitlab, bitbucket, azure
Examples:
set-codeant-api-key
Manually set the CodeAnt AI API key (alternative tocodeant login).
get-codeant-api-key
Display the currently stored CodeAnt API key (masked - shows first and last 4 characters).set-telemetry
Enable or disable anonymous usage analytics (PostHog).get-telemetry
Show current telemetry status.Code Scanning
All scanning commands share a common set of options for controlling scan scope and file filtering.Common Scan Options
These options apply tosecrets:
Glob Pattern Syntax:
*matches any characters except/**matches any characters including/*.{js,ts}matches multiple extensions (brace expansion is supported)- Multiple patterns:
--exclude 'test/**,dist/**'
secrets
Scan code for exposed secrets, API keys, and credentials.
Confidence Levels:
Exit Codes:
0- No blocking secrets found (or only false positives)1- Secrets detected that match the--fail-onthreshold
Analytics
track
Send an analytics event to CodeAnt. Primarily used by integrations (Claude Code skills, CI systems, etc.) to record usage events.
Example:
Configuration
set-base-url
Set a custom API base URL for self-hosted CodeAnt deployments.get-base-url
Display the current API base URL and where it’s configured.Configuration File
All configuration is stored in~/.codeant/config.json.
Configuration Keys:
Environment Variables:
Priority Order:
- Environment variables (highest)
- Platform CLI tools (
gh,glab) - Config file (
~/.codeant/config.json) - Default values