Configuration
Environment variables
The CLI reads the following environment variables as fallbacks when flags are not provided:
| Variable | Used for |
|---|---|
OPENAI_API_KEY |
OpenAI API key for AI auto mode |
ANTHROPIC_API_KEY |
Anthropic API key for AI auto mode |
GEMINI_API_KEY |
Google Gemini API key for AI auto mode |
GITHUB_TOKEN |
GitHub personal access token for private repos |
GITLAB_TOKEN |
GitLab personal access token for private repos |
BITBUCKET_TOKEN |
Bitbucket access token for private repos |
OAuth for the web interface
The web interface supports Google and GitHub OAuth in addition to username/password login.
Setup
-
Copy the example environment file:
-
Google OAuth — create credentials in Google Cloud Console with redirect URI
http://localhost:8000/auth/callback/google, then addGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETto.env. -
GitHub OAuth — create an OAuth app in GitHub Developer Settings with callback URL
http://localhost:8000/auth/callback/github, then addGITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETto.env.
Tip
If OAuth credentials are not configured, users can still register and log in with a username and password.
Customising criteria
The assessment criteria are defined in src/config/criteria.yaml.
You can add, remove, or adjust criteria and their weights to fit your organisation's specific needs.
After modifying the file, reinstall the package (pip install -e .) to pick up the changes.