openclaw - 💡(How to fix) Fix OpenAI OAuth re-onboard only updates main agent auth-profiles.json, leaving non-main agents with stale auth [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60182Fetched 2026-04-08 02:35:21
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
RAW_BUFFERClick to expand / collapse

On OpenClaw 2026.4.2 on macOS, in a multi-agent setup, re-onboarding OpenAI OAuth only updates:

~/.openclaw/agents/main/agent/auth-profiles.json

but does not update:

~/.openclaw/agents/[otheragents]/agent/auth-profiles.json

As a result, non-main agents continue using a stale auth-profiles.json and fail with:

OAuth token refresh failed for openai-codex

Environment:

  • OpenClaw version: 2026.4.2
  • OS: macOS
  • Model: openai-codex/gpt-5.4

Expected behavior:

  • Re-onboarding OpenAI OAuth should refresh the relevant auth profile for all agents that depend on it, or use a shared/auth-consistent source of truth across agents.

Actual behavior:

  • Only the main agent auth profile is refreshed.
  • Other agents keep stale credentials and continue failing OAuth refresh.

Impact:

  • In multi-agent setups, non-main agents can remain broken after OAuth re-onboard, even though the main agent works.

extent analysis

TL;DR

Re-onboarding OpenAI OAuth may require manual updates to the auth-profiles.json files for non-main agents or a shared authentication source to ensure consistency across all agents.

Guidance

  • Verify that the auth-profiles.json files for non-main agents are not being updated automatically after re-onboarding OpenAI OAuth, as expected.
  • Check the OpenClaw documentation for any configuration options or environment variables that could enable shared authentication or automatic updates for all agents.
  • Consider implementing a script or workaround to manually update the auth-profiles.json files for non-main agents after re-onboarding OpenAI OAuth, to ensure consistency and prevent OAuth token refresh failures.
  • Investigate whether using a shared authentication source, such as a centralized auth-profiles.json file, could resolve the issue and provide a consistent source of truth for all agents.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The issue seems to be specific to the OpenClaw version 2026.4.2 on macOS, and the solution may vary depending on the specific setup and configuration of the multi-agent environment.

Recommendation

Apply workaround: Implement a script or manual process to update the auth-profiles.json files for non-main agents after re-onboarding OpenAI OAuth, as a temporary solution until a more permanent fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING