canirequire › No JS entry point › @openai/codex
Is @openai/codex ESM-only? Can you require() it?
Codex CLI is a coding agent from OpenAI that runs locally on your computer.
Latest version 0.153.4, published Sep 4, 2026. Markdown · JSON
No JS entry point No JavaScript entry point
@openai/codex does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
What to do
- Do not require() or import @openai/codex: it has no JavaScript entry point. Use it as a CLI (npx @openai/codex), a stylesheet, an asset, or a type-definition package as its README describes.
- TypeScript: no types are available for @openai/codex; declare the module yourself if you need them.
Does @openai/codex@0.153.4 actually load? Runtime test results
Runtime probe pending for this version. The values below are what package.json declares; they are refreshed once the probe runs.
| Runtime | require("@openai/codex") | import "@openai/codex" |
|---|---|---|
| Node.js 18 | depends | depends |
| Node.js 20 | depends | depends |
| Node.js 22 | depends | depends |
| Node.js 24 | depends | depends |
| Node.js 26 | depends | depends |
| Bun 1.4.0 | pending | pending |
Install failed in our sandbox: PROBE_TIMEOUT The rows above show what package.json declares.
How to import @openai/codex
ES modules (import)
import * as codex from "@openai/codex";CommonJS (require)
Not applicable.
Module format by version
Derived from the type, main and exports fields of every stable release on npm, corrected where a runtime test of that version contradicted them (185 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 0.111.0 – 0.153.4 | No JS entry point | Mar 5, 2026 |
Frequently asked
Is @openai/codex ESM-only?
@openai/codex@0.153.4 has no importable main entry. @openai/codex does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
Does @openai/codex ship TypeScript types?
No. @openai/codex ships no type declarations and there is no @types package for it.
Links
Other no js entry point packages
- type-fest 5.9.0No entry
- undici-types 8.10.2No entry
- node-releases 2.0.55No entry
- pnpm 12.3.4No entry
- csstype 3.2.3No entry
- @eslint/core 1.2.1No entry
- @octokit/types 18.0.0No entry
- @octokit/openapi-types 29.0.1No entry
Similar popularity
- jest-environment-jsdom 30.5.1Dual
- webpack-dev-middleware 8.3.0CommonJS
- babel-loader 10.1.1CommonJS
- @popperjs/core 2.11.8CommonJS
- change-case 5.4.4ESM-only
- boxen 8.0.1ESM-only
- underscore 1.13.8Dual
- i18next 26.4.2Dual