# CLAUDE_CODE_SKIP_AWS_CRED_CACHE

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1

## Think of it like

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

## 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

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.

## Example code

```bash
export CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1
claude
```

Read fresh AWS keys on each request.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [CLAUDE_CODE_USE_BEDROCK](https://learn.benibix.com/term/ai/claude-code-use-provider-variables)
- [Amazon Bedrock](https://learn.benibix.com/term/ai/amazon-bedrock)

---

Source: https://learn.benibix.com/term/ai/claude-code-skip-aws-cred-cache-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
