[Feature Request] Allow Google Gemini API (generativelanguage.googleapis.com) in Claude Code Mobile
Summary
Google Gemini API calls to generativelanguage.googleapis.com return 403 Forbidden in Claude Code Mobile environment, while other third-party research APIs (Exa, Firecrawl, Parallel) work correctly.
Use Case
Using Claude Code Mobile for research workflows that leverage multiple AI and search APIs:
- Exa - semantic search, code context ✅ Works
- Firecrawl - web scraping, site mapping ✅ Works
- Parallel - deep research synthesis ✅ Works
- Google Gemini - grounded search, URL analysis ❌ 403 Forbidden
Gemini's GoogleSearch tool provides grounded responses with citations, and UrlContext enables direct URL analysis - capabilities that complement other research tools.
Current Behavior
curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GOOGLE_API_KEY"
# Returns: 403 Forbidden - "Your client does not have permission to get URL"
Verification: Other Google API domains work fine:
curl -s "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=invalid"
# Returns: 400 (expected - invalid token) - connection works
Environment
- Claude Code Mobile (web/iOS)
- Pro subscription
- API key verified working from other environments
Request
Consider allowlisting generativelanguage.googleapis.com for outbound requests from Claude Code Mobile, similar to how Exa, Firecrawl, and Parallel API endpoints are accessible.
I understand there may be concerns about model distillation, but this is for legitimate research workflows where Gemini's grounded search complements Claude's capabilities rather than replaces them.
Alternatives Considered
- Using WebSearch/WebFetch as substitute (works but lacks Gemini's specific features)
- Restricting Gemini usage to desktop Claude Code sessions (current workaround)
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