claudeers.
// Automation & Workflows

claudex

Run Claude Code with GPT models through Raine's claude-code-proxy.

// Automation & Workflows[ cli ][ api ][ web ][ claude ]#claude#ai-agents#claude-code#codex#developer-tools#openai#automationMIT$open-sourceupdated about 1 month ago
Actively maintained
99/100
last commit 11 days ago
last release none
releases 0
open issues 0
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up claudex (git-clone project) into my current project.
Found on https://claudeers.com/claudex-3
Repo: https://github.com/migueltorrezd/claudex
Homepage/docs: —
Detected install method: git-clone → git clone https://github.com/migueltorrezd/claudex
Category: automation. Platforms: cli, api, web.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or clone
git clone https://github.com/migueltorrezd/claudex

// compatibility

Platformscli, api, web
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguageShell

Claudex

Run the Claude Code harness with GPT models from a ChatGPT subscription.

Claudex is a small, opinionated setup layer around Claude Code and Raine's claude-code-proxy. You keep Claude Code's interface, tools, skills, hooks, permissions, and agents while requests are translated to the Codex Responses backend.

[!IMPORTANT] The translation layer is the work of Raine (@raine) and the claude-code-proxy contributors. Claudex only packages a launcher, tested defaults, and setup documentation. If this is useful, please star and support the upstream project.

What you get

  • ccx: a separate launcher, so normal claude and codex remain untouched.
  • GPT-5.6 Sol by default, with shortcuts for the other models currently recognized by the proxy.
  • Sol for Claude Code's small/background utility requests instead of silently falling back to a Haiku alias the proxy cannot route.
  • Sol at medium effort for the dedicated ccx bg lane.
  • An optional custom background sub-agent configured at high effort.
  • An interactive wizard that asks which models and effort levels you want.
  • Proxy health checks and automatic Homebrew service recovery.
  • No API key in the repository. Authentication is handled by the proxy's Codex OAuth flow.
flowchart LR
    U[You] --> C[Claude Code UI and tools]
    C --> X[ccx launcher]
    X --> P[claude-code-proxy on localhost]
    P --> O[Codex Responses backend]
    O --> G[GPT model from your ChatGPT plan]

Requirements

  • macOS or Linux for the automated Homebrew setup. The launcher itself is Bash.
  • Claude Code installed.
  • Homebrew installed.
  • A ChatGPT plan with Codex access. Model availability varies by account and can change.
  • Git for cloning this repository.

The upstream proxy also publishes Windows binaries, but this repository's service installer is currently tested only with Homebrew on macOS and Linux. Follow the upstream Windows instructions and install bin/ccx manually if you want to adapt it.

Five-minute setup

git clone https://github.com/migueltorrezd/claudex.git
cd claudex
./scripts/setup.sh

The wizard asks you to choose:

  1. The main model and its reasoning effort.
  2. The model and effort for the ccx bg lane.
  3. The utility model used for titles, token counting, and small background requests.
  4. The optional custom sub-agent's effort.
  5. Whether to install that agent, complete OAuth, and start the background service.

Every question shows the recommended/current value. Before writing anything, the wizard displays a complete summary and asks for confirmation. Preferences are saved to ~/.config/claudex/config; an existing config is backed up before it changes. OAuth credentials are never stored there.

The tested defaults are:

  • Main session: GPT-5.6 Sol at xhigh effort.
  • Background lane: GPT-5.6 Sol at medium effort.
  • Utility requests: GPT-5.6 Sol.
  • Custom sub-agent: high effort.

If Codex OAuth is not configured yet and you decline browser login in the wizard, run:

claude-code-proxy codex auth login
./scripts/setup.sh

The first command opens the official browser OAuth flow. On a headless machine, use:

claude-code-proxy codex auth device

Then make sure ~/.local/bin is on your PATH:

export PATH="$HOME/.local/bin:$PATH"

Add that line to ~/.zshrc or ~/.bashrc if necessary.

