# =================================== # Claude-Gemini Multimodal Bridge Configuration # =================================== # # The web-search layer moved from Gemini CLI to the Antigravity CLI (`agy`) # after Google discontinued Gemini CLI for individual accounts on 2026-06-18. # The AI Studio layer is unaffected and still uses the Gemini API directly. # ===== AI Studio (Gemini API) ===== # Required for image/audio generation, OCR and document processing. # Get your API key from: https://aistudio.google.com/app/apikey AI_STUDIO_API_KEY=your_ai_studio_api_key_here # GEMINI_API_KEY and GOOGLE_AI_STUDIO_API_KEY are accepted as fallbacks for # AI_STUDIO_API_KEY, but they are deprecated - prefer AI_STUDIO_API_KEY. # ===== Antigravity CLI (agy) - web search layer ===== # Authentication is OAuth via the OS keyring: run `agy` once and complete the # Google sign-in. There is no API key and no `agy auth` subcommand. # Requires agy 1.1.7 or newer. # # Install: # Windows: irm https://antigravity.google/cli/install.ps1 | iex # macOS/Linux: curl -fsSL https://antigravity.google/cli/install.sh | bash # Path to the agy executable. Leave unset to auto-detect (PATH, then the # standard installer locations). # ANTIGRAVITY_CLI_PATH= # Model for the search layer. Must be a model that `agy models` actually lists; # gemini-2.5-* and gemini-3-flash do not exist on Antigravity. ANTIGRAVITY_MODEL=gemini-3.6-flash-low # Per-call timeout in ms for agy invocations (default 90000). ANTIGRAVITY_TIMEOUT=90000 # Deprecated: still read so existing setups keep working, but only when it # points at the `agy` executable. Prefer ANTIGRAVITY_CLI_PATH. # GEMINI_CLI_PATH= # ===== Claude Code ===== # Claude Code handles its own session authentication (`claude auth`). CLAUDE_CODE_PATH=/usr/local/bin/claude # ===== Layer Configuration ===== AISTUDIO_MCP_ENABLED=true # Directories the AI Studio layer may upload files from. # # File contents are transmitted to Google, so the server only reads from the # directory it was started in. Add others here, separated by ";" on Windows or # ":" elsewhere, if you analyse files kept outside your project. # # CGMB_ALLOWED_ROOTS=C:\Users\me\Documents;D:\shared # Where to read this file from, if not the directory you run CGMB in. # # Up to 1.2.0 the search also covered CGMB's own installation directory, the # global npm directory and ~/.cgmb, so a .env left in any of those was picked up # by every project on the machine -- along with its AI_STUDIO_API_KEY and its # CGMB_ALLOWED_ROOTS, which decides what may be sent to Google. Since 1.2.1 # those locations have to be named, and this is how you name one. # # Takes a file or the directory holding it, and is consulted before the working # directory. If you kept your key in one of the old locations, point this at it. # # CGMB_ENV_PATH=/home/me/.cgmb/.env # Layer priority (claude|antigravity|aistudio|adaptive). # 'gemini' is accepted as a deprecated alias for 'antigravity'. DEFAULT_LAYER_PRIORITY=adaptive FALLBACK_STRATEGY=graceful # ===== Performance ===== ENABLE_CACHING=true CACHE_TTL=3600 # Maximum entries held in the search cache (default 1000). MAX_CACHE_ENTRIES=1000 MAX_CONCURRENT_REQUESTS=5 REQUEST_TIMEOUT=300000 # ===== Logging ===== LOG_LEVEL=info LOG_FILE=logs/cgmb.log ENABLE_DEBUG_LOGGING=false VERBOSE_LOGGING=false # agy writes its own logs to ~/.gemini/antigravity-cli/log/ # and crash dumps to ~/.gemini/antigravity-cli/crashes/ # ===== Security ===== TRUST_AISTUDIO_MCP=true TRUST_CLAUDE_CODE=true # ===== Development ===== NODE_ENV=development ENABLE_MOCK_LAYERS=false DISABLE_RATE_LIMITING=false # ===== Enhanced CLI ===== ENABLE_ENHANCED_CLI=true AISTUDIO_COMMAND_DIRECT_ACCESS=true PROCESS_COMMAND_INTELLIGENT_ROUTING=true TEST_COMMAND_ACTUAL_PROCESSING=true # ===== Demo Scripts ===== DEMO_ANDROID_ENABLED=true DEMO_AISTUDIO_ENABLED=true DEMO_TIMEOUT=180000 # ===== File Processing ===== TEMP_DIR=/tmp/cgmb MAX_FILE_SIZE=100MB SUPPORTED_FORMATS=pdf,png,jpg,jpeg,mp3,wav,doc,docx,txt,md # ===== MCP Server ===== MCP_SERVER_PORT=3000 MCP_SERVER_HOST=localhost MCP_TRANSPORT=stdio # ===== Error Handling ===== MAX_RETRIES=3 RETRY_DELAY=1000 ENABLE_CIRCUIT_BREAKER=true ENABLE_COMMAND_TIMEOUT_HANDLING=true ENHANCED_ERROR_HANDLING=true # ===== Workflow ===== DEFAULT_EXECUTION_MODE=adaptive ENABLE_PARALLEL_PROCESSING=true WORKFLOW_TIMEOUT=600000 PRODUCTION_READY_MODE=true # =================================== # Currently inert # =================================== # These are parsed into the Config object but nothing reads them back # (only config.claude.timeout is consumed). Listed so they are not mistaken # for working knobs: # GEMINI_MODEL, GEMINI_TIMEOUT, GEMINI_MAX_OUTPUT_TOKENS, # GEMINI_TEMPERATURE, GEMINI_MAX_FILES, GEMINI_MAX_TOTAL_FILE_SIZE # # Removed in the Antigravity migration - they had no reader at all: # TRUST_GEMINI_CLI, GEMINI_COMMAND_DIRECT_ACCESS, DEMO_GEMINI_ENABLED