Skip to content

Conversation

@itzlambda
Copy link
Owner

Add OAuth authentication support alongside API keys. Supports browser-based login for Anthropic and OpenAI subscriptions.

Commands

rullm auth login [provider]   # OAuth or API key login
rullm auth logout [provider]  # Remove credentials
rullm auth list               # Show stored credentials

Credentials stored in ~/.config/rullm/auth.toml

Replace the `keys` command with a unified `auth` system supporting
multiple authentication methods per provider (OAuth and API keys).
Move AnthropicConfig, GoogleAiConfig, and OpenAICompatibleConfig
from config.rs to their respective provider modules.
- Prepend Claude Code system block with cache control to OAuth requests
- Add required state parameter to token exchange endpoint
- Include anthropic-version header for OAuth requests
Remove dead_code get_or_refresh_token function and delete test script.
@itzlambda itzlambda marked this pull request as ready for review December 21, 2025 10:19
greptile-apps[bot]

This comment was marked as spam.

@itzlambda itzlambda merged commit 372b409 into main Dec 21, 2025
6 checks passed
@itzlambda itzlambda deleted the feat/oauth-support branch December 21, 2025 10:42
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