()
| 206 | * /home/claude/.claude/remote/.api_key. |
| 207 | */ |
| 208 | export function getApiKeyFromFileDescriptor(): string | null { |
| 209 | return getCredentialFromFd({ |
| 210 | envVar: 'CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR', |
| 211 | wellKnownPath: CCR_API_KEY_PATH, |
| 212 | label: 'API key', |
| 213 | getCached: getApiKeyFromFd, |
| 214 | setCached: setApiKeyFromFd, |
| 215 | }) |
| 216 | } |
no test coverage detected