<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/WPTQ9BGlf" -->

---
title: OpenAI CLI | daily.dev
description: This is the official OpenAI CLI for the OpenAI REST API, installable via Homebrew or Go 1.26+. It follows a resource-based command structure like `openai...
canonical: https://daily.dev/posts/openai-cli-wptq9bglf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: OpenAI CLI | daily.dev
og:description: This is the official OpenAI CLI for the OpenAI REST API, installable via Homebrew or Go 1.26+. It follows a resource-based command structure like `openai...
og:url: https://daily.dev/posts/openai-cli-wptq9bglf
og:image: https://api.daily.dev/og/posts/WPTQ9BGlf.png
og:image:alt: OpenAI CLI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI CLI

**[Hacker News](https://daily.dev/sources/hn)** · 11 min read · 17 upvotes · 0 comments

## Summary

This is the official OpenAI CLI for the OpenAI REST API, installable via Homebrew or Go 1.26+. It follows a resource-based command structure like `openai responses create --model gpt-5.5`, and supports admin endpoints, file uploads, and image generation (saving by default with the `gpt-image-2.5-sunburst` model when no model is specified). It includes update notices, mutual TLS support (currently in beta), custom headers via `OPENAI_CUSTOM_HEADERS`, and tab completion with command insertion. The `images create-variation` command has been retired in favor of `images edit`.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/openai/openai-cli>

## Questions this post answers

### How do I install the official OpenAI CLI?

Install it with Homebrew using `brew install openai/tools/openai`, or with Go 1.26 or later using `go install github.com/openai/openai-cli/cmd/openai@latest`. The Go install places the binary in `$HOME/go/bin` or `$GOPATH/bin`, which may need to be added to your PATH manually.

_Developers setting up CLI tooling can track releases like this one on daily.dev._

### How do I make an authenticated request with the OpenAI CLI?

Export your API key as `OPENAI_API_KEY`, then run a command like `openai responses create --input "Say this is a test" --model gpt-5.5`. Admin-level endpoints instead require `OPENAI_ADMIN_KEY` and commands such as `openai admin organization usage completions` with `--start-time`, `--end-time`, and `--bucket-width` flags.

_Developers scripting against the OpenAI API can follow tool updates like this on daily.dev._

### What happened to the openai images create-variation command in the OpenAI CLI?

It has been retired and is no longer available. To create an image variation, use `images edit` with a GPT Image model and a prompt instead.

_Developers migrating CLI scripts after breaking changes can track tool updates on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 3 discussions and 93 comments across hackernews (as of 2026-10-22).

**TL;DR:** Reaction is mostly skeptical, with a long tangent about whether OpenAI's tooling (and software generally) is 'vibecoded' and poorly reviewed, plus confusion over how this CLI differs from Codex and why the README doesn't explain its purpose.

**Sentiment:** 10% positive · 25% mixed · 65% skeptical

**The case for**

- Some see it as a reasonable, low-cost thing to ship given how cheap it was to build.
- A few argue it's simply a useful, curl-like wrapper with auth/token handling that's nicer than crafting raw API requests.

**The pushback**

- Many argue OpenAI's tooling is routinely vibecoded with poor review, leading to avoidable bugs and a history of deprecating things quickly.
- Several found the README/description inadequate, failing to explain what the tool is for or how it differs from Codex.
- Some see the proliferation of similarly named OpenAI products (Codex vs this CLI) as confusing and a sign of chaotic product management.
- One commenter raised (and was pushed back on) a concern that part of the code looked like a potential backdoor.

**By community**

- hackernews (heated): A large side-debate split between people who think AI-driven development and unreviewed 'vibecoding' are becoming inevitable/fine and those who see it as a serious quality and trust problem, alongside confusion about the CLI's purpose versus Codex.

**Hottest debate:** Whether 'vibecoded', largely unreviewed AI-generated software (including this CLI) is an acceptable new normal or a sign of declining software quality and trust.

**Open questions**

- How does this CLI's functionality and audience actually differ from Codex in practice?
- Does using the CLI consume subscription quota or separate API credits?
- Why does OpenAI lack an API for managing ChatGPT chat history despite shipping this CLI quickly?

**Highlights**

> Be careful getting too deep in OpenAI tooling because they end up deprecating almost everything in under two years, sometimes without even a formal notice. Everything they make these days looks to be strongly vibecoded without a decent review or functional testing. This leads to basic avoidable bugs that annoy vast numbers of users. Not only this, but when you point out an issue to them on GitHub, they have a history of blocking the reporting user instead of tackling the technical issue.
> — [throw20261022 on hackernews · 6 comments](https://news.ycombinator.com/item?id=50191829)

> 2 trillion dollar company can't put 1 single sentence describing what something is, why it's useful, what it's for - instead barfs technical jargon. It's like if someone handed you an arcane set of page 20-40 of an IKEA assembly manual and expected you to be excited. About what? Exactly?
> — [bluegatty on hackernews · 4 comments](https://news.ycombinator.com/item?id=50192625)

> It's kind of interesting that they're releasing this, because anyone with access to the OpenAI RestAPI has probably already vibe coded an equivalent to this. It's a trivial thing to bootstrap.
> — [Traster on hackernews · 1 comments](https://news.ycombinator.com/item?id=50192687)

> For a site focused on technical users, seems like a lot of people in this thread are completely lost at the idea that a single service may offer multiple pieces of software dedicated to specific use-cases. codex: OpenAI's agent harness. The thing you typically want to interact with when you want an agent powered by OpenAI models to do stuff on your machine. Abstracts the low-level functionality of their API so you don't have to worry about it. openai-cli: A simple CLI exposing low-level operations against OpenAI's REST API. The thing you'd use for creating lower-level scripts to directly call the completions API, administer accounts, etc. Honestly, this is obvious by the name alone. If it's not clear to you, then this isn't for you. No need to get worked up about OpenAI releasing a piece of software where you're not the audience.
> — [nater5000 on hackernews · 1 comments](https://news.ycombinator.com/item?id=50195141)

> it's a zero dollar company. OpenAI is a virus. It's a liability. The code almost certainly contains some trivial backdoors, since their entire infrastructure is backdoored. Edit: look at this crap for example: https://github.com/openai/openai-cli/blob/main/scripts/run (just the first file I looked at.) it's obviously half of a backdoor. Some other process somewhere happens to give the other half.
> — [logicallee on hackernews · 1 comments](https://news.ycombinator.com/item?id=50192648)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50191507) · 182 points · 93 comments
- [hackernews](https://news.ycombinator.com/item?id=48062694) · 3 points · 0 comments
- [hackernews](https://news.ycombinator.com/item?id=50175160) · 2 points · 0 comments

## Similar posts on daily.dev

- [Untitled](https://daily.dev/posts/untitled-kckcjr4lw) · SitePoint · 0 upvotes · 0 comments
- [Free AI on Your Mac](https://daily.dev/posts/free-ai-on-your-mac-yklinvgqt) · Hacker News · 0 upvotes · 0 comments
- [Generate and edit images directly in Copilot](https://daily.dev/posts/generate-and-edit-images-directly-in-copilot-uvzpj1nfk) · GitHub Changelog · 0 upvotes · 0 comments
- [Generate Images in Python With OpenAI's GPT Image API – Real Python](https://daily.dev/posts/generate-images-in-python-with-openai-s-gpt-image-api-real-python-gsp2yzklj) · Real Python · 0 upvotes · 0 comments

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#openai](https://daily.dev/tags/openai), [#golang](https://daily.dev/tags/golang), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/openai-cli-wptq9bglf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"OpenAI CLI","url":"https://daily.dev/posts/openai-cli-wptq9bglf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/openai-cli-wptq9bglf"},"datePublished":"2026-10-22T09:32:22.956Z","dateModified":"2026-10-22T15:03:18.275Z","description":"This is the official OpenAI CLI for the OpenAI REST API, installable via Homebrew or Go 1.26+. It follows a resource-based command structure like `openai...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/726f0931b53c5e1fa71d37ced2c02bf0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/726f0931b53c5e1fa71d37ced2c02bf0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/openai-cli-wptq9bglf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devtools,openai,golang,cli","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"OpenAI CLI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/openai-cli-wptq9bglf#faq","mainEntity":[{"@type":"Question","name":"How do I install the official OpenAI CLI?","acceptedAnswer":{"@type":"Answer","text":"Install it with Homebrew using `brew install openai/tools/openai`, or with Go 1.26 or later using `go install github.com/openai/openai-cli/cmd/openai@latest`. The Go install places the binary in `$HOME/go/bin` or `$GOPATH/bin`, which may need to be added to your PATH manually. Developers setting up CLI tooling can track releases like this one on daily.dev."}},{"@type":"Question","name":"How do I make an authenticated request with the OpenAI CLI?","acceptedAnswer":{"@type":"Answer","text":"Export your API key as `OPENAI_API_KEY`, then run a command like `openai responses create --input \"Say this is a test\" --model gpt-5.5`. Admin-level endpoints instead require `OPENAI_ADMIN_KEY` and commands such as `openai admin organization usage completions` with `--start-time`, `--end-time`, and `--bucket-width` flags. Developers scripting against the OpenAI API can follow tool updates like this on daily.dev."}},{"@type":"Question","name":"What happened to the openai images create-variation command in the OpenAI CLI?","acceptedAnswer":{"@type":"Answer","text":"It has been retired and is no longer available. To create an image variation, use `images edit` with a GPT Image model and a prompt instead. Developers migrating CLI scripts after breaking changes can track tool updates on daily.dev."}}]}
```

