Authentication
CommitAI uses GitHub login to authenticate your CLI securely using OAuth.
Login with GitHub
commitai login
This command opens the GitHub OAuth login screen in your browser. After you approve access, CommitAI stores your auth token locally.
How CommitAI Login Works
- • commitai login opens GitHub OAuth.
- • After approval, GitHub redirects to:http://localhost:9900/callback
- • The CLI receives your temporary OAuth code.
- • The backend exchanges it for a JWT.
- • CLI saves the token here:~/.commitai/config.json
If login doesn't open automatically, try running:commitai login --manual