From bopen-tools
Sets up a local proxy so Claude Code runs on OpenAI's Codex backend as an escape hatch when Anthropic usage runs out. Diagnoses setup drift.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bopen-tools:claudexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`claudex` runs the **Claude Code harness — same tools, skills, UI, and session —
claudex runs the Claude Code harness — same tools, skills, UI, and session —
driven by OpenAI's GPT-5.6 Sol, billed against an existing ChatGPT/Codex
subscription. It is a deliberate escape hatch for when Anthropic usage runs
out: the normal claude command stays untouched, and claudex is a separate
zsh alias that reroutes one invocation through a local proxy.
claudex (zsh alias) ─▶ Claude Code CLI ─▶ CLIProxyAPI localhost:8317 ─▶ OpenAI Codex backend (your OAuth)
CLIProxyAPI is a local proxy that speaks the Anthropic Messages API on the
side facing Claude Code and the OpenAI Codex backend on the other. The
harness thinks it is talking to Anthropic; the proxy translates. Nothing about
the default claude login changes.
Reach for this skill in two situations:
claudex was working and now fails (empty model list,
401, connection refused, or it answers as Claude). Diagnose against the
troubleshooting reference.This is macOS + Homebrew. On other platforms, the proxy must be run by hand;
say so rather than pretending the brew steps apply.
The full, exact steps live in references/setup.md — load it and walk the user through, in order:
brew install cliproxyapi.openssl rand -hex 24, then
edit /opt/homebrew/etc/cliproxyapi.conf: bind to 127.0.0.1, set that key
under api-keys, and add the reasoning.effort: high override.brew services start cliproxyapi (registers a
launchd LaunchAgent; auto-starts at login). Re-run brew services restart cliproxyapi after any conf edit.cliproxyapi --codex-login opens a browser OAuth tab;
credentials land in ~/.cli-proxy-api/ and self-refresh.curl the proxy's /v1/models and confirm gpt-5.6-sol is
listed.claudex alias to ~/.zshrc, source it.claudex -p "Reply with exactly: claudex works."The interactive OAuth step (--codex-login) opens a browser and must be run
by the user — it is not a scriptable step. Hand it to them explicitly and wait
for confirmation before verifying.
Do not perform the prohibited pieces on the user's behalf: never paste OpenAI credentials into any field, never create the OpenAI account, and never invent or transmit the proxy key beyond writing it into the local conf and alias the user controls. Present the commands; the user runs the ones that authenticate.
After setup, type claudex instead of claude. Because the environment
variables are inline in the alias, they apply to that one invocation only —
plain claude keeps using the Anthropic login. Extra arguments pass through:
claudex --continue, claudex -p "…" all work. The startup banner reads
gpt-5.6-sol · API Usage Billing, and a "claude.ai connectors disabled" warning
is expected (the auth token overrides the claude.ai login for that session).
When claudex breaks, load references/troubleshooting.md
and match the symptom — empty model list, 401, connection refused on 8317, or
claudex answering as Claude. It maps each to the underlying drift (incomplete
OAuth, key mismatch, dead launchd service, unloaded alias) and the fix. This is
the volatile surface — proxy config, the gpt-5.6-sol model ID, and the OAuth
flow all live upstream and can change; keep this reference current when they do.
setupbopen-tools:setup carries a cliproxyapi row (used by claudex) in its CLI
audit, so a general harness audit surfaces a missing or dead proxy and points
back here. setup only detects and plans — this skill owns the actual steps and
the fixes.
npx claudepluginhub b-open-io/claude-plugins --plugin bopen-toolsManage the local gateway that puts ChatGPT/Codex subscription models in Claude Code's /model picker. Use for: "set up codex gateway", "codex models missing from /model", "switch to GPT/codex model isn't working", "codex gateway is down/broken", "stop routing through the gateway", or any setup/login/diagnosis of the Codex-in-Claude-Code integration.
Runs a locally patched version of the leaked Claude Code source with any Anthropic-compatible API (MiniMax, OpenRouter, LiteLLM). Fixes startup blockers and exposes the full Ink TUI interface.
Launch and manage OpenAI Codex CLI as a non-interactive coding sub-agent for code generation, refactoring, and review using ChatGPT Pro OAuth.