MCPcopy
hub / github.com/superagent-ai/grok-cli / getApiKey

Function getApiKey

src/utils/settings.ts:312–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312export function getApiKey(): string | undefined {
313 return process.env.GROK_API_KEY || loadUserSettings().apiKey;
314}
315
316export function getBaseURL(): string {
317 return process.env.GROK_BASE_URL || "https://api.x.ai/v1";

Callers 5

runBackgroundDelegationFunction · 0.90
resolveConfigFunction · 0.90
AppFunction · 0.90

Calls 1

loadUserSettingsFunction · 0.85

Tested by

no test coverage detected