Authentication
login
Authenticate with CodeAnt AI. Opens a browser window for login.logout
Log out from CodeAnt AI.Secret Scanning
secrets
Scan your code for exposed secrets, API keys, and credentials.| Option | Description |
|---|---|
--staged | Scan only staged files (default) |
--all | Scan all changed files compared to base branch |
--uncommitted | Scan all uncommitted changes |
--last-commit | Scan files from the last commit |
--fail-on <level> | Fail only on HIGH, MEDIUM, or all (default: HIGH) |
0- No blocking secrets found (or only false positives)1- Secrets detected that match the--fail-onthreshold
HIGH- High confidence, likely a real secretMEDIUM- Medium confidence, may need reviewFALSE_POSITIVE- Detected but likely not a real secret (always ignored)
Configuration
set-base-url
Set a custom API base URL.get-base-url
Show the current API base URL and its source.Global Options
Example Output
Secrets Found (Blocking):Configuration File
Configuration is stored in~/.codeant/config.json.
You can also use environment variables:
| Variable | Description |
|---|---|
CODEANT_API_URL | API base URL (overrides config) |
CODEANT_API_TOKEN | Authentication token (overrides config) |
- Environment variables (highest)
- Config file (
~/.codeant/config.json) - Default values