{"record":{"id":"2efaf302c742e41a","repo":"paperclipai/paperclip","slug":"no-codex-credentials-provisioned-for-managed-home-2efaf3","errorCode":null,"errorMessage":"no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" (no usable auth.json and OPENAI_API_KEY is empty). Sign in to Codex on the host with a ChatGPT subscription, or configure a per-agent OPENAI_API_KEY.","messagePattern":"no Codex credentials provisioned for managed home \"(.+?)\" \\(no usable auth\\.json and OPENAI_API_KEY is empty\\)\\. Sign in to Codex on the host with a ChatGPT subscription, or configure a per-agent OPENAI_API_KEY\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/codex-local/src/server/execute.ts","lineNumber":432,"sourceCode":"    if (sandboxAuthJson === \"unknown\") {\n      // The probe failing is an operational problem, not evidence that the\n      // sandbox lacks a login — proceeding lets a genuinely credentialed\n      // sandbox run, and a credential-less one still fails at Codex's first\n      // request with the provider's own error.\n      await input.onLog(\n        \"stderr\",\n        `Could not verify the sandbox's Codex login (probe failed); proceeding. ` +\n          `If the sandbox has no credentials, Codex will fail at its first request.\\n`,\n      );\n      return;\n    }\n    throw new Error(\n      `no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" ` +\n        `(no usable auth.json, OPENAI_API_KEY is empty, and the sandbox has no Codex login). ` +\n        `Use a sandbox image that is signed in to Codex, configure a per-agent OPENAI_API_KEY, ` +\n        `or sign in to Codex on the host with a ChatGPT subscription.`,\n    );\n  }\n\n  throw new Error(\n    `no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" ` +\n      `(no usable auth.json and OPENAI_API_KEY is empty). ` +\n      `Sign in to Codex on the host with a ChatGPT subscription, or configure a per-agent ` +\n      `OPENAI_API_KEY.`,\n  );\n}\n\nasync function emitSandboxAuthPrecedenceWarningIfNeeded(input: {\n  runId: string;\n  target: MaybeResolvedExecutionTarget;\n  cwd: string;\n  configuredApiKey: boolean;\n  hostAuthJson: boolean;\n  onLog: AdapterExecutionContext[\"onLog\"];\n  onEvent: AdapterExecutionContext[\"onEvent\"];\n}): Promise<void> {","sourceCodeStart":414,"sourceCodeEnd":450,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapters/codex-local/src/server/execute.ts#L414-L450","documentation":"Error \"no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" (no usable auth.json and OPENAI_API_KEY is empty). Sign in to Codex on the host with a ChatGPT subscription, or configure a per-agent OPENAI_API_KEY.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapters/codex-local/src/server/execute.ts:431 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Sign in to Codex on the host with a ChatGPT subscription.","Configure a per-agent OPENAI_API_KEY."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}