Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Official CLI for the OpenAI API
| Date | Stars |
|---|---|
| 2026-07-31 | 650 |
| 2026-08-01 | 651 |
| 2026-08-04 | 651 |
| 2026-08-05 | 651 |
| 2026-08-06 | 651 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
# OpenAI CLI The official CLI for the [OpenAI REST API](https://platform.openai.com/docs). <!-- x-release-please-start-version --> ## Installation ### Installing with Homebrew ```sh brew install openai/tools/openai ``` ### Installing with Go To test or install the CLI locally, you need [Go](https://go.dev/doc/install) version 1.25 or later installed. ```sh go install 'github.com/openai/openai-cli/cmd/openai@latest' ``` Once you have run `go install`, the binary is placed in your Go bin directory: - **Default location**: `$HOME/go/bin` (or `$GOPATH/bin` if GOPATH is set) - **Check your path**: Run `go env GOPATH` to see the base directory If commands aren't found after installation, add the Go bin directory to your PATH: ```sh # Add to your shell profile (.zshrc, .bashrc, etc.) export PATH="$PATH:$(go env GOPATH)/bin" ``` <!-- x-release-please-end --> ### Running Locally After cloning the git repository for this project, you can use the `scripts/run` script to run the tool locally: ```sh ./scripts/run args... ``` ## Usage The CLI follows a resource-based command structure: ```sh openai [resource] <command> [flags...] ``` Standard API endpoints require an [API key](https://platform.openai.com/settings/organization/api-keys): ```sh export OPENAI_API_KEY="sk-..." openai responses create \ --input "Say this is a test" \ --model gpt-5.5 ``` Admin endpoints require an [admin API key](https://platform.openai.com/settings/organization/admin-keys): ```sh export OPENAI_ADMIN_KEY="sk-admin-..." openai admin:organization:usage completions \ --start-time 1735689600 \ --end-time 1735776000 \ --bucket-width 1d ``` For details about specific commands, use the `--help` flag. ### Environment variables | Environment variable | Required | Default value | | --- | --- | --- | | `OPENAI_API_KEY` | no | `null` | | `OPENAI_ADMIN_KEY` | no | `null` | | `OPENAI_ORG_ID` | no | `null` | | `OPENAI_PROJECT_ID` | no | `null` | | `OPENAI_WEBHOOK_SECRET` | no | `null` | | `OPENAI_MTLS_CLIENT_CERT_FILE` | no | `null` | | `OPENAI_MTLS_CLIENT_KEY_FILE` | no | `null` | ### Global flags - `--api-key` (can also be set with `OPENAI_API_KEY` env var) - `--admin-api-key` (can also be set with `OPENAI_ADMIN_KEY` env var) - `--organization` (can also be set with `OPENAI_ORG_ID` env var) - `--project` (can also be set with `OPENAI_PROJECT_ID` env var) - `--webhook-secret` (can also be set with `OPENAI_WEBHOOK_SECRET` env var) - `--mtls-client-cert-file` (can also be set with `OPENAI_MTLS_CLIENT_CERT_FILE` env var) - `--mtls-client-key-file` (can also be set with `OPENAI_MTLS_CLIENT_KEY_FILE` env var) - `--help` - Show command line usage - `--debug` - Enable debug logging. This includes HTTP request/response details and bodies; do not share debug logs if they may contain sensitive payloads. - `--version`, `-v` - Show the CLI version - `--base-url` - Use a custom API backend URL - `--format` - Change the output format (`auto`, `explore`, `json`, `jsonl`, `pretty`, `raw`, `yaml`) - `--format-error` - Change the output format for errors (`auto`, `explore`, `json`, `jsonl`, `pretty`, `raw`, `yaml`) - `--transform` - Transform the data output using [GJSON syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md) - `--transform-error` - Transform the error output using [GJSON syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md) ### Mutual TLS Mutual TLS is currently in beta. To opt in and activate a CA certificate for your organization or project, follow the [OpenAI Mutual TLS Beta Program](https://help.openai.com/en/articles/10876024-openai-mutual-tls-beta-program) instructions. To authenticate API-key requests with a mutual TLS client certificate, provide the client certificate and private key as separate PEM files. If certificate chain support is enabled for your organization, the certificate file must contain the leaf certificate first, followed by any intermediate certificates. Otherwise, use a client certificate si
Excerpt of 6,439 characters
Read on GitHub64
Alex Chang · OpenAI
13
8
Justin Beckwith · OpenAI
7
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:dfe1a79d0d285587, llm:Description: 'Official CLI for the OpenAI API' (repository provides a command-line interface for interacting with OpenAI API).
matched fp:dfe1a79d0d285587, llm:Description: 'Official CLI for the OpenAI API' (repository provides a command-line interface for interacting with OpenAI API).