claude-nonstop

claude-nonstop › Guides

Use Codex with a Claude subscription or Claude API key

Codex speaks OpenAI's Responses API. claude-nonstop runs a local gateway that understands it, so setup points Codex at http://127.0.0.1:43117/v1 and Codex then runs on whichever line is next in your order: a Claude account, a ChatGPT account, an Anthropic key or an OpenAI key. Tool calls and streaming are translated on the way.

Set it up

  1. Install claude-nonstop. When Codex is on your computer, setup configures it automatically.
    # macOS and Linux
    curl -fsSL https://raw.githubusercontent.com/umer-jahangier/claude-nonstop/main/install.sh | sh
    
    # Windows (PowerShell)
    irm https://raw.githubusercontent.com/umer-jahangier/claude-nonstop/main/install.ps1 | iex
  2. If you installed Codex later, run claude-nonstop connect codex.
  3. Run codex or open the Codex app as usual. No OpenAI sign-in is needed.

Setup writes a model provider into ~/.codex/config.toml and selects it. Your earlier values are kept, and claude-nonstop uninstall puts them back.

model_provider = "claude-nonstop"

[model_providers.claude-nonstop]
name = "claude-nonstop"
base_url = "http://127.0.0.1:43117/v1"
wire_api = "responses"
experimental_bearer_token = "<gateway token>"
requires_openai_auth = false

What gets translated

On a Claude line, each Codex request is converted from the Responses API to Anthropic's Messages API and each answer back again. That includes Codex's function tools, its free-form tools such as apply_patch, tool results, images, reasoning and streaming. On an OpenAI key, a Responses request goes out exactly as Codex sent it.

Which model answers

A request for a model from the other service goes to that line's default model, which you can change under Settings on the web page or in config.json. A ChatGPT account answers with the models on its own list.

Before you rely on it

Anthropic and OpenAI each take a subscription sign-in only from their own client. Running Codex on a Claude subscription (or Claude Code on a ChatGPT one) isn't covered by their terms, and either could stop accepting it or act on the account. API keys have no such restriction.

Questions

Do I need an OpenAI account to use Codex with claude-nonstop?

No. Codex points at the local gateway with requires_openai_auth = false, so it runs on whichever line is next, including a Claude account or an Anthropic API key.

Does Codex keep its tools on a Claude account?

Yes. Function tools and free-form tools like apply_patch are translated to Anthropic tools and back, streaming included.

By , author of claude-nonstop · Updated

More guides