Add OpenAIProvider and AGENTS.md; default to OpenAI for Codex runs - #5
Open
tuhinkanti wants to merge 6 commits into
Open
Add OpenAIProvider and AGENTS.md; default to OpenAI for Codex runs#5tuhinkanti wants to merge 6 commits into
tuhinkanti wants to merge 6 commits into
Conversation
tuhinkanti
commented
May 4, 2026
tuhinkanti
commented
May 4, 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.
Motivation
Description
AGENTS.mdwith a Codex-focused quick run and change policy for low-friction runs usingOPENAI_API_KEY.OpenAIProvider(src/main/java/ai/openclaw/agent/OpenAIProvider.java) implementingLlmProviderusing the OpenAI Chat Completions API for simple text completions.createProviderhelper inGatewayCommandsoanthropicremains supported but the default isopenai.OpenClawConfigtoprovider = "openai"andmodel = "gpt-4o-mini", and updateConfigLoaderto preferOPENAI_API_KEYwith a fallback toANTHROPIC_API_KEY.README.mdexamples and Docker run instructions to reflect the OpenAI-first defaults.Testing
./gradlew buildto validate the build, which failed in this environment due to a missing Java 21 toolchain (toolchain auto-provisioning not configured).Codex Task