[FEATURE] Use without auth token set

Resolved 💬 3 comments Opened Oct 21, 2025 by ajmalab Closed Oct 25, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Hi,

I have a use case where all of the auth is handled by a gateway, and access to the gateway is controlled using netpols. Problem is, Claude-code keeps looking for an auth token in the env. Is there a way to skip this check? I've tried setting:
ANTHROPIC_BEDROCK_BASE_URL=https://my-gateway/bedrock
CLAUDE_CODE_SKIP_BEDROCK_AUTH=1
CLAUDE_CODE_USE_BEDROCK=1

but still getting a 403 from claude-code.

Proposed Solution

Introduce an env var that will skip any auth token checks locally. Something like CLAUDE_CODE_USE_GATEWAY_AUTH.

Alternative Solutions

_No response_

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