What problem does it solve?
This skill centralizes and streamlines the discovery and loading of GEMINI_API_KEY from multiple sources—environment variables and layered .env files—reducing setup friction and avoiding credential misconfigurations.
Core Features & Use Cases
- Flexible key discovery: automatically searches environment, project root, .claude, and skill-specific .env locations for GEMINI_API_KEY.
- Vertex AI and AI Studio readiness: easily switches between Gemini endpoints with a single configuration check.
- Guided setup and validation: provides actionable error messages and fallback instructions for missing keys.
Quick Start
Import from api_key_helper and retrieve the API key or client:
from api_key_helper import get_api_key_or_exit, get_client
api_key = get_api_key_or_exit()
client = get_client()