Standalone coding agent CLI and embeddable SDK platform · Official, actively developed large-scale project; inference: mature engineering signals include extensive cross-platform CI, multiple distribution channels, SDKs, and a large public repository, but supplied activity dates extend into 2026 and cannot be reconciled with the analysis context.

openai/codex

Apache-2.0 OpenAI coding-agent platform centered on the standalone Codex CLI, with desktop and IDE entry points, Python and TypeScript SDKs, structured and streaming turns, persistent sessions, model-visible tools, and OS-specific sandbox enforcement; it is an alternative or companion to Claude Code rather than a Claude Code extension.

software engineeringcoding agentsdeveloper toolscommand-line interfacesagent SDKssandboxingtool executionobservabilityIDE toolingdesktop applications
Routing score
80.0
Readiness
Ready for direct end-user installation and application embedding according to first-party documentation, with authentication required and sandbox, permissions, network policy, and telemetry configuration needing environment-specific review.
License
Apache-2.0
Maintenance
active
Components
17
Revision
0

Selection

Select when

  • You want an OpenAI coding agent that runs in a terminal.
  • You need first-party Python or TypeScript APIs around agent threads and turns.
  • You need streamed tool, item, file-change, and usage events.
  • You need JSON-schema-constrained final output.
  • You need resumable local agent sessions.
  • You need to pass local screenshots or diagrams into a coding turn.
  • You need host-controlled environment variables and configuration overrides.
  • You need configurable filesystem permissions and OS-specific sandbox enforcement.
  • You need MCP or dynamic-tool adaptation within the Codex host.
  • You want configurable OpenTelemetry export for agent activity.
  • You want a standalone peer tool to Claude Code rather than a Claude extension.

Boundaries

Avoid when

  • You specifically need behavior injected inside Claude Code.
  • You need a native Claude Code plugin, hook, slash command, or Agent Skill.
  • You require a verified no-network or no-telemetry deployment without reviewing configuration.
  • You must safely process untrusted repositories using only the supplied secure devcontainer defaults.
  • You require identical sandbox semantics across macOS, Linux, Windows, WSL1, and WSL2.
  • You cannot use a ChatGPT login or API-key authentication path.
  • You cannot install a local executable or allow an SDK to spawn one.
  • You require the TypeScript SDK on a Node.js version below 18.
  • You need supplied evidence of an independent security audit or complete privacy assessment.
  • You need fully verified present-day activity metadata because the supplied timestamps extend into 2026.

Strengths

Capabilities

Runs an OpenAI coding agent locally through a terminal CLI.Offers standalone installers, npm distribution, Homebrew distribution, and downloadable platform binaries.Supports ChatGPT-account authentication and API-key authentication.Provides a Python SDK for starting threads, running turns, streaming progress, and controlling workspace access.Provides a TypeScript SDK that spawns the Codex CLI and exchanges JSONL events over standard input and output.Supports repeated turns within a persistent thread.Persists TypeScript SDK sessions under the Codex home directory for later resumption.Streams structured intermediate events including tool calls, completed items, file changes, and token usage.Supports JSON-schema-constrained final responses in the TypeScript SDK.Accepts local image inputs alongside text prompts in the TypeScript SDK.Allows applications to select a working directory and optionally bypass the Git-repository check.Allows the TypeScript host to replace the inherited process environment and pass structured or raw configuration overrides.Implements host-facing tool models, discovery helpers, MCP and dynamic-tool adaptation, and shared executable-tool contracts.Applies filesystem and network policies through platform-specific sandbox implementations.Protects Git metadata and the Codex configuration directory from writes under documented macOS workspace-write behavior.Uses bubblewrap or a bundled fallback for applicable Linux sandbox policies, with startup warnings for degraded prerequisites.Supports documented elevated and restricted-token Windows sandbox backends with policy-dependent enforcement.Includes a stricter devcontainer profile with an outbound allowlist firewall and Linux bubblewrap support.Provides configurable OpenTelemetry logs, traces, metrics, session events, and W3C trace-context propagation.Uses Bazel and Cargo workflows for cross-platform formatting, linting, tests, release builds, and remote-environment checks.

