openai/openai-cli

Official CLI for the OpenAI API

What it solves

Provides an official command-line interface for interacting with the OpenAI REST API directly from the terminal, making it easy to send requests, manage files, run batch jobs, handle admin tasks, and script workflows without writing custom code.

How it works

Organizes commands around OpenAI API resources and subresources, supporting various data output formats like text, JSON, JSONL, and YAML, alongside features for piping, file inputs, debugging, and offline utilities like token counting.

Who it’s for

Developers, administrators, and shell-based coding agents who want to interact with OpenAI services, manage cloud resources, or automate API workflows from the command line.

Highlights

  • Official command-line tool for OpenAI REST APIs supporting image generation, file uploads, batch requests, and admin controls.
  • Flexible output formatting including JSON, JSONL, and field extraction via GJSON syntax.
  • Local utilities like an offline token counter and interactive command exploration.
  • Integration capabilities with popular coding agents through an optional skill package.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project