#Trouble setting up OpenAI Codex Device Pairing
1 messages · Page 1 of 1 (latest)
That error is happening while OpenClaw is trying to commit a new ~/.openclaw/openclaw.json from a temp file, so I’d treat it as a local filesystem/permission problem rather than a Codex auth problem.
First: what does openclaw --version show?
Then check the config file ownership/flags:
ls -ldOe ~/.openclaw
ls -lOe ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.*.tmp 2>/dev/null
Common causes:
openclaw.jsonwas created bysudo/ another user, so your normal user can’t overwrite it- macOS immutable flag (
uchg) is set openclaw.jsonis a symlink; OpenClaw config writers require the active config path to be a regular file
If the file is owned by root, fix ownership and retry: