OpenAI Codex
Weâve created an improved version of OpenAI Codex, our AI system that translates natural language to code, and we are releasing it through our API in private beta starting today.
This launch post is outdated.

Update on May 16, 2025: We launched Codex, a cloud-based software engineering agent that can work on many tasks in parallel. Learn moreâ .â â (opens in a new window)â â (opens in a new window)â â (opens in a new window)
Update on April 16, 2025: We launched Codex CLI, our new open source local coding agent. To get started, please visit https://github.com/openai/codexâ (opens in a new window).
The OpenAI Codex models were deprecatedâ (opens in a new window) in March 2023. To learn about our latest coding models, please visit our docsâ (opens in a new window).
Codex is the model that powers GitHub Copilotâ (opens in a new window), which we built and launched in partnership with GitHub a month ago. Proficient in more than a dozen programming languages, Codex can now interpret simple commands in natural language and execute them on the userâs behalfâmaking it possible to build a natural language interface to existing applications. We are now inviting businesses and developers to build on top of OpenAI Codex through our API.
OpenAI Codex is a descendant of GPTâ3; its training data contains both natural language and billions of lines of source code from publicly available sources, including code in public GitHub repositories. OpenAI Codex is most capable in Python, but it is also proficient in over a dozen languages including JavaScript, Go, Perl, PHP, Ruby, Swift and TypeScript, and even Shell. It has a memory of 14KB for Python code, compared to GPTâ3 which has only 4KBâso it can take into account over 3x as much contextual information while performing any task.
GPTâ3âs main skill is generating natural language in response to a natural language prompt, meaning the only way it affects the world is through the mind of the reader. OpenAI Codex has much of the natural language understanding of GPTâ3, but it produces working codeâmeaning you can issue commands in English to any piece of software with an API. OpenAI Codex empowers computers to better understand peopleâs intent, which can empower everyone to do more with computers.
Once a programmer knows what to build, the act of writing code can be thought of as (1) breaking a problem down into simpler problems, and (2) mapping those simple problems to existing code (libraries, APIs, or functions) that already exist. The latter activity is probably the least fun part of programming (and the highest barrier to entry), and itâs where OpenAI Codex excels most.
OpenAI Codex is a general-purpose programming model, meaning that it can be applied to essentially any programming task (though results may vary). Weâve successfully used it for transpilation, explaining code, and refactoring code. But we know weâve only scratched the surface of what can be done.
Weâre now making OpenAI Codex available in private beta via our API, and we are aiming to scale up as quickly as we can safely. During the initial period, OpenAI Codex will be offered for free. OpenAI will continue building on the safety groundwork we laid with GPTâ3âreviewing applications and incrementally scaling them up while working closely with developers to understand the effect of our technologies in the world.


