I don't like leaving the comfort of my shell >w<
A simple CLI for interacting with OpenAI's ChatGPT models.
Default settings may be read from a configuration file:
- Linux:
~/.chatgpt-cli/.config - Windows:
C:\Users\<username>\AppData\Local\chatgpt-cli\.config
Format the file with KEY=VALUE pairs.
You may use \ to escape newlines in values,
and # at the start of a line to denote a comment.
Empty lines are ignored.
model=gpt-5-mini
# Here is a comment!
instructions=You are a helpful assistant. \
Respond concisely.
CHATGPT_CLI_API_KEY– Your OpenAI API key (used if not provided via--key).
./chatgpt_cli [OPTIONS] PROMPT...-k, --key API_KEY– OpenAI API key (overridesOPENAI_API_KEYenvironment variable)-m, --model MODEL– OpenAI model to use (overridesmodelconfig option)
-
-h, --help– Show help message -
-v, --version– Show program version -
-r, --raw– Print raw JSON response instead of parsed text (does not support streaming) -
-R, --response-id– Print the response id after completion (use with -H later) -
-H, --history [ID]–Specify an OpenAI previous_response_id (defaults to last response's id) -
-i, --instructions TEXT– System instructions for the model (overridesinstructionsconfig option) -
-t, --temperature DOUBLE– Sampling temperature for the model, must be in [0,2] (overridestemperatureconfig option) -
-T, --max-tokens UINT64– Upper bound for output tokens in the response (overridesmax-tokensconfig option)