openai-codex: write pi auth.json from OpenClaw OAuth profiles#15184
Merged
mbelinky merged 1 commit intoopenclaw:mainfrom Feb 13, 2026
Merged
openai-codex: write pi auth.json from OpenClaw OAuth profiles#15184mbelinky merged 1 commit intoopenclaw:mainfrom
mbelinky merged 1 commit intoopenclaw:mainfrom
Conversation
Contributor
Author
|
Additional validation (local):
|
zhangyang-crazy-one
pushed a commit
to zhangyang-crazy-one/openclaw
that referenced
this pull request
Feb 13, 2026
skyhawk14
pushed a commit
to skyhawk14/openclaw
that referenced
this pull request
Feb 13, 2026
leftspin
pushed a commit
to clickety-clacks/clawdbot
that referenced
this pull request
Feb 13, 2026
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
cloud-neutral
pushed a commit
to cloud-neutral-toolkit/openclawbot.svc.plus
that referenced
this pull request
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
OpenClaw stores OAuth credentials in
auth-profiles.json, but pi-coding-agent (ModelRegistry/AuthStorage) expects OAuth credentials inauth.json/ env.This mismatch can cause pi-based model discovery to omit OpenAI Codex built-in models (including
gpt-5.3-codex-spark) from the registry/catalog, leading toconfigured,missingentries and discovery inconsistencies.Change
openai-codexOAuth profile fields (access/refresh/expires) into<agentDir>/auth.jsonwhen present.Tests
ensurePiAuthJsonFromAuthProfiles()writes the expectedauth.jsonentry and is idempotent.Greptile Overview
Greptile Summary
This PR adds a small bridge (
ensurePiAuthJsonFromAuthProfiles) that copies OpenClaw’s stored OAuth credentials for theopenai-codexprovider fromauth-profiles.jsoninto<agentDir>/auth.json, which is the format expected by pi-coding-agent’sAuthStorage/ModelRegistry. The bridge is invoked before pi model discovery runs in both the CLI registry listing path and the model catalog loading path, and a unit test validates that the bridge writes the expectedauth.jsonentry and is idempotent.Confidence Score: 5/5
Last reviewed commit: 6f62221
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!