Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Customize sessions in self-hosted environments changedself-hosted-environments-configuration

Nearest release: v2.1.314, published 4 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 29 Oct 2026 19:31 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Oct 2026 18:07 UTC.

Upstream edited
Recorded here
Lines+22added
Lines−22removed
From line 527 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits42to this page, all time

The whole hunk

from line 527, old and new numbered
/
lines
from line 527
527527 
528528Start these runners with [`--confine-repo-settings enforce`](https://code.claude.com/docs/en/self-hosted-environments-deploy#harden-your-deployment). It refuses sessions on repositories whose committed settings it flags, so run in the default `warn` mode first and clear what it logs.
529529 
530**Amazon Bedrock**
530> [tab] Amazon Bedrock
531>
532> Replace the region with your own:
533>
534> ```bash theme={null}
535> export CLAUDE_CODE_USE_BEDROCK=1
536> export AWS_REGION=us-east-1
537> ```
538>
539> For how Claude Code resolves the region, see [Configure Claude Code](https://code.claude.com/docs/en/amazon-bedrock.md#3-configure-claude-code). For which inference profile prefix Claude Code uses for your region, see [Cross-region inference profile prefixes](https://code.claude.com/docs/en/amazon-bedrock.md#cross-region-inference-profile-prefixes).
531540 
532Replace the region with your own:
533 
534```bash theme={null}
535export CLAUDE_CODE_USE_BEDROCK=1
536export AWS_REGION=us-east-1
537```
538 
539For how Claude Code resolves the region, see [Configure Claude Code](https://code.claude.com/docs/en/amazon-bedrock.md#3-configure-claude-code). For which inference profile prefix Claude Code uses for your region, see [Cross-region inference profile prefixes](https://code.claude.com/docs/en/amazon-bedrock.md#cross-region-inference-profile-prefixes).
540 
541**Google Cloud's Agent Platform**
542 
543Replace the region and project ID with your own:
544 
545```bash theme={null}
546export CLAUDE_CODE_USE_VERTEX=1
547export CLOUD_ML_REGION=global
548export ANTHROPIC_VERTEX_PROJECT_ID=YOUR-PROJECT-ID
549```
550 
551To choose a region, see [Region configuration](https://code.claude.com/docs/en/google-vertex-ai.md#region-configuration).
541> [tab] Google Cloud's Agent Platform
542>
543> Replace the region and project ID with your own:
544>
545> ```bash theme={null}
546> export CLAUDE_CODE_USE_VERTEX=1
547> export CLOUD_ML_REGION=global
548> export ANTHROPIC_VERTEX_PROJECT_ID=YOUR-PROJECT-ID
549> ```
550>
551> To choose a region, see [Region configuration](https://code.claude.com/docs/en/google-vertex-ai.md#region-configuration).
552552 
553553**4. Check that the variables reached a session**
554554 
Feedback