explainx.ainewsletter3.4k
trendingπŸ”₯loopsskills
pricing
workshops β†—
explainx.ai

Learn to lead teams that combine humans and agents. Platform access, live workshops, bootcamps, and 50+ courses β€” plus skills, tools, and MCP to practice what you learn.

follow us

custom AI agents

[email protected]

get started

Join Β· $29/mo

learn

start for freepathwaysworkshopsbootcampscoursescertificationscertification testsexplainx universitycorporate trainingfacilitatorshackathonslearn skills & mcp

discover

skillstoolsagentsmcp serversdesignsllmsagiranks

content

releasesvisionmissionaboutcommunityteamcareersresourcespromptsgenerators hubgenerator SEO hubprompt templatesprompt guidesblogfor LLMsdemo

Sister Products

Infloq

Infloq

Influencer marketing

BgBlur

BgBlur

Privacy-first blur

Olly Social

Olly Social

Social AI copilot

Ceptory

Ceptory

Video intelligence

BgRemover

BgRemover

Background removal

newsletter Β· weekly

Get AI news, tools, and insights in your inbox.

contactsupportprivacytermsdata rightssubmission guidelines

Β© 2026 AISOLO Technologies Pvt Ltd

← Back to blog

explainx / blog

LoginWithChatGPT: Codex Subscription OAuth for Your App

Savio Martin built LoginWithChatGPT by reverse-engineering OpenAI Codex CLI device auth β€” users log in with ChatGPT and run gpt-5.5-codex-fast on their plan quota. TOS risk, how it works, and vs API billing explained.

Jun 27, 2026Β·8 min readΒ·Yash Thakker
OpenAICodexChatGPTDeveloper ToolsOAuthSubscription
LoginWithChatGPT: Codex Subscription OAuth for Your App
Weekly digest3.4k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP β€” delivered to your inbox. Unsubscribe anytime.

On June 26, 2026, Savio Martin β€” 19-year-old co-founder and CTO of Result β€” posted an experiment that hit 186K+ views on X in hours: <LoginWithChatGPT />.

The pitch: embed a "Login with ChatGPT" button on your site. Users authorize with a one-time device code from ChatGPT settings. Your app runs prompts through Codex (demo uses gpt-5.5-codex-fast) β€” and usage draws from the user's ChatGPT plan, not your OpenAI API bill.

Demo: login-with-chatgpt.vercel.app

People immediately split into two camps: indie builders calling it genius for reviving side projects without API invoices, and compliance-minded developers asking whether it violates OpenAI's terms and triggers account bans β€” the same debate that already burned the Claude subscription reseller ecosystem.

This post answers what people actually search after seeing the thread β€” not a hype recap.

TL;DR

QuestionAnswer
What is it?Web OAuth wrapper around Codex CLI device auth
Who built it?Savio Martin, CTO of Result β€” experiment, not shipped OSS yet
Who pays OpenAI?The logged-in user's ChatGPT subscription
Demo modelgpt-5.5-codex-fast via Codex SDK responses.create()
Works on free ChatGPT?Savio says yes β€” subject to plan rate limits
Open source?Waiting for OpenAI TOS response before releasing library
TOS safe?Unknown β€” treat as risk until OpenAI confirms
Similar toolsOpenClaw Codex OAuth, usemysub.com, Pi /login patterns
OpenAI shipped this?No β€” Cal.com founder Peer Richelsen: "im surprised they havent shipped that yet"

What problem does LoginWithChatGPT solve?

Indie SaaS math is brutal in 2026: every user prompt on gpt-5.5 or gpt-5.5-codex-fast at API rates adds up fast β€” especially agentic flows that burn 10×–100Γ— more tokens than chat.

Subscription plans (ChatGPT Plus, Pro, Go) bundle model access at flat monthly prices tuned for human-shaped usage β€” not unlimited third-party inference farms, but enough that a single-user demo app can feel "free" to the developer if each visitor pays with their own plan.

LoginWithChatGPT externalizes inference cost exactly like OpenClaw's Codex OAuth path β€” except aimed at embedded web UX instead of a local terminal harness.

The demo site's copy states it plainly:

Add a Login with ChatGPT button to your site. Let users log in with their personal ChatGPT account and run prompts on it. You never pay OpenAI for usage. Works on any plan: Free, Go, Plus, or Pro.

Sample code from the live demo:

const codex = new Codex();