Risk profile

Risks and limitations

  • Uncertainty: only selected first-party README files were supplied, so command breadth, default configuration, approval UX, SDK implementation, extension API, and many security-sensitive code paths were not directly inspected.
  • Uncertainty: repository update and push timestamps extend into 2026 relative to this analysis context, so recency, release status, issue counts, and adoption signals cannot be independently reconciled.
  • The supplied files do not document any native Claude Code integration; classification as a companion is an inference based on its standalone CLI and SDK form.
  • Authentication requires either a supported ChatGPT account flow or additional API-key setup.
  • The TypeScript SDK requires Node.js 18 or newer and works by spawning the Codex CLI rather than as a self-contained agent runtime.
  • Sandbox behavior differs by operating system, selected backend, and policy shape; unsupported policies can fail closed or use documented legacy semantics.
  • WSL1 cannot use the bubblewrap sandbox path, while WSL2 follows the normal Linux path.
  • The secure devcontainer explicitly permits DNS exfiltration and warns that allowed HTTPS destinations can also carry data from untrusted repositories.
  • Its secure devcontainer relaxes Docker's outer seccomp and AppArmor controls and requires NET_ADMIN and NET_RAW so the inner sandbox and firewall can operate.
  • OpenTelemetry can export prompts, account metadata, business events, traces, logs, or metrics when configured; exact defaults and redaction behavior were not established by the supplied files.
  • Raw SDK configuration overrides can alter permissions and network behavior, placing security responsibility on the embedding application.
  • No independent security audit, comprehensive privacy statement, supported-version matrix, or measured agent-quality benchmark was supplied.

Codex documents OS-specific sandboxing: macOS Seatbelt, Linux Landlock or bubblewrap with a bundled fallback, and policy-dependent Windows elevated or restricted-token backends. Some unsupported policy shapes fail closed. The secure devcontainer adds an outbound allowlist firewall but explicitly does not prevent DNS exfiltration or exfiltration through allowed HTTPS destinations, and it relaxes outer Docker controls to enable the inner sandbox. Security therefore depends on chosen permissions, platform support, network rules, and host configuration; no independent audit was supplied.

Component inventory

17 documented components

command-line application

Codex CLI

Local OpenAI coding agent for terminal use.

README.md
desktop application entry point

Codex App

Launches the Codex desktop app experience from the CLI.

README.md
editor extension

Codex IDE integration

Codex integration documented for VS Code, Cursor, and Windsurf.

README.md
hosted service

Codex Web

Cloud-based Codex agent available through ChatGPT.

README.md
Python SDK

OpenAI Codex Python SDK

Starts Codex threads, runs turns, streams progress, authenticates, and controls workspace access.

sdk/python/README.md
TypeScript SDK

Codex TypeScript SDK

Embeds Codex by spawning the CLI and exchanging structured JSONL events.

sdk/typescript/README.md
container workflow

Secure customer devcontainer

Runs Codex in a project container with bubblewrap and allowlist-based outbound controls.

.devcontainer/README.md
Rust module

codex-core

Implements Codex business logic and platform sandbox-policy integration for Rust UIs.

codex-rs/core/README.md
observability module

codex-otel

Provides OpenTelemetry providers, session events, metrics, and trace-context helpers for Codex.

codex-rs/otel/README.md
tool-hosting module

codex-tools

Shared Rust models, adapters, discovery helpers, and execution contracts for model-visible tools.

codex-rs/tools/README.md
GitHub Actions workflow

Bazel verification workflow

Runs the main pre-merge and main-branch Bazel test and clippy checks.

.github/workflows/bazel.yml
GitHub Actions workflow

Lightweight Cargo PR workflow

Runs formatting, dependency-shear, and argument-comment checks for pull requests.

.github/workflows/rust-ci.yml
GitHub Actions workflow

Full Cargo post-merge workflow

Runs cross-platform clippy, nextest, release builds, lints, and remote-environment tests.

.github/workflows/rust-ci-full.yml
release workflow

