robotlearning123

Gpt2agent — AI skill for Claude Code

AI community

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

How to install Gpt2agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open robotlearning123/gpt2agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Gpt2agent does

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.

Alternatives in AI

  • Pro Workflow — 1,400+ Battle-tested Claude Code workflows from power users 1.4k ★
  • Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★
  • Qiaomu Markdown Proxy — Fetch any URL as clean Markdown via proxy services (r.jina.ai / defuddle.md) or built-in scripts 426 ★

README

gpt2agent

**MCP server for your ChatGPT account: `codex login` → ChatGPT Plus/Pro inside any MCP client.**

An **MCP server** that puts your **ChatGPT Plus or Pro** subscription — every model and the account-tier features below — inside Claude Code, Codex, Cursor, Windsurf, Zed, and any MCP client.

[![PyPI version](https://img.shields.io/pypi/v/gpt2agent)](https://pypi.org/project/gpt2agent/) [![CI](https://github.com/robotlearning123/gpt2agent/actions/workflows/ci.yml/badge.svg)](https://github.com/robotlearning123/gpt2agent/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://pypi.org/project/gpt2agent/)

📖 **[Quickstart](./docs/quickstart.md)** · **[Client setup](./docs/clients.md)** · **[Troubleshooting](./docs/troubleshooting.md)** · **[FAQ](./docs/faq.md)** · **[Docs index](./docs/README.md)**


What it does

gpt2agent exposes **25 MCP tools** that forward requests directly to ChatGPT's backend API. No proxy process. No separate account. No platform API key. Your `codex login`, your token, your quota.

If you already have the [`codex`](https://github.com/openai/codex) CLI logged in, setup is **zero extra steps** — gpt2agent reuses `$CODEX_HOME/auth.json` (or `~/.codex/auth.json` by default) and picks up its background-refreshed token automatically.

Works with Claude Code, Codex CLI, and any client that speaks the MCP protocol over stdio.


Install — one line

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

That command:

  1. Installs the published gpt2agent package via pipx in an isolated environment.
  2. Reuses $CODEX_HOME/auth.json (or ~/.codex/auth.json) if you've run codex login — no separate ChatGPT token paste needed.
  3. Detects which MCP clients you have (Claude Code, Codex, Cursor