Claude Auth (CLI) icon

Claude Auth (CLI)

Browser login and status for Claude CLI (no API keys)

Authentication → Browser Login (Complete)

AI-generated

Summary

Exchange a browser callback authorization code for OAuth tokens, persist credentials to the Claude config directory, and optionally clean up the login session file.

Inputs

  • loginConfigDir — Directory used for Claude OAuth tokens and login sessions (optional; overrides the credentials config dir)
  • loginSessionId — Session ID returned by Browser Login (Start)
  • loginCallbackUrl — Full redirect URL from the browser after login (contains code and state)
  • authorizationCode — Authorization code from the callback URL (advanced)
  • loginState — Optional OAuth state to use if not provided via the callback URL
  • codeVerifier — Optional PKCE code verifier when no login session file is available
  • cleanupLoginSession — Whether to delete the saved login session file after completion

Output shape

object with the following properties:

The node returns a single item; all listed properties are present in the output json object.

Links

Discussion