codexcli

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package codexcli registers a CLI-tool-backed provider that drives OpenAI's Codex CLI (`codex`) binary as the review engine. The user-facing name is `codex-cli` (selectable with `--cli codex` or `--provider codex-cli`); the underlying transport is a subprocess of the host CLI rather than an HTTPS API call, so no API key is required when `codex` is already authenticated locally (ChatGPT sign-in or OPENAI_API_KEY in the host CLI's own environment).

Layout naming: the `-cli` directory suffix is purely a developer signal that this is the CLI-backed sibling of the existing internal/provider/openai/ package (which talks to api.openai.com).

Codex is more agentic than Claude Code's `-p` or Gemini CLI's `-p` one-shot modes, so we drive its non-interactive `exec` subcommand and pin a read-only sandbox: a review must never let the agent modify the working tree or run write commands. Like the other CLI providers this is a PlainTextEmitter — the host CLI's output streams through verbatim, with no JSON-findings contract, so `remote pr` and `--json` do not apply.

Index

Constants

View Source
const Name = "codex-cli"

Name is what users type. Matches the directory suffix convention.

Variables

This section is empty.

Functions

func Metadata added in v1.17.0

func Metadata() provider.Metadata

Metadata describes the codex-cli backend for documentation. It needs no credential and never shells out to the host CLI, so it answers even on a machine where `codex` is not installed. See ADR-0039.

Binary is binaryName, the same constant this package's clireview.Spec is built from, so the published name cannot drift from the one exec.LookPath actually resolves.

Models is empty and DefaultModel is left blank on purpose: the host CLI owns model selection, and clireview.DefaultModel() synthesises a "binary@version" string for the cache key at runtime. That identifier is not a model, and publishing it as one would send readers looking for a model name they can pass to --model.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL