環境変数
ANTHROPIC_IDENTITY_TOKEN_FILE
アイデンティティトークンの交換時にClaude Codeが参照する、Workload Identity Federation(WIF)仕様で規定されたアイデンティティトークンファイルのパスを示す変数です。
使い方・用途
- Workload Identity Federationの変数(ANTHROPIC_FEDERATION_RULE_IDおよびANTHROPIC_ORGANIZATION_ID)が設定されている場合に、アイデンティティトークンを交換するためのファイルパスを指定する用途で使用します。
- /status コマンドを実行することで、どの認証ソース(Profile行)が選択されたかを確認することができます。
英語原文(公式ドキュメントより)
The user_oauth rule keeps a leftover ant auth login profile from moving your requests off the account you signed in to with /login. For the federation variables, Claude Code also reads the other variables in the WIF reference, such as ANTHROPIC_IDENTITY_TOKEN_FILE, when it exchanges your identity token. For the profile file format, see the WIF reference.