OpenAI Codex
Use GPT-6, GPT-5.6, and Codex models through your ChatGPT plan.
Sign in with your ChatGPT account. Usage counts against your ChatGPT plan’s limits.
Sign in
codework auth login --openai-codexCodeWork opens the sign-in page in your browser and waits for the browser to return to localhost:1455. If that port is taken, paste the redirect URL from your browser when CodeWork asks for it.
No browser on this machine, such as over SSH? Use a device code instead. It needs no local port:
codework auth login --openai-codex --deviceTo store the login on a running codework serve instead of this machine, add --server ws://127.0.0.1:7433/rpc/v1.
Run
codework run --provider openai-codex --model gpt-5.6-luna "Explain this repository"Models
| Model | ID | Context |
|---|---|---|
| GPT-6.1 Sol | gpt-6.1-sol | 500K |
| GPT-6 Astra | gpt-6-astra | 272K |
| GPT-6 Sol | gpt-6-sol | 272K |
| GPT-6 Luna | gpt-6-luna | 272K |
| GPT-5.6 Sol | gpt-5.6-sol | 272K |
| GPT-5.6 Terra | gpt-5.6-terra | 272K |
| GPT-5.6 Luna | gpt-5.6-luna | 272K |
| GPT-5.3 Codex Spark | gpt-5.3-codex-spark | 128K |
Every model reasons and accepts images. See Catalog & prices for prices and thinking levels.
Check or remove the login
codework auth status --openai-codex
codework auth logout --openai-codexThe login renews itself when it expires. codework auth refresh --openai-codex renews it now.
Pricing
Usage counts against your ChatGPT plan’s limits. The cost in CodeWork’s usage summary is what the same tokens would cost at API rates. Use it to compare models. It isn’t what you’re billed.