canirequire

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

  1. 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.
  2. TypeScript: no types are available for @openai/codex; declare the module yourself if you need them.
Latest
0.153.4 (Sep 4, 2026)
Module format
No JS entry point
Last CommonJS version
n/a
TypeScript types
None
Node engines
>=16
Weekly downloads
21.1M
License
Apache-2.0

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.

Runtimerequire("@openai/codex")import "@openai/codex"
Node.js 18dependsdepends
Node.js 20dependsdepends
Node.js 22dependsdepends
Node.js 24dependsdepends
Node.js 26dependsdepends
Bun 1.4.0pendingpending

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).

VersionsFormatFirst published
0.111.0 – 0.153.4No JS entry pointMar 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

Similar popularity