Gptcc banner
joungminsung joungminsung

Gptcc

AI community

Description

GPT for Claude Code — use OpenAI GPT models inside the Claude Code CLI via documented extension points (ANTHROPIC_BASE_URL, ANTHROPIC_CUSTOM_MODEL_OPTION, plugin hooks). Cross-platform, no binary modification. MIT.

Installation

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

README

GPT for Claude Code

![License](https://img.shields.io/badge/license-MIT-blue) ![npm](https://img.shields.io/npm/v/gptcc?label=npm&color=CB3837) ![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey) ![Uninstall](https://img.shields.io/badge/uninstall-one_command-brightgreen)

**Run OpenAI GPT models inside [Claude Code](https://claude.com/claude-code).** Same CLI, same conversation history, same plugins and skills. Works with your existing **ChatGPT Plus/Pro subscription** via the public OAuth flow — no OpenAI API key required, no separate terminal tab, no context switching.

GPT for Claude Code

npm install -g gptcc
gptcc setup
gptcc hello        # end-to-end test in 5 seconds

ℹ️ About this project

gptcc is an **extension** for Claude Code, not a replacement or a fork. It uses only documented extension points — `ANTHROPIC_BASE_URL`, `ANTHROPIC_CUSTOM_MODEL_OPTION`, plugin hooks — the same mechanisms Claude Code's own docs show for LiteLLM, LM Studio, Ollama, and vLLM. **No binary modification. No reverse engineering.**

The ChatGPT OAuth flow is the exact public flow used by OpenAI's open-source [Codex CLI](https://github.com/openai/codex), which OpenAI explicitly supports for personal, non-commercial use.

MIT licensed. Zero telemetry, zero tracking, zero monetization. Not affiliated with Anthropic or OpenAI. If either party would like this project to wind down, see [SECURITY.md](./SECURITY.md) — we'll comply within 24 hours, no escalation.


Two ways to use it

Once installed, two workflows are available. You can switch between them any time — they're not mutually exclusive.

Mode 1 — GPT only

Drive the whole Claude Code session with a GPT model instead of Claude. Useful when you want GPT's behavior but still in the CLI and workflow you already have configured.