copenai is a simple CURSES interface to an OpenAI compatible API. The command is simply: copenai base_url Where base_url is the base URL of the API. The secret API key is read from the environment variable OPENAI_APIKEY. This is done to prevent passing it on the command line and leaking it via process listings.