claudeg
Run Claude Code through your ChatGPT subscription.
Install
Requires Claude Code first.
macOS / Linux
curl -fsSL https://claudeg.org/install.sh | sh
Windows / PowerShell
iwr -useb https://claudeg.org/install.ps1 | iex
Log in
Opens your browser for ChatGPT OAuth PKCE. Tokens cache at auth.json (mode 0600 on Unix). claudeg auto-detects your tier (Plus / Pro / Business / Enterprise) from the OAuth JWT and picks the right ChatGPT model for each Claude model.
claudeg login
Use
claudeg # interactive session via your ChatGPT subscription
claudeg "<prompt>" # one-shot
claudeg --resume <id> # resume a saved Claude Code session
claudeg --continue # continue the most recent session
claudeg whoami # show tier + model mapping
claudeg logout # forget cached credentials
Any flag that isn't a claudeg subcommand is forwarded verbatim to claude, so claudeg --resume <id>, claudeg -p "prompt", claudeg --model claude-haiku-4-5 "..." and friends all work the same as their claude counterparts.