Switch the authentication method mid-session

authentication

// what it does

Run /auth inside a session to open a dialog that re-selects between Google login, Gemini API key, and Vertex AI without restarting. Use it after hitting free-tier limits to jump onto an API key, or to move a session onto Vertex. The choice persists into later sessions.

// shell

$ /auth

// gotcha

/auth cannot override an environment variable that is already set — if GEMINI_API_KEY is exported, the API-key method wins no matter what you pick. Unset the variable in your shell first if you want to switch back to OAuth.

// resources