Skip to content

[Feature/Bug] Google Vertex AI authentication not working + Anthropic models on Vertex not available #897

@araa47

Description

@araa47

Description

I'm trying to configure Clawdbot to use Google Vertex AI instead of the Google API key method, but running into authentication issues. Additionally, I noticed Anthropic models on Vertex AI don't appear in the model list.

Environment

  • Clawdbot Version: 2026.1.11-4
  • OS: Ubuntu 24.04 (Lima VM on macOS)
  • Google Cloud Project: Configured with ADC via gcloud auth application-default login

Issue 1: Google Vertex Authentication Not Working

Steps to reproduce:

  1. Set up gcloud ADC credentials:
gcloud auth application-default login
gcloud config set project my-project-id
  1. Configure clawdbot.json:
{
  "auth": {
    "profiles": {
      "google-vertex:default": {
        "provider": "google-vertex",
        "mode": "oauth"
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "google-vertex/gemini-3-flash-preview"
      }
    }
  }
}
  1. Set environment variables:
export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.config/gcloud/application_default_credentials.json"
export GOOGLE_CLOUD_PROJECT="my-project-id"
  1. Run clawdbot gateway

Expected behavior: Gateway starts and uses Vertex AI for Gemini models.

Actual behavior:

  • With mode: "oauth" → Error: Invalid config: auth.profiles.google-vertex:default.mode: Invalid input
  • Without mode field → Error: No credentials found for profile "google-vertex:default"
  • Tried google-antigravity provider as well with same result

Additional context:

  • clawdbot models list shows Local Auth: no for google-vertex models
  • ADC credentials file exists at ~/.config/gcloud/application_default_credentials.json
  • gcloud auth application-default print-access-token works correctly

Issue 2: Anthropic Models on Vertex AI Not Available

When running clawdbot models list, only Google/Gemini models are shown for Vertex providers. Is there any plan to support Anthropic models (Claude) via Google Vertex AI?

Anthropic models are available on Vertex AI and would be useful for users who want to use their GCP billing/quotas for Claude access.

Current output:

Model                                      Input      Ctx      Local Auth  Tags
google-vertex/gemini-3-flash-preview       text+image 1024k    no    no    default,configured
google-vertex/gemini-3-pro-preview         text+image 977k     no    no    configured

Expected: Would love to see something like:

google-vertex/claude-opus-4-5              text+image 195k     no    yes   configured
google-vertex/claude-sonnet-4-5            text+image 195k     no    yes   configured

Questions

  1. What is the correct clawdbot.json configuration for Google Vertex AI?
  2. What environment variables are required for google-vertex authentication?
  3. Is Anthropic-on-Vertex support planned?

Workaround

Currently using google provider with api_key mode which works, but would prefer Vertex for centralized GCP billing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions