Skip to content

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Jan 16, 2026

Summary

  • Removes the warning that suggested running kernel login for OAuth when API key authentication is already present
  • API key authentication via KERNEL_API_KEY is a valid authentication method that shouldn't prompt users to switch

Before:

kernel auth status
 INFO  Authentication method: API Key
 INFO  API Key: sk_cb5dc...SwTo
 WARNING  Consider running 'kernel login' to use OAuth authentication

After:

kernel auth status
 INFO  Authentication method: API Key
 INFO  API Key: sk_cb5dc...SwTo

Test plan

  • Run kernel auth status with KERNEL_API_KEY set - verify no warning is shown
  • Run kernel auth status without any auth - verify login instructions still appear

🤖 Generated with Claude Code


Note

Removes unnecessary OAuth prompt when API key authentication is detected.

  • In cmd/auth.go, eliminates the warning suggesting kernel login when KERNEL_API_KEY is set
  • Unauthenticated flow still shows OAuth login instructions; OAuth status and token handling unchanged

Written by Cursor Bugbot for commit f06b73f. This will update automatically on new commits. Configure here.

API key authentication is a valid authentication method. The warning
suggesting users run 'kernel login' for OAuth was confusing and
unnecessary when they already have working API key authentication.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rgarcia rgarcia merged commit 8e73bcc into main Jan 16, 2026
2 checks passed
@rgarcia rgarcia deleted the fix/remove-oauth-warning-for-api-key-auth branch January 16, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants