Skip to main content
Verify the installation:
This opens a browser window at
Alternative: Environment Variables
You can also authenticate via environment variables (these take priority over stored tokens):
Alternative: Platform CLI Tools
If you have GitHub CLI (
Check the current API base URL and its source:
You can also set this via the
See the Commands reference for all available options.
CLI
Installation & Setup
Install the CodeAnt AI CLI and configure authentication for your SCM platform
Installation
Install CodeAnt CLI globally using npm:Authentication
Login with CodeAnt AI
Authenticate with your CodeAnt AI account using browser-based OAuth:app.codeant.ai for authentication. The CLI polls for login completion automatically (timeout: 10 minutes).
Your API key is saved to ~/.codeant/config.json.
To log out:
SCM Platform Tokens
To use PR management and code review features, store authentication tokens for your SCM platform:gh) or GitLab CLI (glab) installed and authenticated, CodeAnt will automatically use their tokens as a fallback.
Token Resolution Order:
- Environment variables (highest priority)
- Platform CLI tools (
gh auth token,glab auth token) - Stored tokens in
~/.codeant/config.json
Self-Hosted / Enterprise Setup
Custom API Base URL
For self-hosted CodeAnt deployments, set a custom API base URL:CODEANT_API_URL environment variable.
