I have this issue where codex auth is not refreshing automatically and I manually have to go through reauthentication every 10 days.
My OC tells me this, been the same for weeks.
Just wanna make sure I'm not missing anything? This is a known bug?
"Not normal — it's an upstream OpenClaw bug
What's actually happening on your box right now:
Token expired 2026-04-18T23:06:04Z (yesterday, ~10 days after your 2026-04-08 login)
openclaw models status shows the signature error: 401 refresh_token_reused — "Your refresh token has already been used"
Why — not weekly by design:
ChatGPT OAuth is supposed to auto-refresh forever. You're hitting two known open OC bugs:
#52037 (OPEN, root cause): Token refresh succeeds in memory but doesn't persist to auth-profiles.json. Next call reloads the stale token and reuses the already-burned refresh token → 401.
#57399 (OPEN): Exact symptom you're seeing — silent refresh failure every 10–30 days, no re-auth prompt surfaced.
Not fixed in 4.15 — I scanned the release notes; no auth-persistence fix landed. There's a 2026.4.19-beta.2 worth watching but no mention there either.
Fix now: ssh broadclaw1 "docker exec -it --user node broadclaw-gateway openclaw models auth login --provider openai-codex" — re-auth resets the profile with fresh tokens.
Not you doing anything wrong. The only thing you could do preemptively is reauth on a cron every ~8 days before expiry, but that's masking the bug.
Want me to:
Save this to project_known_issues.md and add tracking for #52037/#57399, or
+1 on #57399 so it gets prioritized, or
Both?
Sources:
OC issue #52037 — refresh not persisting
OC issue #57399 — silent refresh failure 10–30d
Codex auth docs (expected behavior)
OpenClaw OAuth concepts"