Skip to Content

OAuth

Source: src/services/oauth/

Overview

The OAuth service handles browser-based authentication flows for users with Claude Pro, Team, or Enterprise subscriptions.

Flow

Authentication Methods

MethodUse Case
API KeyDirect API access via ANTHROPIC_API_KEY
OAuthClaude Pro/Team/Enterprise users
BedrockAWS Bedrock credentials
VertexGoogle Cloud credentials

Token Storage

OAuth tokens are stored securely in the user’s home directory and refreshed automatically when expired.

Commands

  • /login — Initiate authentication flow
  • /logout — Clear stored credentials
Last updated on