OpenAI releases open source Codex Security CLI and TypeScript SDK

OpenAI has released an open source command-line interface and TypeScript software development kit for Codex Security, giving developers more practical ways to find, validate, and fix vulnerabilities in their code.

I love open source software, so I am pleased to see OpenAI making these tools publicly available rather than keeping every part of the Codex experience locked behind a proprietary interface. Developers can inspect the integration code, contribute improvements, report problems, and adapt the software to fit their own workflows.

The new Codex Security package can scan repositories, review code changes, track findings over time, and run security checks inside continuous integration pipelines. This should make the service more useful for developers who spend most of their time in a terminal and do not want to open another dashboard whenever they need to examine a project.

OpenAI says Codex Security requires Node.js 22 or later, Python 3.10 or later, and access to the underlying Codex Security service. Developers can install the package through npm, sign in, and then scan the current repository.

The basic setup uses three commands:

npm install @openai/codex-security

npx codex-security login

npx codex-security scan .

For automated environments, developers can use an OpenAI API key instead of signing in interactively. That makes the CLI suitable for continuous integration systems, including workflows that scan code when someone opens a pull request, pushes a commit, or prepares a new release.

OpenAI is also providing a TypeScript SDK for organizations that want to incorporate Codex Security into internal development tools. A developer can create a Codex Security instance, run it against a repository, retrieve the location of the resulting report, and close the session when the work is complete.

This opens the door to more customized security workflows. A company could create an internal dashboard for scan results, attach reports to software builds, notify developers when a serious issue appears, or require a security review before allowing a deployment to continue.

Security scanning is hardly new, of course. Developers already have access to static analysis tools, dependency scanners, code linters, and services that search for exposed credentials. The appeal of Codex Security is its promise to go beyond producing another long list of warnings.

OpenAI says the service can find potential vulnerabilities, validate whether they represent genuine risks, and help developers fix them. That validation step could prove valuable because traditional security tools sometimes overwhelm teams with findings that are technically possible but unlikely to affect the actual application.

A security report is only useful when developers can understand it and take action. If Codex Security can reliably distinguish serious vulnerabilities from background noise, it could save teams a considerable amount of time.

The ability to suggest fixes also makes sense as an extension of Codex. OpenAI already offers tools that can read, explain, and modify code. Applying those capabilities to security issues is a logical next step, especially as developers increasingly use AI to create production software.

Still, nobody should allow an AI tool to make sensitive security changes without review. A proposed fix could break an application, alter expected behavior, or address only part of a vulnerability. Authentication systems, encryption code, access controls, and payment features deserve careful human examination regardless of how confident an automated tool appears.

Developers should treat Codex Security as another capable reviewer rather than an unquestionable authority. Its findings should be tested, and its patches should pass through the same code review process as changes written by a human developer.

Organizations must also investigate how repository data is handled before scanning proprietary software. The CLI and SDK are open source, but the underlying Codex Security service still comes from OpenAI. Companies dealing with confidential code will need to confirm that the service satisfies their privacy, compliance, and data retention requirements.

Look, OpenAI has released the tools used to access and integrate Codex Security, but it has not turned the entire service into a self-hosted open source vulnerability scanner. Developers still need access to Codex Security, and the actual analysis depends on OpenAI.

Even with that limitation, this is a release worth celebrating. Open source command-line tools give developers more control than a closed web interface, while the TypeScript SDK allows teams to build useful integrations instead of waiting for OpenAI to support every possible workflow.

OpenAI deserves credit for recognizing that developers want flexibility. A security product becomes much easier to adopt when it works with existing repositories, terminals, scripts, and continuous integration systems.

The company could have restricted Codex Security to its own interface and forced users into a single workflow. Instead, it is giving developers building blocks that can be examined and extended. As someone who loves open source, I hope OpenAI continues moving in this direction with more of its developer tools.

The timing also makes sense. AI coding assistants can produce large amounts of code quickly, but faster development does not automatically result in safer software. In some cases, it could create more code for already busy security teams to review.

Using AI to help inspect AI-generated code may sound circular, but it could become an important part of modern software development. Developers will still need testing, established security tools, and human judgment. Codex Security is not a replacement for those safeguards.

What OpenAI has created is another layer of review that can fit directly into the development process. The open source CLI and TypeScript SDK make that layer more accessible, flexible, and useful.

Its long-term value will depend on the accuracy of its findings and the quality of its proposed fixes. For now, however, OpenAI has taken a promising security service and made it easier for developers to use on their own terms. That is good news for Codex users and for open source software.

Support independent tech journalism

NERDS.xyz is independently owned and operated. If you enjoy my coverage of Linux, AI, hardware, cybersecurity, and tech culture, consider supporting the site on Ko-fi.

Support NERDS.xyz
Written by

Brian Fagioli

Technology journalist and founder of NERDS.xyz

Brian Fagioli is a technology journalist and founder of NERDS.xyz. A former BetaNews writer, he has spent over a decade covering Linux, hardware, software, cybersecurity, and AI with a no nonsense approach for real nerds.

Leave a Comment