Claude Code v2.1.158: Auto Mode Now Available on Bedrock, Vertex, and Foundry (Supports Opus 4.7/4.8) L2GameDev - Code/CI
Confidence: High
Key Points: Anthropic released Claude Code v2.1.158 on 2026-05-30, extending Auto Mode to three major enterprise deployment platforms: Amazon Bedrock, Google Vertex AI, and Microsoft Foundry, with support for Opus 4.7 and 4.8 models. Developers must set the environment variable CLAUDE_CODE_ENABLE_AUTO_MODE=1 to enable it. Previously, Auto Mode was primarily limited to the direct Anthropic API; this update allows teams billing through cloud providers to use it as well.
Impact: Teams using Bedrock/Vertex/Foundry for enterprise billing and compliance can now enable Auto Mode in Claude Code without switching to the direct API, gaining access to automated agent workflows through their existing cloud channels.
Detailed Analysis
Trade-offs
Pros:
- Auto Mode now works through enterprise cloud billing channels
- Compatible with Opus 4.7/4.8
- No need to switch to the direct API
Cons:
- Requires manual environment variable to enable
- Feature parity across platforms needs verification
- Weekend minor release — incremental update
Quick Start (5-15 minutes)
- Upgrade Claude Code to 2.1.158
- Set CLAUDE_CODE_ENABLE_AUTO_MODE=1 in your Bedrock/Vertex/Foundry environment
- Run a small task to verify Auto Mode behavior on that cloud channel
Recommendation
Teams routed through cloud providers for compliance reasons can enable Auto Mode; first verify behavioral consistency across platforms on non-critical tasks.
Sources: Claude Code — Changelog (Official)