OpenAI ships an official Go CLI for its REST API, separate from Codex (github.com)
Output defaults to readable text with JSON, JSONL, raw and YAML options, and --transform extracts fields with GJSON syntax. Setting OPENAI_UNTRUSTED_STDIN=1 blocks reading files from piped input.
Install by Homebrew, release binary or Go 1.26.