OpenAI releases official CLI for REST API access
·2026.10.22 09:00
Key point
The tool supports macOS, Linux, and Windows, allowing users to call specific API endpoints and manage files without writing application code.
Details
- Official command-line tool for the OpenAI REST API, available for macOS, Linux, and Windows.
- Supports image generation, file uploads, batch submissions, and JSON output for scripting.
- Distinguished from Codex CLI, which is designed for coding agents to read, edit, and debug code.
- Installation via prebuilt binaries, Homebrew, or Go 1.26 or later.
- Authentication uses OPENAI_API_KEY for standard requests and OPENAI_ADMIN_KEY for admin endpoints.
- Commands follow API resource structure, with options for JSON, JSONL, or raw output formats.
- Includes shell completion, command insertion shortcuts, and local token counting utilities.
- Licensed under Apache License 2.0; pull requests limited to repository collaborators.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.