Skip to content

[Feature]: Non-interactive command to use Codex OAuth for model provider #47750

@terryds

Description

@terryds

Summary

Add non-interactive way to setup model provider using OpenAI Codex OAuth (e.g. just by supplying something like OPENAI_CODEX_OAUTH_CALLBACK_URL in the env)

Problem to solve

I have seen the docs: https://docs.openclaw.ai/providers/openai

Currently there's a non-interactive way to set API key, which is just by supplying environment variable of OPENAI_API_KEY

But I don't find a non-interactive way for Codex OAuth method.
I'd love if I can do something like OPENAI_CODEX_OAUTH_CALLBACK_URL and then supply it with the redirect url

This would be helpful for people who wants an instant OpenClaw setup using their ChatGPT Plus subscription

Proposed solution

Support this in env
OPENAI_CODEX_OAUTH_CALLBACK_URL=<CALLBACK_URL>

Alternatives considered

No response

Impact

For businesses so that they can offer instant OpenClaw setup with their users' ChatGPT Plus subscription

Evidence/examples

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestimpact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions