Omniscio

OmniscioSettings examplesBedrock or Vertex

Claude Code settings.json example for Bedrock or Vertex

A provider setup is an environment problem wearing a settings problem’s clothes. These are two complete files, one per cloud: Amazon Bedrock first, Google Cloud second, at the same path, so you install one of them. Each carries the variable that picks the provider, the region that cloud needs, the project or model pin it needs for the bill to be right, the credential refresh command, and the /status reading that tells you whether any of it reached the process.

Checked against Anthropic’s Claude Code 2.1.332. By the Omniscio team. Updated .

Who these files are for

A team whose Claude traffic has to go through its own cloud account, for centralized billing or because a compliance rule says so. The shape of the work is the same either way: select the provider, point it at a region and, on Google Cloud, a project, and make sure the credentials renew without a human at three in the morning. Almost no variable name is shared between the two.

The variable-by-variable walk through provider selection, IAM and the errors each cloud returns is the Bedrock and Vertex setup guide. This page is the file itself.

The Amazon Bedrock file

Save this as ~/.claude/settings.json and change three values: the model ID, the region, and the profile name, which touches four lines because the profile appears twice, once in AWS_PROFILE and once in the awsAuthRefresh command. Delete the region line if your AWS profile already sets one, and the two profile lines if you use the default profile.

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-west-2",
    "AWS_PROFILE": "claude-bedrock",
    "ANTHROPIC_MODEL": "us.anthropic.claude-sonnet-4-6"
  },
  "awsAuthRefresh": "aws sso login --profile claude-bedrock"
}
KeyWhat it does here
env.CLAUDE_CODE_USE_BEDROCKSelects Amazon Bedrock as the provider for every session. Until it is set, /setup-bedrock is hidden from the command menu, so on a fresh install this file is the bootstrap and the wizard is how you edit it later
env.AWS_REGIONThe region Claude Code calls. You need it only to override the region your AWS profile already sets, or when the profile sets none
env.AWS_PROFILEThe profile whose credentials are used, so the value does not have to be exported in any shell. Without it the default profile is used
env.ANTHROPIC_MODELPins the model to a cross-region inference profile ID. Left unset, Claude Code resolves its built-in models to a profile whose prefix follows the region: us. in us-*, eu. in eu-*, apac. in ap-*, global. elsewhere and us-gov. in GovCloud. The default primary model is Opus, so an unpinned session is billed at the Opus rate
awsAuthRefreshRuns only when Claude Code decides your AWS credentials are expired, then retries the request. It checks with an STS GetCallerIdentity call first and skips the command when the credentials still work

The prefix on ANTHROPIC_MODEL has to match AWS_REGION: us. in us-*, eu. in eu-*, apac. in ap-*, us-gov. in GovCloud, and global. everywhere else. The pair above is correct for us-west-2 only; change the region and the prefix changes with it.

The refresh command cannot take interactive input, though its output is shown to you, which is why a browser-based SSO flow fits: the CLI prints a URL and a code and you finish in the browser. Use awsCredentialExport instead only when you cannot write to .aws at all, because it runs at every session start rather than on expiry.

If you add a Haiku-class background model, ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION sets its region, but only when ANTHROPIC_DEFAULT_HAIKU_MODEL, or the deprecated ANTHROPIC_SMALL_FAST_MODEL, is also set. This file sets neither, so background tasks run on the default Sonnet model in the session’s region.

The Google Cloud file

Same file, four different variables, and only two need your input: replace your-project-id with the project that will be billed, and set CLOUD_ML_REGION to your location. It accepts global, a multi-region location such as eu or us, or a single region such as us-east5, and Claude Code picks the matching hostname for each form.

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "env": {
    "CLAUDE_CODE_USE_VERTEX": "1",
    "CLOUD_ML_REGION": "global",
    "ANTHROPIC_VERTEX_PROJECT_ID": "your-project-id",
    "VERTEX_REGION_CLAUDE_HAIKU_4_5": "us-east5"
  },
  "gcpAuthRefresh": "gcloud auth application-default login"
}
KeyWhat it does here
env.CLAUDE_CODE_USE_VERTEXSelects Google Cloud as the provider
env.CLOUD_ML_REGIONThe location. Requests to the project in ANTHROPIC_VERTEX_PROJECT_ID go to the hostname for this form
env.ANTHROPIC_VERTEX_PROJECT_IDThe project billed for the calls. Claude Code uses this one even when GCLOUD_PROJECT, GOOGLE_CLOUD_PROJECT or the credentials file names a different project
env.VERTEX_REGION_CLAUDE_HAIKU_4_5Routes one model to its own region, for the models that are not served on a global endpoint. Most model versions have a corresponding VERTEX_REGION_CLAUDE_* variable
gcpAuthRefreshRuns when Claude Code finds your Google Cloud credentials expired or unloadable, after checking with an access-token request that skips the command when they still work

