{"schemaVersion":1,"id":"avc-67-openai-codex-cli","name":"OpenAI Codex CLI","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/avc-67-openai-codex-cli/","officialUrl":"https://github.com/openai/codex","isCatalog":false,"description":"Codex CLI is OpenAI's official terminal coding agent, working with a local repository, changing files, and running commands. Open-source code lets you study its implementation and extend the workflow through documented mechanisms.","tasks":["Implement and verify a task in a local project","Automate code changes from the terminal"],"categoryIds":["ai","integrations","software"],"subcategoryIds":["ai.cli","integrations.management","software.cli"],"tags":["Codex","CLI"],"aliases":[],"platforms":[],"stack":[],"compatibility":null,"pricing":"freemium","freeUsage":"The CLI and source code are available under Apache-2.0. Current OpenAI Help includes Codex in ChatGPT plans, including Free and Go, subject to the chosen plan's limits; the terminal CLI describes sign-in through a ChatGPT account. Codex Cloud is excluded from Free/Go. The CLI license does not provide unlimited cloud models.","paidUsage":"CLI access is included in eligible ChatGPT plans, such as Plus from $20 per month, with quotas; credits are available for additional usage. When signing in with an API key, models are billed separately at API rates, rather than against a ChatGPT subscription.","license":"Apache-2.0 for the CLI; model access and cloud capabilities are governed by OpenAI terms.","selectionGuide":{"purpose":"Implement and verify a task in a local project","chooseWhen":["Implement and verify a task in a local project","Automate code changes from the terminal"],"considerInstead":["When choosing for this topic, compare OpenAI Codex CLI with Gemini CLI. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare OpenAI Codex CLI with OpenCode. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":[],"limitations":["Costs and limits of free use: CLI access is included in eligible ChatGPT plans, such as Plus from $20 per month, with quotas; credits are available for additional usage. When signing in with an API key, models are billed separately at API rates, rather than against a ChatGPT subscription.","Terms of use: Apache-2.0 for the CLI; model access and cloud capabilities are governed by OpenAI terms.","This is the coding agent itself, rather than an additional skill.","Practical Windows operation depends on official support and sandbox mode; available source code does not mean zero model costs.","The local CLI and Codex Cloud have different access terms; Free/Go do not include Codex Cloud."],"faq":[{"question":"What can you use for free in OpenAI Codex CLI?","answer":"The CLI and source code are available under Apache-2.0. Current OpenAI Help includes Codex in ChatGPT plans, including Free and Go, subject to the chosen plan's limits; the terminal CLI describes sign-in through a ChatGPT account. Codex Cloud is excluded from Free/Go. The CLI license does not provide unlimited cloud models."},{"question":"What additional costs might arise with OpenAI Codex CLI?","answer":"CLI access is included in eligible ChatGPT plans, such as Plus from $20 per month, with quotas; credits are available for additional usage. When signing in with an API key, models are billed separately at API rates, rather than against a ChatGPT subscription."},{"question":"What terms of use matter for OpenAI Codex CLI?","answer":"Apache-2.0 for the CLI; model access and cloud capabilities are governed by OpenAI terms."},{"question":"How do you get started with OpenAI Codex CLI?","answer":"For the task “Implement and verify a task in a local project”: open the relevant project and let the agent inspect the affected implementation before making changes. Set a bounded task with completion criteria; review the proposed changes and how they address the requirement. Run the appropriate project checks and compare behavior before and after the change."},{"question":"How does CLI access differ from Codex Cloud?","answer":"OpenAI Help includes Codex in ChatGPT plans, including Free and Go, subject to the chosen plan's limits, and describes CLI sign-in through a ChatGPT account. Codex Cloud is separately available to eligible paid/workspace accounts and is excluded from Free/Go. API-key sign-in has its own billing and settings."}],"related":[{"id":"avc-68-gemini-cli","reason":"A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-85-opencode","reason":"A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-60-aider","reason":"A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://github.com/openai/codex","https://github.com/openai/codex/blob/main/LICENSE","https://learn.chatgpt.com/docs/pricing","https://developers.openai.com/api/docs/pricing","https://raw.githubusercontent.com/openai/codex/main/README.md","https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A repository, a description of one change, and a reproducible example of the expected behavior.","Project context: affected files, constraints, and the established validation method."],"steps":["For the task “Implement and verify a task in a local project”: open the relevant project and let the agent inspect the affected implementation before making changes.","Set a bounded task with completion criteria; review the proposed changes and how they address the requirement.","Run the appropriate project checks and compare behavior before and after the change."],"checks":["The change solves the stated task and does not touch unrelated files unnecessarily.","Investigate check failures; review generated code, configuration, and data access permissions."],"goal":"Example workflow with OpenAI Codex CLI: Implement and verify a task in a local project."},"sources":["https://github.com/openai/codex","https://github.com/openai/codex/blob/main/LICENSE","https://learn.chatgpt.com/docs/pricing","https://developers.openai.com/api/docs/pricing","https://raw.githubusercontent.com/openai/codex/main/README.md","https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan"],"checkedAt":"2026-10-04","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":["avc-59-anthropics-claude-code","avc-68-gemini-cli","avc-85-opencode","avc-60-aider"],"dataVersion":"cbbe7123b47a5ae80983","type":"Tool","kind":"tool","pricingNote":"Costs are divided between the free client and model computation. ChatGPT subscriptions and API keys have different limits and usage billing. Reading a repository locally does not mean running a cloud model locally; external MCPs, APIs, and infrastructure may also have their own costs.","notes":"This is the coding agent itself, rather than an additional skill. Practical Windows operation depends on official support and sandbox mode; available source code does not mean zero model costs.","labeledSources":[{"url":"https://github.com/openai/codex","label":"CLI source code and installation"},{"url":"https://github.com/openai/codex/blob/main/LICENSE","label":"Client license"},{"url":"https://learn.chatgpt.com/docs/pricing","label":"Codex and ChatGPT plans"},{"url":"https://developers.openai.com/api/docs/pricing","label":"Separate API pricing"},{"url":"https://raw.githubusercontent.com/openai/codex/main/README.md","label":"Official source"},{"url":"https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}