Skip to content
BENIBIX Learn

CLAUDE_CODE_SKIP_AWS_CRED_CACHE

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1

Set to 1, it makes Claude Code look up AWS keys on every request.

Think of it like

It is like you check your pass at the gate each time, not just once a day.

Example

Jack's keys rotate every few minutes, and Claude Code kept using an old one. With this set, each request picks up the new key.

Why it matters

If your keys change often, a kept copy can go stale and requests start to fail.

Definition

CLAUDE_CODE_SKIP_AWS_CRED_CACHE set to 1 stops Claude Code from keeping the AWS keys it looked up. It then looks them up again for every API request. With an SSO profile, that means a fresh call to AWS sign-in each time. It needs version 2.1.207 or later.

Example code

bash
export CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1
claude
Read fresh AWS keys on each request.

Common mistake

Turning it on with no need. Each request then waits on a new lookup, which is slower.

Key takeaways

  1. 1
    No kept copy. Fresh each time.
  2. 2
    For fast-changing keys. Rotating ones.
  3. 3
    Slower. One lookup per request.