@openai/codex-sdk install docs/package metadata omit runtime CLI dependency
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js, typescript
- Domain
- developer-experience, documentation
Research direction
Inspect the TypeScript SDK README and the SDK package metadata, then trace the runtime lookup of @openai/codex/package.json. Reproduce the documented npm install followed by new Codex(); done when the package relationship is declared or the README explicitly installs @openai/codex and its optional dependencies.
Written by the indexing model from the issue text.
Description
What happened?
The TypeScript SDK README says to install only the SDK package:
npm install @openai/codex-sdk
The quickstart then constructs new Codex(). However, the SDK runtime resolves the CLI package with:
moduleRequire.resolve("@openai/codex/package.json")
and throws if @openai/codex and its optional platform dependencies are not installed:
Unable to locate Codex CLI binaries. Ensure @openai/codex is installed with optional dependencies.
The SDK package metadata currently has no dependencies, peerDependencies, or optionalDependencies entry for @openai/codex, so installing @openai/codex-sdk alone appears insufficient for the README quickstart.
Expected behavior
Either the SDK package should declare the required runtime CLI dependency relationship, or the README installation section should explicitly tell users to install @openai/codex alongside @openai/codex-sdk before using new Codex().
Additional context
I searched open issues and PRs for terms including Unable to locate Codex CLI binaries, @openai/codex-sdk dependency, and related install/package metadata queries, and did not find an existing open item that appears to cover this SDK install mismatch.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·