{
 "schema_version": 1,
 "generated": "2026-10-29",
 "repo": "openai/openai-cli",
 "name": "openai-cli",
 "owner": "openai",
 "slug": "openai-openai-cli",
 "github": "https://github.com/openai/openai-cli",
 "what": "OpenAI CLI is the official command-line tool for the OpenAI REST API. It calls the API from your terminal or shell scripts: generate images, upload and download files, submit batches, export API data as JSON or JSONL, and read organization usage with an admin key.",
 "why": "1.1k stars, talked about in 2 AI sources we track",
 "language": "Go",
 "requirements": [
  "An OpenAI API key (OPENAI_API_KEY); admin endpoints need OPENAI_ADMIN_KEY",
  "Homebrew, Go 1.26 or later, or a prebuilt binary from GitHub Releases",
  "Optional: jq for parsing JSON output"
 ],
 "audience_note": "Developers and ops people who want to script OpenAI API calls without writing an application.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Software and DevOps",
 "url": "https://dedupedai.com/use-cases/openai-openai-cli/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "openai-openai-cli--generate-images-from-the-terminal-with-openai-cli",
   "title": "Generate and save images from your terminal with the OpenAI CLI",
   "best": true,
   "url": "https://dedupedai.com/use-cases/openai-openai-cli/generate-images-from-the-terminal-with-openai-cli/",
   "json": "https://dedupedai.com/use-cases/u/openai-openai-cli/generate-images-from-the-terminal-with-openai-cli.json"
  },
  {
   "id": "openai-openai-cli--run-a-batch-of-openai-requests-from-a-jsonl-file",
   "title": "Run a batch of OpenAI requests from a JSONL file",
   "best": false,
   "url": "https://dedupedai.com/use-cases/openai-openai-cli/run-a-batch-of-openai-requests-from-a-jsonl-file/",
   "json": "https://dedupedai.com/use-cases/u/openai-openai-cli/run-a-batch-of-openai-requests-from-a-jsonl-file.json"
  },
  {
   "id": "openai-openai-cli--export-openai-api-data-for-scripts",
   "title": "Export OpenAI models, files and usage as JSON for your scripts",
   "best": false,
   "url": "https://dedupedai.com/use-cases/openai-openai-cli/export-openai-api-data-for-scripts/",
   "json": "https://dedupedai.com/use-cases/u/openai-openai-cli/export-openai-api-data-for-scripts.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
