MCPcopy
hub / github.com/codeaashu/claude-code / getApiKeyFromFileDescriptor

Function getApiKeyFromFileDescriptor

src/utils/authFileDescriptor.ts:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 * Well-known file: /home/claude/.claude/remote/.api_key.
187 */
188export 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

Callers 1

Calls 1

getCredentialFromFdFunction · 0.85

Tested by

no test coverage detected