Summary
I’m unable to authenticate the CLI. Browser login completes successfully, but the CLI still reports that browser login failed and asks for an API key. When I create and enter an API key, the CLI fails to save it.
Expected Behavior
After successful browser authentication, the CLI should detect the login and save credentials locally.
If API key authentication is used, the CLI should save the API key successfully and authenticate the session.
Actual Behavior
Browser login appears successful, but CLI shows:
Browser login failed. Please enter an API key.
After entering the API key:
↓ Failed to save API key. Please try again.
Steps to reproduce the issue
Install the CLI globally:
npm install -g commondcode
Run:
cmd login
Complete login successfully in the browser.
Return to the terminal.
CLI shows browser login failed and asks for an API key.
Create an API key and paste it into the CLI.
Command Code Version
0.35.2
Operating System
macOS
Terminal/IDE
Cursor
Shell
zsh
Additional context
No response
Summary
I’m unable to authenticate the CLI. Browser login completes successfully, but the CLI still reports that browser login failed and asks for an API key. When I create and enter an API key, the CLI fails to save it.
Expected Behavior
After successful browser authentication, the CLI should detect the login and save credentials locally.
If API key authentication is used, the CLI should save the API key successfully and authenticate the session.
Actual Behavior
Browser login appears successful, but CLI shows:
Browser login failed. Please enter an API key.
After entering the API key:
↓ Failed to save API key. Please try again.
Steps to reproduce the issue
Install the CLI globally:
npm install -g commondcode
Run:
cmd login
Complete login successfully in the browser.
Return to the terminal.
CLI shows browser login failed and asks for an API key.
Create an API key and paste it into the CLI.
Command Code Version
0.35.2
Operating System
macOS
Terminal/IDE
Cursor
Shell
zsh
Additional context
No response