gemini-auth
Setup and manage Gemini CLI authentication methods including OAuth, API keys, and Vertex AI. Use when configuring Gemini access, switching auth methods, or troubleshooting authentication issues.
npx skills add majiayu000/claude-skill-registry --skill gemini-auth-adaptationio-skrillz --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gemini Authentication Management Comprehensive authentication setup and management for Gemini CLI, supporting OAuth, API keys, and Vertex AI. ## Authentication Methods ### 1. Google OAuth (Free Tier) **Benefits:** - No API key management - 60 requests/minute - 1,000 requests/day - Access to Gemini 2.5 Pro - 1M token context window ```bash # Initial setup gemini # Opens browser for Google account login # Check auth status gemini auth status # Refresh token gemini auth refresh # Logout gemini auth logout ``` ### 2. API Key Setup **Benefits:** - Programmatic access - No browser required - Scriptable workflows ```bash # Get API key from https://aistudio.google.com/ # Method 1: Environment variable export GEMINI_API_KEY="your-api-key-here" # Method 2: User config file mkdir -p ~/.gemini echo 'GEMINI_API_KEY="your-api-key-here"' > ~/.gemini/.env chmod 600 ~/.gemini/.env # Method 3: Project config mkdir -p ./.gemini echo 'GEMINI_API_KEY="your-api-key-here"' > ./.gemini/.env echo '.gemini/' >> .gitignore # Verify (auto-execute test) gemini --yolo -p "Test authentication and report status" ``` ### 3. Vertex AI (Enterprise) **Benefits:** - Enterprise security - Higher rate limits - Advance
- Authentication Methods
- 1. Google OAuth (Free Tier)
- 2. API Key Setup
- 3. Vertex AI (Enterprise)
- Authentication Configuration
- Priority Order
- Configuration File
- Workflow Scripts
- Multi-Account Management
- Secure API Key Storage
- Rate Limit Management
- Troubleshooting
- Debug Authentication
- Common Issues
Initial setup gemini Opens browser for Google account login Check auth status gemini auth status Refresh token gemini auth refresh Logout gemini auth logout Get API key from https://aistudio.google.com/
What does the gemini-auth skill do?
Setup and manage Gemini CLI authentication methods including OAuth, API keys, and Vertex AI. Use when configuring Gemini access, switching auth methods, or troubleshooting authentication issues.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-auth-adaptationio-skrillz --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
