# OpenAI releases an official CLI for its REST API

> Original title: OpenAI CLI

- Source: Hacker News · AI (150+ points)
- Published: 2026-10-22T05:23:11.000Z
- Bad Influence: https://badinfluence.news/items/trdf4jm1my5gxxh0qeyo97ksk
- Original: https://github.com/openai/openai-cli

## Summary

OpenAI releases an official command-line interface for its REST API, installable through Homebrew or Go. The CLI uses a resource-based command structure, requires an OPENAI_API_KEY for standard endpoints and an OPENAI_ADMIN_KEY for admin endpoints, and saves generated images to ~/Downloads/gpt-images/ by default using the gpt-image-2.5-sunburst model.
