MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / configureApiKeyHeaders

Function configureApiKeyHeaders

src/services/api/client.ts:318–328  ·  view source on GitHub ↗
(
  headers: Record<string, string>,
  isNonInteractiveSession: boolean,
)

Source from the content-addressed store, hash-verified

316}
317
318async function configureApiKeyHeaders(
319 headers: Record<string, string>,
320 isNonInteractiveSession: boolean,
321): Promise<void> {
322 const token =
323 process.env.ANTHROPIC_AUTH_TOKEN ||
324 (await getApiKeyFromApiKeyHelper(isNonInteractiveSession))
325 if (token) {
326 headers['Authorization'] = `Bearer ${token}`
327 }
328}
329
330function getCustomHeaders(): Record<string, string> {
331 const customHeaders: Record<string, string> = {}

Callers 1

getAnthropicClientFunction · 0.85

Calls 1

Tested by

no test coverage detected