robotlearning123/gpt2agent

View on GitHub ↗

Your codex login → a full ChatGPT Plus/Pro account (every model, deep research, image gen, code exec) inside Claude Code, Codex & any MCP client. One-line install.

48 ★4 forksPythonUpdated 1mo ago

What you need to know

MCP server that puts your ChatGPT Plus/Pro subscription - every model and account-tier feature - inside Claude Code, Codex, Cursor, Windsurf, Zed, and any MCP client. Exposes 25 MCP tools: chat, agent mode (262K context), deep research (light and heavy), custom GPTs, image generation, code interpreter, Canvas, memory and custom-instructions read/write, Codex cloud tasks, and account introspection. Reuses $CODEX_HOME/auth.json from 'codex login' so no separate token is needed. Calls the chatgpt.com private backend directly, which is very likely against OpenAI Terms of Service and risks rate-limiting, suspension, or bans; the HTTP transport is unauthenticated (loopback-only by default). Python 3.10+, MIT.

Install

curl -fsSL https://raw.githubusercontent.com/robotlearning123/gpt2agent/main/install.sh | bash
pipx install gpt2agent && gpt2agent install

Key features

  • 25 MCP tools covering chat, agent mode, deep research, image generation, code interpreter, Canvas, memory, instructions, and Codex tasks
  • Zero extra setup when codex CLI is already logged in
  • CLI auto-detects and configures Claude Code, Codex, Cursor, Windsurf, Claude Desktop, and Zed
  • Deep research with citations and configurable models

Caveats

  • Impersonates the chatgpt.com web client (TLS fingerprint + POW/Turnstile solvers) - very likely against OpenAI ToS
  • Account can be rate-limited, challenged, suspended, or banned; use a disposable account
  • HTTP transport is unauthenticated and bound to 127.0.0.1 by default
  • Requires an active ChatGPT Plus or Pro subscription
  • Sora, Operator/CUA, and voice sessions not yet supported

Reviewed 2026-08-11

Topics

agentai-agentchatgptchatgpt-apiclaudeclaude-codecodexdalledeep-researchllmmcpmcp-servermodel-context-protocolopenaipython
Stars
48★
Forks
4
Language
Python
License
MIT
Created
2026-04-24
Last push
2026-07-14