# Claude Code - Global Environment Variables # Location: .claude/.env # Priority: LOWEST (overridden by skills/.env and skill-specific .env) # Scope: Project-wide configuration, global defaults # Setup: Copy to .claude/.env and configure # ============================================ # Environment Variable Hierarchy # ============================================ # Priority order (highest to lowest): # 1. process.env - Runtime environment (HIGHEST) # 2. .claude/skills//.env - Skill-specific overrides # 3. .claude/skills/.env - Shared across all skills # 4. .claude/.env - Global defaults (this file, LOWEST) # # All skills use centralized resolver: ~/.claude/scripts/resolve_env.py # Debug hierarchy: python ~/.claude/scripts/resolve_env.py --show-hierarchy # ============================================ # ClaudeKit API Key (for VidCap, ReviewWeb services) # ============================================ # Get your API key from https://claudekit.cc/api-keys # Required for accessing ClaudeKit services via skills CLAUDEKIT_API_KEY= # ============================================ # Context7 API Configuration (optional) # ============================================ # Get your API key from https://context7.com/dashboard/api-keys CONTEXT7_API_KEY= # ============================================ # Claude Code Notification Hooks # ============================================ # Discord Webhook URL (for Discord notifications) # Get from: Server Settings → Integrations → Webhooks → New Webhook DISCORD_WEBHOOK_URL= # Telegram Bot Token (for Telegram notifications) # Get from: @BotFather in Telegram TELEGRAM_BOT_TOKEN= # Telegram Chat ID (your chat ID or group ID) # Get from: https://api.telegram.org/bot/getUpdates TELEGRAM_CHAT_ID= # ============================================ # AI/ML API Keys (Global Defaults) # ============================================ # Google Gemini API (for ai-multimodal, docs-seeker skills) # Get from: https://aistudio.google.com/apikey GEMINI_API_KEY= # Vertex AI Configuration (Optional alternative to AI Studio) # GEMINI_USE_VERTEX=true # VERTEX_PROJECT_ID= # VERTEX_LOCATION=us-central1 # OpenAI API Key (if using OpenAI-based skills) # OPENAI_API_KEY= # Anthropic API Key (if using Claude API directly) # ANTHROPIC_API_KEY= # ============================================ # Google Stitch API (AI Design Generation) # ============================================ # Skill: stitch # Get from: https://stitch.withgoogle.com → Settings → API Keys # Free tier: 400 credits/day + 15 redesign/day STITCH_API_KEY= # Optional: default project ID (auto-creates "claudekit-default" if unset) # STITCH_PROJECT_ID= # ============================================================================ # MiniMax API Configuration (Optional - for image/video/speech/music generation) # ============================================================================ # Get your API key: https://platform.minimax.io/user-center/basic-information/interface-key # MINIMAX_API_KEY= # ============================================ # Development & CI/CD # ============================================ # NODE_ENV=development # DEBUG=false # LOG_LEVEL=info # ============================================ # Project Configuration # ============================================ # PROJECT_NAME=claudekit-engineer # ENVIRONMENT=local # ============================================ # Example Usage Scenarios # ============================================ # Scenario 1: Global default for all skills # .claude/.env (this file): GEMINI_API_KEY=global-dev-key # Result: All skills use global-dev-key # # Scenario 2: Override for all skills # .claude/.env (this file): GEMINI_API_KEY=global-dev-key # .claude/skills/.env: GEMINI_API_KEY=skills-prod-key # Result: All skills use skills-prod-key # # Scenario 3: Skill-specific override # .claude/.env (this file): GEMINI_API_KEY=global-key # .claude/skills/.env: GEMINI_API_KEY=shared-key # .claude/skills/ai-multimodal/.env: GEMINI_API_KEY=high-quota-key # Result: ai-multimodal uses high-quota-key, other skills use shared-key # # Scenario 4: Runtime testing # export GEMINI_API_KEY=test-key # Result: All skills use test-key regardless of config files # # Priority: runtime > skill-specific > shared > global (this file)