{"record":{"id":"9318818a44831414","repo":"paperclipai/paperclip","slug":"no-codex-credentials-provisioned-for-managed-home","errorCode":null,"errorMessage":"no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" (no usable auth.json, OPENAI_API_KEY is empty, and the sandbox has no Codex login). Use a sandbox image that is signed in to Codex, configure a per-agent OPENAI_API_KEY, or sign in to Codex on the host with a ChatGPT subscription.","messagePattern":"no Codex credentials provisioned for managed home \"(.+?)\" \\(no usable auth\\.json, OPENAI_API_KEY is empty, and the sandbox has no Codex login\\)\\. Use a sandbox image that is signed in to Codex, configure a per-agent OPENAI_API_KEY, or sign in to Codex on the host with a ChatGPT subscription\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/codex-local/src/server/execute.ts","lineNumber":424,"sourceCode":"    });\n    if (sandboxAuthJson === \"present\") {\n      await input.onLog(\n        \"stdout\",\n        `Using the sandbox's own Codex login; managed home \"${input.effectiveCodexHome}\" has no host credentials.\\n`,\n      );\n      return;\n    }\n    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: {","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapters/codex-local/src/server/execute.ts#L406-L442","documentation":"Error \"no Codex credentials provisioned for managed home \"${input.effectiveCodexHome}\" (no usable auth.json, OPENAI_API_KEY is empty, and the sandbox has no Codex login). Use a sandbox image that is signed in to Codex, configure a per-agent OPENAI_API_KEY, or sign in to Codex on the host with a ChatGPT subscription.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapters/codex-local/src/server/execute.ts:423 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a sandbox image signed in to Codex.","Configure a per-agent OPENAI_API_KEY.","Sign in to Codex on the host with a ChatGPT subscription."],"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"}