環境変数
CLAUDE_CODE_SKIP_AWS_CRED_CACHE
AWS デフォルト認証プロバイダーチェーンから取得した認証情報のインプロセスキャッシュを無効化します。
使い方・用途
- 値を 1 に設定すると、すべての API リクエストごとに認証チェーンを解決します
- SSO 連携プロファイルを使用している場合、リクエストのたびに IAM Identity Center へ認証情報を要求します
- v2.1.207 以降で利用可能です
英語原文(公式ドキュメントより)
Set to 1 to turn off the in-process cache of credentials resolved from the AWS default credential provider chain, so Claude Code resolves the chain on every API request. With the cache off, an SSO-backed profile requests credentials from IAM Identity Center on every request. See credential caching and resolution timeout. Requires Claude Code v2.1.207 or later