rusty_v8 release workflow

Builds and publishes target-specific rusty_v8 archives and bindings.

.github/workflows/rusty-v8-release.yml
release command

npm package staging workflow

Stages Codex CLI, responses proxy, and SDK npm tarballs with native artifacts.

codex-cli/scripts/README.md

Technical profile

Requirements and configuration

Repository
openai/codex
License
Apache-2.0
Primary Language
Rust
Distribution
Standalone installers, npm package, Homebrew cask, GitHub release binaries, Python package, and TypeScript SDK.
Cli Package
@openai/codex
Typescript Sdk
@openai/codex-sdk; Node.js 18+; spawns the CLI and exchanges JSONL over stdin/stdout.
Python Sdk
openai-codex; supports thread creation, turns, progress streaming, workspace control, and multiple authentication flows.
Authentication
ChatGPT browser or device-code login and API-key login are documented.
Session Storage
The TypeScript SDK documents persisted threads under ~/.codex/sessions.
Structured Io
Streaming structured events, token usage, local-image inputs, and JSON-schema-constrained final responses are documented.
Tooling
Host models and adapters cover MCP, dynamic tools, code-mode augmentation, discovery, schemas, and executable-tool contracts.
Sandboxing
Seatbelt on macOS; Landlock or bubblewrap on Linux; elevated or restricted-token Windows backends according to policy support.
Observability
Configurable OpenTelemetry logs, traces, metrics, session events, W3C trace context, OTLP exporters, and in-memory test metrics.
Ci
Bazel PR tests and clippy plus post-merge Cargo clippy, nextest, release builds, and cross-platform checks are documented.
Claude Code Relation
Inference: standalone alternative or companion executable with no supplied evidence of native Claude Code extension points.

Classification

How it enters the stack

Standalone ApplicationExternal Cli LibraryTool Surface

Evidence: Codex installs and runs as its own CLI, while Python and TypeScript SDKs embed or spawn it and its host exposes model-visible tools. No native Claude Code plugin, hook, or skill is documented; inference: it runs alongside Claude Code as an alternative or companion.

Runs Alongside · low setup effort · high confidence · automated

Evidence and risk

Primary sources

first_party_fileREADME.mdhttps://github.com/openai/codex/blob/main/README.md
first_party_filecodex-rs/README.mdhttps://github.com/openai/codex/blob/main/codex-rs/README.md

Routing context

Conflicts, complements, and synergies

integrates_with

gh_amelnagdy_delegate_skills

The codex-delegate skill launches the local Codex CLI as an implementer, supports workspace-write, read-only, and session resume, and normalizes its result.

high confidence
alternative_to

gh_apache_maka

Both are standalone coding-agent platforms with local CLI operation, model-visible tools, sandbox controls, persistent sessions, SDK or runtime seams, and evaluation-oriented infrastructure; neither is evidenced as a Claude Code extension.

high confidence
peer_of

gh_nousresearch_hermes_agent

Inference: both are standalone model-backed agent platforms with terminal operation and tool execution, though Hermes emphasizes multi-provider, memory, messaging, and automation features.

medium confidence
bundles_and_integrates

gh_omacom_omarchy

Omarchy provisions the Codex CLI and includes a Codex collector and shared agents panel for its usage records.

high confidence
related_to

gh_openai_codex_plugin_cc

Inference from the catalog entry: codex-plugin-cc brings Codex review and delegation into Claude Code, while this repository supplies the standalone Codex agent platform; the supplied repository files do not directly document that plugin.

medium confidence
integrates_with

gh_othmanadi_planning_with_files

First-party files document a native Codex plugin and hooks that use the same planning state, attestation, selectors, compaction handling, and gate-related behavior.

high confidence
integrates_with

gh_rtk_ai_rtk

RTK documents Codex support through RTK.md awareness guidance referenced from AGENTS.md rather than a programmatic hook.

high confidence
integrates_with

gh_timharris707_modeldeck

ModelDeck monitors Codex CLI usage through codex app-server and activates isolated CODEX_HOME profiles for new Codex sessions.

high confidence