{
  "id": 16007804,
  "title": "OpenAI CLI",
  "url": "https://urgent.news/2026/10/22/openai-cli",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-22T05:23:11.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://github.com/openai/openai-cli"
  },
  "original_language": "en",
  "account": "Install the OpenAI CLI using Go version 1.26 or later. Place the binary in your Go bin directory and add it to your PATH if needed. Interactions with the CLI result in shortcuts being saved for future terminal sessions. In PowerShell, press Enter after openai images generate to open the picker. Bare openai checks for updates when input/output/error streams are terminals. It notifies users about updates at most once every seven days. Direct help, commands, completion, CI, and redirected streams bypass the check. Verify the installation method for verified Homebrew installations using brew upgrade --cask openai/tools/openai. For custom settings, use GOOS and GOARCH. The CLI does not install updates automatically. Checks for updates use public GitHub release metadata without API credentials, no more than once a day. Checks respect HTTPS_PROXY and NO_PROXY. You can disable checks and notices by setting OPENAI_CLI_NO_UPDATE_CHECK=1. The CLI operates on a resource-based command structure. Use --help to browse command groups and --help for detailed help pages. Tab completion supports group order, help topics, and file input paths. Successful JSON responses print readable text by default. Use --format json or --format jsonl for API data parsing. Upload files with explicit purpose, inspect metadata, and download contents. Save images with specific models, filenames, and output directories. Preview saved images without making API requests. Errors print actionable summaries to stderr. Use --format-error json for original API error details.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}