# FlyDocs Core - Environment Configuration # # Copy this file to .env and fill in your value: # cp .env.example .env # # IMPORTANT: Never commit .env to git! # # HOW TO LOAD THIS VALUE: # ───────────────────────── # Option A (Recommended): Use direnv # 1. Install direnv: brew install direnv # 2. Add to ~/.zshrc: eval "$(direnv hook zsh)" # 3. Create .envrc file: echo "dotenv" > .envrc # 4. Allow it: direnv allow # → Value auto-loads when you cd into the project! # # Option B: Add to shell profile (~/.zshrc) # export FLYDOCS_API_KEY="your_key_here" # # Option C: Export manually before opening Cursor # source .env && cursor . # # =========================================== # CLOUD TIER: FlyDocs API Key # =========================================== # Recommended: Use global credentials (stored in ~/.flydocs/credentials): # flydocs init — interactive setup # flydocs auth — set key directly # # For CI/CD: Set FLYDOCS_API_KEY as an environment variable. # Legacy: Setting it here still works as a fallback. # Format: fdk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx FLYDOCS_API_KEY= # =========================================== # CLOUD TIER: Direct Provider API Key (Legacy) # =========================================== # Use this ONLY if connecting directly to your provider without the relay. # For Linear: Get from Linear → Settings → API → Personal API Keys (format: lin_api_...) # For Jira: Get from Atlassian → API Tokens (format: ATATT...) # LINEAR_API_KEY= # =========================================== # OPTIONAL: Figma Access Token # =========================================== # Get from: Figma → Settings → Personal Access Tokens # Only needed if using Figma design integration FIGMA_ACCESS_TOKEN= # =========================================== # OPTIONAL: Context7 API Key # =========================================== # Enables higher rate limits for library documentation lookup # Get from: context7.com/dashboard (free account) # Works without a key at lower rate limits (~1,000 calls/month) CONTEXT7_API_KEY= # =========================================== # NOTE: Provider configuration is discovered automatically # =========================================== # Run flydocs init and the agent will: # 1. Detect your provider connection # 2. Query teams and projects (you select) # 3. Save IDs to .flydocs/config.json