const res = await codex.responses.create({
  model: "gpt-5.5-codex-fast",
  input: "Write a haiku about the ocean.",
});

Output streams in the browser after the user completes device authorization.


How does the login flow work?

The implementation reverse-engineers OpenAI Codex CLI device authentication β€” the same family of flow CLI tools use when you codex login β€” into something web apps can trigger.

User steps (from the demo):

  1. Click Login with ChatGPT
  2. Browser opens ChatGPT; user enters a one-time code shown in your app
  3. First-time setup: enable device code authorization for Codex under ChatGPT Settings β†’ Security & Login
  4. App receives authorized session; Codex SDK calls proceed against that user's entitlement

Savio described it on X as building "OAuth inside web/mobile" on top of a flow OpenAI already exposes for CLI and tools like OpenClaw and Hermes β€” not inventing a new backend API.

Security questions developers raised: token storage, session hijacking, and whether device codes belong in third-party origins at all. Savio has not published a full security model yet β€” another reason to treat this as experiment-only.

For end users: logging into a random site with your ChatGPT account is the same trust decision as "Sign in with Google" β€” you are granting a third party ability to spend your model quota. Read what the app requests; revoke device codes in ChatGPT settings if you stop using the app.


Is it against OpenAI's terms of service?

Nobody has a definitive yes/no β€” including Savio.

On X, developer Eli Abdeen asked the obvious question: "doesn't this violate their terms? if a site is trying to connect gpt models... it should be from the api right?"

Savio's reply (June 26–27, 2026):

OpenAI claims to allow 3rd party apps to access Codex via CLI β€” ie how OpenClaw/hermes access it. I reverse engineered a way to build this as an OAuth inside web/mobile. not sure how compliant this is to their TOS β€” Waiting for OpenAI to respond before open sourcing this

explainx.ai read: three layers of risk:

RiskWhy it matters
Terms ambiguityConsumer subscription β‰  API reseller license; OpenAI can update enforcement overnight
Account actionUsers (not just developers) could face limits or bans if classified as abusive routing
PrecedentAnthropic blocked subscription OAuth for third-party harnesses while OpenAI leaned into Codex OAuth for OpenClaw β€” vendors diverge

Similar services like usemysub.com already operate in this gray zone. That is not proof of safety β€” it is proof OpenAI has tolerated some patterns while Anthropic actively did not for Claude.

Do not ship production revenue on "OpenAI hasn't stopped me yet."


Who pays? Subscription vs API economics

LoginWithChatGPTOfficial OpenAI API
Billed accountEnd user's ChatGPT planDeveloper's API project
Developer COGS~$0 marginal inferencePer-token invoice
Rate limitsConsumer plan capsTiered API limits
ComplianceGray / experimentalContractual
Best forDemos, hobby apps, BYOS experimentsProduction SaaS

This is the same wallet routing debate as Sam Altman's metered-utility vision vs flat subscriptions β€” except LoginWithChatGPT lets founders externalize metered cost to users' flat plans, which OpenAI may view as arbitrage if usage scales.

Savio confirmed in replies: all usage passes to the user's active subscription, including users on ChatGPT Free β€” with the obvious caveat that free tiers hit walls quickly on codex-fast workloads.


Why hasn't OpenAI shipped this officially?

Peer Richelsen (Cal.com) summarized the product gap: surprised OpenAI has not shipped first-party "Login with ChatGPT for developers" OAuth for embedded apps.

Plausible reasons OpenAI moves slowly:

  • Subscription economics β€” embedding plan quota in arbitrary third-party sites breaks usage forecasting
  • Abuse surface β€” same class of problem as 25,000 fake accounts distilling Claude, but on OpenAI's consumer graph
  • GPT-5.6 gating β€” limited preview with government vetting shows frontier models already under access control; consumer OAuth bridges make that harder to enforce
  • ChatGPT Apps / platform play β€” OpenAI may prefer partners inside a sanctioned store over arbitrary <LoginWithChatGPT /> embeds

Marko Kraemer noted on X that teams like Kortix are already "CODEX SUB MAXXING" β€” treating ChatGPT/Codex subscriptions as the default inference wallet for agent products, which makes LoginWithChatGPT less a novelty and more an inevitable product shape.


Comparisons developers ask about

vs OpenClaw + Codex OAuth

OpenClaw authenticates locally β€” user's machine, user's subscription, user's risk. LoginWithChatGPT moves that pattern to multi-tenant web where your users log in through your domain. Higher leverage for SaaS; higher TOS and security scrutiny.

