OpenAI Codex

Codex API key (OpenAI)

PricePay for Codex usage based on API pricing

Codex with an API key is OpenAI Codex paid for at API pricing, for the CLI, SDK and IDE extension.

Codex API key pricing follows OpenAI’s API prices: OpenAI’s Codex pricing page says to “Pay for Codex usage based on API pricing” and calls the option “Great for automation in shared environments like CI”. Model availability follows the API models available to your key. With a key, Codex runs in the CLI, the SDK or the IDE extension; cloud-based features such as GitHub code review and Slack are not included. Per-token prices are on OpenAI’s own API pricing page.

Usage: “Pay for Codex usage based on API pricing”; “Great for automation in shared environments like CI”

Included for coding agents: Codex in CLI, SDK, or IDE extension; no cloud-based features (GitHub code review, Slack)

Checked against the source on October 5, 2026. Compare it with every other plan in the coding agent plans tracker.

Usage (vendor's wording)
"Pay for Codex usage based on API pricing"; "Great for automation in shared environments like CI"
Models in the tool
"Model availability follows the API models available to your key"
Agent features included
Codex in CLI, SDK, or IDE extension; no cloud-based features (GitHub code review, Slack)

Questions

How is Codex priced with an API key?
You pay for Codex usage based on API pricing.
What is the Codex API key option for?
OpenAI describes it as “Great for automation in shared environments like CI”.
Which models can I use with a Codex API key?
“Model availability follows the API models available to your key”.
Which Codex features work with an API key?
The CLI, SDK and IDE extension; cloud-based features such as GitHub code review and Slack are not included.

Sources

OpenAI Codex

View all
Aftergradient

What are you looking for?

Search commands, errors, tools