For non-default locations, set CCX_INSTALL_DIR, CCX_AGENT_DIR, or CCX_CONFIG_DIR.

For automation or an AI agent, keep the deterministic installer:

./scripts/install.sh --with-agent

The wizard also accepts explicit non-interactive flags. Run ./scripts/setup.sh --help for the full list.

Verify the complete installation:

./scripts/doctor.sh
ccx models
ccx config
ccx

Give this repository to an agent

Claude Code reads CLAUDE.md; Codex reads AGENTS.md. Both contain the same safe installation protocol.

You can tell either agent:

Clone https://github.com/migueltorrezd/claudex, read its AGENTS.md or CLAUDE.md,
and install it. Do not read, print, copy, or commit OAuth credentials. If Codex
OAuth needs browser approval, stop and ask me to complete it. Run the doctor
script afterward and report the final model, effort, auth, service, and health state.

Usage

ccx                         # GPT-5.6 Sol, xhigh root-session effort
ccx bg                      # GPT-5.6 Sol, medium root-session effort
ccx bg --bg "Refactor it"  # launch that lane as a real Claude background agent
ccx terra                   # GPT-5.6 Terra
ccx luna                    # GPT-5.6 Luna
ccx 5.5                     # GPT-5.5
ccx 5.4                     # GPT-5.4
ccx mini                    # GPT-5.4 Mini
ccx spark                   # GPT-5.3 Codex Spark
ccx models                  # show all launcher aliases

All remaining arguments pass through to Claude Code:

ccx -p "Explain this repository"
ccx --effort high -p "Review this diff"
ccx bg --bg "Run the test suite and fix failures"

ccx bg selects the Sol/medium lane. It does not detach by itself. Add Claude Code's own --bg flag when you want a managed background agent, as shown above.

Configuration

The launcher supports these environment overrides:

VariableDefaultPurpose
CCX_CONFIG_FILE~/.config/claudex/configPersistent wizard configuration
CCX_MODELsolDefault main model alias or supported model ID
CCX_MAIN_EFFORTxhighNormal root-session effort
CCX_BG_MODELsolModel used by ccx bg
CCX_BG_EFFORTmediumRoot-session effort for ccx bg
CCX_SMALL_FAST_MODELgpt-5.6-sol[1m]Claude utility/background-request model
CCX_CONTEXT_WINDOW272000Auto-compaction boundary
CCX_PROXY_URLhttp://127.0.0.1:18765Local proxy URL
CCX_REAL_CLAUDEfirst claude on PATHClaude Code executable

Example:

CCX_MODEL=terra CCX_MAIN_EFFORT=high ccx

Environment variables and explicit command-line arguments override the saved configuration. Run ccx config to see the resolved defaults.

Effort and sub-agents

These are three separate controls:

  1. The root Claudex session uses xhigh by default.
  2. The ccx bg root session uses medium by default.
  3. Custom sub-agent definitions can set effort: high in their YAML frontmatter.

Install the included example with ./scripts/install.sh --with-agent, or copy examples/agents/claudex-worker.md into ~/.claude/agents/.

The setup wizard can select a different effort for this custom agent and safely renders that value during installation.

The launcher intentionally uses Claude Code's --effort session option instead of CLAUDE_CODE_EFFORT_LEVEL. The environment variable has higher precedence and would prevent a custom agent's effort: high frontmatter from overriding its parent session.

There is no CLAUDE_CODE_SUBAGENT_EFFORT variable. Built-in agents inherit the parent session's effort; editable custom agents can declare their own effort. The repository also does not force CLAUDE_CODE_SUBAGENT_MODEL, because that would override every agent's own model selection.

Why this is more than an alias

An alias that only runs claude --model gpt-5.6-sol does not create the connection. Claude Code still needs:

  • a running Anthropic-compatible proxy;
  • Codex OAuth stored by that proxy;
  • ANTHROPIC_BASE_URL and a local dummy auth value;
  • a concrete model for Claude Code's small/background requests;
  • a correct compaction boundary;
  • protection from non-streaming retries that can duplicate tool calls.