vs usemysub.com and subscription resellers

Reseller APIs pool or route subscription credentials server-side β€” often opaque to end users. LoginWithChatGPT is transparent BYOS (bring your own subscription): users know they are spending their ChatGPT quota. Regulators and platforms may treat both similarly if scale grows.

vs Pi /login and harness OAuth

Pi documents /login for subscription OAuth providers in a local harness context. Same economic idea β€” subscription instead of API key β€” different deployment surface (terminal TUI vs React component).

vs official Codex in Claude Code / Codex CLI

First-party tools are always the safe path. Compare stacks in our Codex vs Claude Code guide if you are choosing a harness anyway.


Should Savio open-source it?

The X thread's most-liked replies say yes β€” democratize the pattern. Savio's restraint (wait for OpenAI) is the responsible move:

  • Legal clarity benefits everyone β€” users, Result, and OpenAI
  • Open-sourcing before TOS read accelerates abuse clones (wrappers, resellers, malware login pages)
  • A blessed OpenAI embed would obsolete the hack overnight β€” or trigger enforcement against forks

If OpenAI blesses CLI-adjacent OAuth for web, expect an official component. If they condemn it, early adopters face retroactive enforcement.


What should builders do today?

Safe paths:

  • Production SaaS β†’ OpenAI API keys with clear user billing; see Claude/OpenAI pricing guides for comparison math
  • Personal agents β†’ Codex CLI, Claude Code, or OpenClaw on your machine with your subscription
  • Cost control β†’ token governance and prompt caching β€” do not rely on subscription arbitrage at scale

Experiment paths:

  • Fork the demo UX locally; do not collect user ChatGPT credentials on shared infra without a security review
  • Watch Savio's X and login-with-chatgpt.vercel.app for OSS drop and OpenAI statement
  • Assume GPT-5.6 preview gating is the direction β€” consumer subscription bridges may narrow, not widen

Where this fits the 2026 access-control stack

June 2026 is the month frontier access became political: Fable 5 suspended, Mythos partial restore for critical infrastructure, GPT-5.6 preview vetted by Washington. LoginWithChatGPT is the indie hacker mirror image β€” routing around developer API bills by piggybacking consumer entitlements.

OpenAI and Anthropic are not symmetric: OpenAI enabled Codex OAuth for OpenClaw; Anthropic closed subscription loops for third parties. LoginWithChatGPT tests how far OpenAI's permissive side stretches into embedded web before someone gets banned.


Related reading

  • OpenClaw meets ChatGPT Plus β€” subscription vs API
  • Why AI companies want you using agents β€” token economics
  • AI token black market and Claude resellers
  • Is OpenClaw safe? Anthropic subscription boundaries
  • Codex vs Claude Code comparison
  • Pi harness /login and providers

Primary sources: login-with-chatgpt.vercel.app Β· Savio Martin's June 26, 2026 X thread on LoginWithChatGPT Β· OpenAI Codex documentation


Demo behavior, model ids, and TOS posture reflect public posts and the live demo as of June 27, 2026. OpenAI has not issued a public response to LoginWithChatGPT at publish time β€” verify before production use.

Related posts

Jun 27, 2026

When Will GPT-5.6 Sol, Terra, and Luna Be Available to Everyone?

OpenAI previewed Sol, Terra, and Luna on June 26 but most people still cannot use them. This guide answers when ChatGPT, Codex, and API users get broad access β€” based on OpenAI's official post, Axios, Forbes, METR evals, and the August 1 cyber EO deadline.

May 2, 2026

OpenClaw meets ChatGPT Plus: OpenAI’s subscription path vs Claude limits

Two vendor postures on the same open-source agent stack: OpenAI leaning into subscription-backed access for OpenClaw, while Anthropic enforces first-party surfaces for subscription entitlements and bills third-party tools differently.

Jun 26, 2026

GPT-5.6 Sol, Terra, and Luna: OpenAI Preview Launch Explained

GPT-5.6 is no longer a leak. OpenAI launched a limited preview of Sol (flagship), Terra (GPT-5.5-class at half the price), and Luna (cheapest tier) through Codex and the API β€” with Terminal-Bench 2.1 scores that put Sol Ultra at 91.9% and ahead of Claude Mythos 5. Broad ChatGPT access is promised in weeks; Washington asked for a vetted-partner start first.