Skip to content

Can not connect gemini cli #122

@bb7bb

Description

@bb7bb

Describe the issue:
After installing via Homebrew, I can't connect to Gemini anymore. Why is that?

Error Log:

Provider Errors:
────────────────────────────────────────

[Antigravity]
  Provider error: Antigravity cache unavailable and no enabled antigravity-accounts.json account with project ID was found

[Brave Search]
  Authentication failed: Brave Search API key not available

[Chutes AI]
  Authentication failed: Chutes API key not available

[Claude]
  Authentication failed: Anthropic access token not available

[Gemini CLI]
  Authentication failed: No Gemini accounts configured

[Kimi for Coding]
  Authentication failed: Kimi API key not available

[MiniMax Coding Plan]
  Authentication failed: MiniMax Coding Plan API key not available

[Nano-GPT]
  Authentication failed: Nano-GPT API key not available

[OpenCode Zen]
  Provider error: OpenCode CLI not found. Install via: brew install opencode, or ensure 'opencode' is in PATH

[OpenRouter]
  Authentication failed: OpenRouter API key not found

[Synthetic]
  Authentication failed: Synthetic API key not available

[Tavily]
  Authentication failed: Tavily API key not available

[Z.AI Coding Plan]
  Authentication failed: Z.AI Coding Plan API key not available

────────────────────────────────────────
Time: 2026-04-09 00:27 GMT+8
App Version: 2.9.1

Environment Info:
────────────────────────────────────────
[XDG_DATA_HOME] NOT SET (using default ~/.local/share)

Auth File Search:
  [1] [NOT FOUND] ~/.local/share/opencode/auth.json
      Path: /Users/bb7bb/.local/share/opencode/auth.json
  [2] [NOT FOUND] ~/Library/Application Support/opencode/auth.json
      Path: /Users/bb7bb/Library/Application Support/opencode/auth.json
  [Result] NO VALID auth.json FOUND

Config Directory (~/.config/opencode):
  [NOT FOUND]

Token Status:
  [auth.json] PARSE FAILED or NOT FOUND
  [Antigravity] NOT CONFIGURED
  [Gemini oauth_creds] refreshToken: YES, accountId: YES

Codex Native Auth (~/.codex/auth.json):
  [EXISTS] token: YES, accountId: YES, apiKey: NO

codex-lb Auth (~/.codex-lb):
  [NOT FOUND] store.db: /Users/bb7bb/.codex-lb/store.db
  [NOT FOUND] encryption.key: /Users/bb7bb/.codex-lb/encryption.key

Auth Discovery Summary:
────────────────────────────────────────
[ChatGPT]
  OpenCode auth.json (~/.local/share/opencode/auth.json): NOT FOUND
  oc-chatgpt-multi-auth auth (~/.opencode/auth/openai.json): NOT FOUND
  oc-chatgpt-multi-auth accounts (~/.opencode/openai-codex-accounts.json): NOT FOUND
  Codex auth.json (~/.codex/auth.json): FOUND (token, accountId: YES)
  codex-lb store.db (~/.codex-lb/store.db): NOT FOUND
  codex-lb encryption.key (~/.codex-lb/encryption.key): NOT FOUND

[Claude]
  OpenCode auth.json (~/.local/share/opencode/auth.json): NOT FOUND
  Claude Code Keychain (Claude Code-credentials): NOT FOUND
  Claude Code Keychain (Claude Code): NOT FOUND
  opencode-anthropic-auth accounts.json (~/.config/opencode/opencode-anthropic-auth/accounts.json): NOT FOUND
  Claude Code auth.json (~/.config/claude-code/auth.json): NOT FOUND

[GitHub Copilot]
  OpenCode auth.json (~/.local/share/opencode/auth.json): NOT FOUND
  Copilot CLI Keychain (copilot-cli): NOT FOUND
  VS Code hosts.json (~/Library/Application Support/github-copilot/hosts.json): NOT FOUND
  VS Code apps.json (~/Library/Application Support/github-copilot/apps.json): NOT FOUND
  Browser Cookies: AVAILABLE
  Effective Copilot Discovery: NOT FOUND

[Gemini CLI]
  OpenCode auth.json (google.oauth, jenslys/opencode-gemini-auth, auth.json): NOT FOUND
  Gemini oauth_creds.json (~/.gemini/oauth_creds.json): FOUND (accountId: YES, email: YES)
  Antigravity accounts (NoeFabris/opencode-antigravity-auth, ~/.config/opencode/antigravity-accounts.json): NOT FOUND
────────────────────────────────────────
────────────────────────────────────────

Environment:

  • App Version: 2.9.1
  • macOS Version: Version 26.1 (Build 25B78)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions