3,652 prompts from top AI collections
← Back to Market
[LIVE] [m0n0x41d/claudex] 2 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,183 characters
Status: [LIVE] Endpoints found: https://chatgpt.com/backend-api/codex https://chatgpt.com/backend-api/codex/models?client_version=1.0.0 Source: https://github.com/m0n0x41d/claudex # claudex Run [Claude Code](https://github.com/anthropics/claude-code) over your ChatGPT subscription. `claudex` is a local proxy that translates Anthropic Messages API to the OpenAI Responses API used by the Codex backend, and authenticates with your ChatGPT Plus/Pro account via the same OAuth device flow the `codex` CLI uses. Your Claude Code stays unchanged — it just points at `ANTHROPIC_BASE_URL=http://127.0.0.1:<port>` and talks to the proxy. > Status: works for me, not battle-tested. SSE event shape from the Codex backend drifts; expect rough edges around tool-use and reasoning streams. ## Install ```bash cargo install --git https://github.com/m0n0x41d/claudex ``` or from a clone: ```bash cargo install --path . ``` ## Use ```bash claudex auth # one-time: ChatGPT device-flow login claudex init # write default config to ~/.claudex/config.yaml claudex # spawn the proxy and run `claude` through it claudex status # show current token state claudex --resume <session_id> # any unknown args are forwarded to `claude` claudex -- --print "hello" # use `--` to be explicit ``` Arg order to `claude`: `claude.default_args` from config, then whatever you passed to `claudex`. `claudex` with no subcommand binds an ephemeral port, exports `ANTHROPIC_BASE_URL` + a dummy `ANTHROPIC_API_KEY`, then `exec`s `claude` with whatever args you pass after it. When `claude` exits, the proxy is dropped. No daemon, no persistent ports. Logs go to `~/.claudex/claudex.log` while `claude` is running (stderr is left alone so the TUI stays clean). `tail -f ~/.claudex/claudex.log` to watch traffic. If `claude` is already signed in to claude.ai, run `claude /logout` inside it once and answer **No** to the API key approval prompt — otherwise the claude.ai token takes precedence over the proxy. ## Config `~/.claudex/config.yaml`: ```yaml proxy: bind: 127.0.0.1 port: 0
Download .txt