Codex SDK - start up and testing

I followed this guide about Codex sdk usage on the official website ,
starting with the easyest example, without success, and i face the following error:

@openai/codex-sdk/dist/index.js:192
new Error(Codex Exec exited with code ${code}: ${stderrBuffer.toString("utf8")})
^

Error: Codex Exec exited with code 1: Reading prompt from stdin…
Not inside a trusted directory and --skip-git-repo-check was not specified.

at ChildProcess.<anonymous> (file:///*******/node_modules/@openai/codex-sdk/dist/index.js:192:15)
at Object.onceWrapper (node:events:634:26)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)

I’m on windows OS, nodejs 22.

sorry for the question,

Thanks in advance

1 Like

Ok perfect, it works now.
I got “Error: stream disconnected before completion: You exceeded your current quota, please check your plan and billing details.“ It is a bit strange, because i didn’t use it till now..

1 Like