On a remote host without a browser: changedcli-sdks-libraries/cli/authentication
Nearest release: v2.1.332, published 6 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+9added
Lines−0removed
From line
93
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
## Claude Models on Google Cloud (Anthropic managed)
The whole hunk
from line 93, old and new numbered
/
from line 93
9393 --message '{role: user, content: "Hello, Claude"}'
9494```
9595
96## Claude Models on Google Cloud (Anthropic managed)
97
98To call [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), the CLI uses Google Application Default Credentials instead of `ant auth login` or an API key. To set up the CLI, follow these steps:
99
1001. **Set up the credentials:** See [Authentication on Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#authentication).
1012. **Set your project ID and workspace ID:** Pass `--google-cloud-project` and `--google-cloud-workspace-id`, or set `ANTHROPIC_GOOGLE_CLOUD_PROJECT` and `ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID`. For the other settings and their defaults, see [Project, location, and workspace resolution](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#project-location-and-workspace-resolution).
1023. **Leave competing settings unset:** An API key, an authentication token, a configuration profile, or Anthropic’s federation variables can take precedence over these settings. Before you run a command, check [which settings to leave unset](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#credential-precedence).
1034. **Confirm that the CLI uses these settings:** Run `ant auth status` and check that the `Google Cloud` row is marked `(active)`. If you set them with flags, pass the same flags to `ant auth status`.
104
96105## Check authentication status
97106
98107`ant auth status` prints the credential source the CLI selected (API key environment variable, OAuth login, federation, Google Cloud, or profile), the active profile, the workspace the active token is bound to, and the configuration directory paths. Use it to diagnose why a workload picked the wrong credential or workspace.
No line in this hunk matches that.