#openai 5.4 config
1 messages ยท Page 1 of 1 (latest)
Yep โ use this in ~/.openclaw/openclaw.json (JSON5 format):
{
env: {
OPENAI_API_KEY: "sk-..."
},
agents: {
defaults: {
model: { primary: "openai/gpt-5.4" }
}
}
}
If you want Codex OAuth instead of API key, use:
{
agents: {
defaults: {
model: { primary: "openai-codex/gpt-5.4" }
}
}
}
Quick setup commands:
openclaw onboard --auth-choice openai-api-key
# or
openclaw onboard --auth-choice openai-codex