The launcher handles those pieces while leaving native Claude Code untouched.

It deliberately does not set:

  • ENABLE_TOOL_SEARCH=false, because loading every MCP tool definition up front can waste context;
  • CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY=3, because that is a throttle, not a quality improvement;
  • CLAUDE_CODE_SUBAGENT_MODEL, because it overrides per-agent model choices.

Models

At the time of writing, the upstream proxy recognizes these Codex model IDs:

  • gpt-5.6-sol
  • gpt-5.6-terra
  • gpt-5.6-luna
  • gpt-5.5
  • gpt-5.4
  • gpt-5.4-mini
  • gpt-5.3-codex
  • gpt-5.3-codex-spark
  • gpt-5.2

Recognition by the proxy does not guarantee access on your ChatGPT account. Unsupported account/model combinations are returned by the upstream service as an error. Treat the upstream model list as canonical because this list will age.

The [1m] suffix used by the launcher is a local Claude Code compaction hint. The proxy strips it before the upstream request. It does not magically increase your account's real context limit.

Updating and uninstalling

Update the proxy:

brew update
brew upgrade claude-code-proxy
brew services restart claude-code-proxy
./scripts/doctor.sh

Update Claudex:

git pull --ff-only
./scripts/setup.sh

Uninstall only the Claudex launcher and optional example agent:

rm "$HOME/.local/bin/ccx"
rm "$HOME/.claude/agents/claudex-worker.md"

Those commands are intentionally not automated. Review each path before deleting it. Removing Claudex does not remove Claude Code, Codex, the proxy, or OAuth credentials.

Security and limitations

Read SECURITY.md before changing the bind address.

  • The proxy is third-party software and is not affiliated with Anthropic or OpenAI.
  • It uses a compatibility bridge to the Codex backend. Upstream behavior, account eligibility, terms, quotas, and model names can change.
  • The local proxy has no incoming client authentication. Keep it bound to 127.0.0.1 unless you add your own firewall and authenticated reverse proxy.
  • ChatGPT subscription usage is still subject to plan limits. This is not unlimited or guaranteed access.
  • Features that depend on Anthropic-hosted services may not work through a custom base URL. See the upstream project's limitations for the current list.

Credits

Claudex would not exist without raine/claude-code-proxy, created and maintained by Raine with help from its contributors. The proxy performs the hard protocol translation, OAuth handling, streaming conversion, tool-call mapping, and service integration.

Please direct proxy bugs and compatibility questions to the upstream repository after checking that the issue reproduces without this launcher. See CREDITS.md for the full attribution.

License

The original files in this repository are released under the MIT License. claude-code-proxy is a separate MIT-licensed project owned by its respective contributors.

// faq

What is claudex?

Run Claude Code with GPT models through Raine's claude-code-proxy.. It is open-source on GitHub.

Is claudex free to use?

claudex is open-source under the MIT license, so it is free to use.

What category does claudex belong to?

claudex is listed under automation in the Claudeers registry of Claude-compatible tools.

1 views
26 stars
unclaimed
updated about 1 month ago

// embed badge

claudex on Claudeers
[![Claudeers](https://claudeers.com/api/badge/claudex-3.svg)](https://claudeers.com/claudex-3)

// retro hit counter

claudex hit counter
[![Hits](https://claudeers.com/api/counter/claudex-3.svg)](https://claudeers.com/claudex-3)

// reviews

// guestbook

0/500

// related in Automation & Workflows

🔓

The agent that grows with you

// automationNousResearch/Python230,654MIT[ claude ]
🔓

The API to search, scrape, and interact with the web at scale. 🔥

// automationfirecrawl/TypeScript167,815AGPL-3.0[ claude ]
🔓

🌐 Make websites accessible for AI agents. Automate tasks online with ease.

// automationbrowser-use/Python110,149MIT[ claude ]
🔓

An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message…

// automationbytedance/Python80,016MIT[ claude ]
→ see how claudex connects across the ecosystem