OpenAI CLI lets developers call the OpenAI API from the terminal
OpenAI documents an openai command-line tool, installed with Homebrew or Go, for calling the API from a terminal or shell script, including Responses, image and speech generation, and Admin API endpoints. It replaces the legacy openai command older Python SDKs installed.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact No impactNo decision needed: this is an optional developer tool with no cost or contract change.
Engineer
What to change, what breaks, what to test Worth knowingInstall with brew install openai/tools/openai for scripted API calls and Admin API tasks. If openai still resolves to the legacy command from an older Python SDK, fix your PATH so scripts call the new binary.
General consumer
Using ChatGPT, not the API No impactNothing to do: this is a command-line tool for developers and does not affect ChatGPT.
OpenAI now publishes an official command-line tool for its API, the openai command, documented in the API docs under SDKs and CLI. It installs with Homebrew (brew install openai/tools/openai) or Go 1.25 or later (go install github.com/openai/openai-cli/cmd/openai@latest), reads OPENAI_API_KEY (or OPENAI_ADMIN_KEY for Admin API endpoints, and OPENAI_BASE_URL for another host), and prints results as JSON, JSONL, YAML and other formats.
The docs position it for repeatable terminal and scripted work: generating images or speech to local files, extracting structured data to JSONL, running Responses requests with files, computer use and web context, and creating projects and API keys through the Admin API. Older versions of the Python SDK installed a different, legacy openai command; a shell that still resolves that binary will not match the new tool’s behaviour.
Date. The docs page is undated. The date is that of the Hacker News story that surfaced it (October 22, 2026); the tool may have been published slightly earlier.
Topics: Images, audio and video
Terms on this page: Legacy model