Skip to content

CLI crashes on startup when GEMINI_API_KEY contains special characters #28575

Description

@LUNCInsights

Bug Report

The CLI fails to parse GEMINI_API_KEY when it contains special characters like = or +.

Version: 0.1.x
OS: Ubuntu 22.04

Steps to reproduce

  1. export GEMINI_API_KEY="abc+def=ghi"
  2. gemini "hello"
  3. Observe: ParseError: invalid key format

Expected behavior

CLI should handle URL-safe base64 characters in API keys.


Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions