()
| 186 | * Well-known file: /home/claude/.claude/remote/.api_key. |
| 187 | */ |
| 188 | export function getApiKeyFromFileDescriptor(): string | null { |
| 189 | return getCredentialFromFd({ |
| 190 | envVar: 'CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR', |
| 191 | wellKnownPath: CCR_API_KEY_PATH, |
| 192 | label: 'API key', |
| 193 | getCached: getApiKeyFromFd, |
| 194 | setCached: setApiKeyFromFd, |
| 195 | }) |
| 196 | } |
| 197 |
no test coverage detected