Agent skill · Security

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/ai-llm/gemini-auth-adaptationio-skrillz/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Authentication Methods
  2. 1. Google OAuth (Free Tier)
  3. 2. API Key Setup
  4. 3. Vertex AI (Enterprise)
  5. Authentication Configuration
  6. Priority Order
  7. Configuration File
  8. Workflow Scripts
  9. Multi-Account Management
  10. Secure API Key Storage
  11. Rate Limit Management
  12. Troubleshooting
  13. Debug Authentication
  14. Common Issues
Ships with 1 file
  • metadata.json
Commands it runs
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/
More from claude-skill-registry
All skills →
About this skill
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.

Keep going