mirror of
https://github.com/openai/codex.git
synced 2026-03-05 21:45:28 +03:00
Support CODEX_API_KEY for codex exec (#4615)
Allows to set API key per invocation of `codex exec`
This commit is contained in:
@@ -58,7 +58,7 @@ export class CodexExec {
|
||||
env.OPENAI_BASE_URL = args.baseUrl;
|
||||
}
|
||||
if (args.apiKey) {
|
||||
env.OPENAI_API_KEY = args.apiKey;
|
||||
env.CODEX_API_KEY = args.apiKey;
|
||||
}
|
||||
|
||||
const child = spawn(this.executablePath, commandArgs, {
|
||||
|
||||
Reference in New Issue
Block a user