Using CLI Proxy for GPT-6 Astra | Shared Grok Conversation

can I use cli proxy in order to use gpt 6 astra inside claude code using the subscription?

Yes. That’s a real, widely used setup: a local Anthropic-compatible proxy sits between Claude Code and OpenAI’s Codex/ChatGPT backend so Claude Code keeps its UI, tools, subagents, and workflow while inference comes from GPT-6 Astra on your ChatGPT/Codex subscription, not Anthropic’s API and not pay-per-token OpenAI credits. Firecrawl

How it works

Claude Code talks Anthropic’s Messages API (/v1/messages). You point it at localhost instead of api.anthropic.com:

The proxy logs in with ChatGPT Plus/Pro (Codex OAuth), translates each request to Codex’s Responses API, and streams the reply back as Anthropic SSE. Claude Code cannot tell the backend changed. GitHub

That is subscription usage (Codex quota), not the OpenAI API meter.

Does GPT-6 Astra work yet?

Astra shipped around Sept 3, 2026. Proxy support landed quickly:

Tool Astra status
raine/claude-code-proxy Explicit support from v0.1.36 (gpt-6-astra and gpt-6-astra-fast). Confirmed working through a ChatGPT-authenticated Codex account. Claude-code-proxy.raine
CLIProxyAPI (router-for-me) Model catalog added immediately, but early builds cloaked as an old Codex client (codex-tui/0.146.0) and OpenAI rejected Astra (not supported when using Codex with a ChatGPT account). Use a current build that includes the 0.153.x client identity fix. GitHub

claude-code-proxy is the cleaner “just run Claude Code on Codex models” option right now. CLIProxyAPI is the bigger multi-provider gateway.

Example launch pattern with claude-code-proxy:

claude-code-proxy codex auth login
claude-code-proxy serve
ANTHROPIC_BASE_URL=http://127.0.0.1:18765 \
ANTHROPIC_AUTH_TOKEN=unused \
ANTHROPIC_MODEL=gpt-6-astra \
ANTHROPIC_SMALL_FAST_MODEL=gpt-5.6-luna \
claude

You can also map tiers, e.g. Opus → Astra, Haiku → a cheaper Codex model.

What actually works vs what breaks

Usually fine:

Watch for:

Terms / account risk

This is unofficial.

There is also a more “official-ish” path some writeups mention: OpenAI’s Codex plugin for Claude Code. If you care about ToS, start there before a community proxy.

Short answer: yes — use a current Claude↔Codex proxy (claude-code-proxy is the most Astra-ready), log in with ChatGPT/Codex OAuth, point Claude Code at localhost, set the model to gpt-6-astra. It works in practice; treat it as unsupported and quota/ToS-sensitive.

How to work with GPT-6 Astra in terminal

Use Codex CLI. That is the Claude Code equivalent: a terminal agent, with Astra as the model.

  1. Install
    • macOS / Linux:
    curl -fsSL https://chatgpt.com/codex/install.sh | sh
    

or

npm install -g @openai/codex
codex --version

You want 0.153.1+. Astra became selectable around 0.153.1 and the bundled default around 0.153.4. Blakecrosley

  1. Sign in (subscription)

    cd /path/to/your/repo
    codex
    

    Choose Sign in with ChatGPT (Plus / Pro / Business / Enterprise). That uses Codex quota on the plan, not API credits.

  2. Run Astra

    codex -m gpt-6-astra
    

or start codex, then:

/model

and pick gpt-6-astra.

  1. Daily loop (maps to Claude Code)
Claude Code Codex CLI
claude codex
/model fable /model → gpt-6-astra
CLAUDE.md AGENTS.md
plan mode /plan
permissions /permissions
status /status
background / subagents /agent

Example session:

cd ~/projects/app
codex -m gpt-6-astra

Then:

Find why checkout fails on empty carts and fix it. Run the tests.

Codex reads the repo, edits files, runs commands in its sandbox, and asks when it needs extra permission.

  1. Practical takeaway Claude decides and writes. Codex checks, argues, and takes the jobs Claude is bad at or too expensive for. Max 20x = conductor + implementer. OpenAI 5x = reviewer, adversary, rescuer, mill.