Última hora: OpenAI torna o OpenClaw acessível

@AndrewWarner
INGLÊShá 5 meses · 19/02/2026
1.9M
2.5K
231
128
7.4K

TL;DR

Este guia detalha como usar o OAuth da OpenAI para potencializar agentes OpenClaw usando uma assinatura do ChatGPT, oferecendo uma alternativa econômica ao modelo restritivo de apenas API da Anthropic.

Yesterday, Claude said they'd CANCEL OpenClaw users who connect their Claude subscriptions. But OpenAI said they'd allow it! This is the step-by-step guide to using your ChatGPT subscription and eliminating API fees.

(If you just want to see how to use OpenAI, skip to the walkthrough here.)

Does Claude hate OpenClaw?

Yesterday, Claude made their restrictions clear.

This is a link to their full Legal & Compliance doc, but to me, the important part is this:

Andrew Warner - inline image

They do NOT want you to use your $0/month, $20/month, $100/month or $200/month accounts in tools like @openclaw.

Claude seems hostile to OpenClaw.

@steipete, OpenClaw's creator, has already said that Anthropic/Claude's engagement with him is only through legal "love letters":

Andrew Warner - inline image

And in his @lexfridman interview, Peter said that after forcing him to change the name of his project, they didn't even let him redirect his old domain to make it easy for users to find his project.

Why this sucks

The way that Claude wants us to connect to OpenClaw is expensive.

I'm a light user and I end up burning through $20/day, easily.

My friend @codymclain told me he burns $100/day.

The cost is crazy high for a project that -- let's be honest -- is still so new that most of what we're doing is using it to figure out WHAT it can do. There's no ROI for most people -- yet.

OpenAI steps in

Yesterday, when I announced that using Claude subscriptions on OpenClaw could get your account banned, I suggested that Sam Altman and OpenAI could step in and let us use our accounts.

Andrew Warner - inline image

Peter replied to me immediately to tell me that OpenAI was already ahead of this:

Andrew Warner - inline image

What nice way to treat users. Not only did they allow it, but they communicated it clearly.

How to do it

I recorded a clear step-by-step walk-through with @calebhodges who offers concierge OpenClaw setups for clients. He's been doing this over and over because of Claude's ban.

📺Watch the full video here.

But for experienced users, here's the simple 2-step process.

Step 1: Select OpenAI

text
1openclaw onboard --auth-choice openai-codex

This will skip the onboarding wizard, pre-selecting OpenAI Codex (ChatGPT OAuth) as the authentication method. Here's what it does specifically:

onboard

This kicks off the setup wizard that configures your OpenClaw gateway, workspace, channels, and skills.

--auth-choice openai-codex

This skips the interactive prompt asking you to pick a model provider and automatically selects the OpenAI Codex option, which authenticates via ChatGPT OAuth (i.e., your existing ChatGPT/Codex subscription) rather than a raw API key.

During this flow, OpenClaw will open a browser OAuth URL for you to sign in with your ChatGPT account. Once authenticated, it sets the default model to something like openai-codex/gpt-5.x-codex and stores the OAuth credentials in your auth profile.

The main reason to choose this over an API key is that it uses your subscription's token budget (e.g., ChatGPT Plus/Pro) instead of pay-per-token API billing, which can be more cost-effective if OpenClaw is chatty.

Step 2: Select 5.3 Codex

text
1openclaw models set openai-codex/gpt-5.3-codex
2
3openclaw models status --plain

openclaw models set openai-codex/gpt-5.3-codex

This sets openai-codex/gpt-5.3-codex as the primary text model for your agent.

Specifically, it writes agents.defaults.model.primary in your ~/.openclaw/openclaw.json config file. The model ref format is always provider/model — here openai-codex is the provider (your ChatGPT OAuth auth profile) and gpt-5.3-codex is the specific model.

Note that this writes to config but does not automatically restart the gateway — you'd need to run openclaw gateway restart for it to take effect on a running instance.

openclaw models status --plain

This shows the current model configuration and auth status. Without --plain, models status gives you a full overview: the resolved primary model, any configured fallbacks, the image model, and an auth summary of all providers (including OAuth expiry warnings if a token is within 24 hours of expiring). The --plain flag strips all of that context down to just the resolved primary model name, printed as a single line — useful for scripting or quick sanity checks that the right model is active.

So the two commands together form a common pattern: set a new default model, then verify it stuck.

What else can you do?

A. Cancel or downgrade your Claude account.

I'm switching from the $200/month plan to the $20/month.

B. Spread the word about how to use OpenAI!

1. Copy the commands above and Tweet them, as @ryancarson did:

Andrew Warner - inline image

2. Share or like this post.

3. Send your friends the video walkthrough that @calebhodges created: Easy Video Walkthrough on YouTube.

If Claude doesn't want us, we have alternatives.

Recriar no YouMind

Turn one viral article into a full content workflow

Collect the source, decode the pattern, create assets, draft the story, and distribute from one AI workspace.

Explore YouMind
Para criadores

Transforme o seu Markdown num artigo 𝕏 impecável

Quando publica os seus próprios textos longos, formatar imagens, tabelas e blocos de código para o 𝕏 é uma dor de cabeça. O YouMind transforma um rascunho completo em Markdown num artigo 𝕏 impecável e pronto a publicar.

Experimente Markdown para 𝕏

Mais padrões para decifrar

Artigos virais recentes

Explorar mais artigos virais