Login with ChatGPT instead of bring your own token

It seems openai allows OpenClaw users to sign with ChatGPT and use their subscription there: https://x.com/sama/status/2050357911915028689

I also want to implement this in my app but I can’t find the official docs in how to do it.

Hi!

There are no official docs according to my best knowledge. This is how Openclaw does it:

Hope this helps!

That’s the only one that I found too.

I wish we could have more official confirmation of wider support.

A quote from above doc

OpenAI Codex OAuth is explicitly supported for use in external tools like OpenClaw. This page explains:

And then there is no link :thinking: :man_shrugging:

I’m wary of taking direction from a third party org that is affiliated but is not OpenAI

Having a post from the CEO about OpenClaw is really nice though.

However, I’m interested in my own agent.

In case it helps, Opencode appears to have native Codex/ChatGPT subscription OAuth, not only a third-party plugin.

But that’s also something to improve the docs. I’ll pass it along.

Oh well, maybe I’ll implement “for testing purposes” given it appears more widespread in anticipation of a more formal permission.