[FEATURE] Support Vertex AI via ADC credentials
What would you like to happen?
Add support for using Google Cloud Vertex AI authentication through Application Default Credentials (ADC), so Claude Code Android can run with Vertex AI-backed Claude access without requiring users to manually manage long-lived API keys.
Expected behavior:
- Detect and use ADC credentials when Vertex AI mode/configuration is enabled.
- Support credentials produced by standard Google Cloud flows such as
gcloud auth application-default loginwhere available in the install path. - Allow users to configure the required Vertex AI settings, such as Google Cloud project ID, location/region, and model/provider selection.
- Provide clear setup documentation for Android/Termux/proot users, including where ADC credential files should live and any required environment variables.
- Surface actionable errors when ADC credentials are missing, expired, inaccessible, or lack required Vertex AI permissions.
Why is this useful?
Vertex AI is a common enterprise and Google Cloud-native way to access Anthropic Claude models. ADC support would make this project easier to use in environments where:
- API key usage is discouraged or unavailable.
- Authentication is managed through Google Cloud identities, service accounts, or workload/user credentials.
- Users already rely on Google Cloud SDK tooling and ADC conventions.
- Vertex AI billing, IAM, and audit controls are preferred over direct provider API keys.
This would also align the Android setup more closely with existing Google Cloud workflows and reduce credential-management friction for users running Claude Code from Termux or related install paths.
Your environment
- Device: Android device using Claude Code Android
- Android version: Not device-specific
- Install path: A: native Termux / B: proot-distro Ubuntu, where Google Cloud ADC files and environment variables can be made available
Have you checked existing resources?
- [x] Searched existing issues
- [ ] Checked TROUBLESHOOTING.md
maybe this already works.. just need to validate it works.
I do not use Vertex myself. I run Claude Code through my Claude subscription inside Termux, so I have not tested the Vertex path directly.
That said, it should already work, because Vertex AI support is built into Claude Code itself, not into this installer. I also have evidence via another user in this thread got a non-default provider (DeepSeek) working through the same setup (comment: https://github.com/ferrumclaudepilgrim/claude-code-android/issues/4#issuecomment-4640337407), which tells me the wrapper does not get in the way of how Claude Code reaches a provider.
For the actual setup, follow the official Claude Code documentation for Google Vertex AI, since this is a Claude Code feature rather than anything specific to this repo: https://code.claude.com/docs/en/google-vertex-ai I have not verified Vertex end to end on a device. If you try it and it works, a short docs PR or a comment back here would be very welcome, and I will fold it into the docs.