package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 20, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package codex runs the official Codex CLI as a child process.
type CLI struct {
Path string
}
CLI is a located codex executable.
Find locates codex in PATH.
Login runs `codex login` with home as its CODEX_HOME, so the login cannot
touch the user's real Codex directory.
type LoginOptions struct {
DeviceAuth bool
APIKey bool
AccessToken bool
}
LoginOptions selects the `codex login` method. At most one may be set; the
zero value is the default browser login.
Stdio is what the child process is attached to.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.