This file pins no model, so Claude Code starts on its built-in default on Google Cloud. To pin one, add ANTHROPIC_MODEL to env, the same key as the Bedrock file with a Google model name, and confirm it in /model.

The wizard does this for you: /setup-vertex asks for your project and region, checks which models the project can invoke, and writes the result into the env block of your user settings. Run it again to change any of those values.

One asymmetry to plan for. On Google Cloud, background work such as session titles uses the default Sonnet model rather than a Haiku-class one, because Haiku may not be enabled in every project or region.

Which file these go in

Both files are the same path, so you install one of them, never both: user settings at ~/.claude/settings.json, or $CLAUDE_CONFIG_DIR/settings.json when CLAUDE_CONFIG_DIR is set, which reaches every project on the machine. Do not set CLAUDE_CODE_USE_BEDROCK and CLAUDE_CODE_USE_VERTEX in one env block: pick one provider per file. env and the two refresh keys can be set in any settings file, so a committed project file can carry them too, though a gcpAuthRefresh set there runs under the same workspace-trust rule as hooks, including in a -p session in a folder nobody has trusted. A provider that chooses where your traffic goes is a machine-level decision, and belongs here.

A value in env overwrites the same variable exported in your shell in most sessions, the Claude Desktop app and a self-hosted runner keeping a value their launch environment already sets, and when two settings files set one, the higher-precedence file wins. So this block is the answer to a laptop that behaves differently depending on which terminal opened it.

Nothing in either file was run against a cloud account to write this page: every line is Anthropic’s documentation, read on 25 November 2026, and the /status readings are what that documentation says a working setup shows.

Some variables are ignored from a project or local file on purpose, because a checked-out repository should not control them: Claude Code drops each one and logs a warning you can see with claude --debug. The two provider selectors are not on that list, so a committed project file can carry them. The rest of the list is long enough to check before you commit an env block, and it sits under env on Anthropic’s settings reference.

How to confirm it took effect

  1. Run /status. On Amazon Bedrock it shows the resolved region, and notes where that came from when it was your AWS config files or the fallback rather than the line in env.
  2. On Google Cloud the API provider line reads Google Vertex AI, and the GCP project, Default region and Model lines show your project ID, region and resolved model. A missing provider line means the variables never reached the process.
  3. Read the model. The Model line in /status and the current model in /model show what is answering, and on Bedrock the session should be running the inference profile you pinned rather than a built-in alias.
  4. Send one real request. /status proves the variables arrived; only a real call proves the credential is authorised for the model you pinned, and the failure is an authentication error on that first call rather than at startup.

Three silent failures

The failure that costs the most time is silent. A region value that is not shaped like a region or a location name is treated as unset: a value containing a slash, a dot or a space counts, and CLOUD_ML_REGION then falls back to us-east5 while everything else looks correct.

  • A region copied from a URL, such as https://us-central1-aiplatform.googleapis.com, is not a region. Use global, us, eu or us-east5.
  • Pin nothing on Bedrock and you are billed at the Opus rate, because the default model resolves to an Opus profile. Set ANTHROPIC_MODEL to a Sonnet profile ID when Sonnet is what you meant to buy.
  • A model that is not enabled in your project or region does not fail loudly. Vertex switches the session to another model with a message starting Switched to, and Model Garden is where you check what the project is actually allowed to invoke.

The enterprise policy file is the other half of a managed rollout: once the provider is chosen here, a managed availableModels list decides which models a session may pick from it.

Common questions

Can I put AWS or Google Cloud variables in a settings file instead of exporting them?

Yes. The env block of a settings file applies its variables to every session and to the subprocesses Claude Code starts, which is Anthropic’s own suggestion for a value such as AWS_PROFILE that you do not want leaking to other processes. A value there overwrites the same variable exported in your shell in most sessions, and the highest-precedence settings file wins when two files set it.

Why does my Vertex setup ignore the region I set?

A region value that is not shaped like a region or a location name is treated as unset. A value containing a slash, a dot or a space counts, and CLOUD_ML_REGION then falls back to us-east5. Use global, a multi-region location such as eu or us, or a single region such as us-east5.

How do I confirm Claude Code is talking to Bedrock or Vertex?

Run /status. On Google Cloud the API provider line reads Google Vertex AI, and the GCP project, Default region and Model lines show your project, region and resolved model; if the provider line is missing, the variables are not reaching the process. On Amazon Bedrock, /status shows the resolved region and, when it came from your AWS config files or the fallback, where it came from.

Where to go next

Run several sessions on one cloud setup

Omniscio runs Claude Code sessions side by side, and every session reads the same env block from ~/.claude/settings.json, so a session you open next week uses the provider, region and model you just verified. The features page covers what it adds, and you can download it for Windows, macOS or Linux.