{"repo":"marcolardera/chatgpt-cli","free":true,"listed":false,"github":"https://github.com/marcolardera/chatgpt-cli","clone":"git clone https://github.com/marcolardera/chatgpt-cli.git","description":"Simple yet effective command line client for chatting with ChatGPT using the official API","language":"Python","stars":478,"topics":["api","chatgpt","chatgpt-api","cli","python","openai","openai-api"],"license":"MIT","category":"cli-tools","readme_excerpt":"ChatGPT CLI Overview Simple script for chatting with ChatGPT from the command line, using the official API (Released March 1st, 2023). It allows, after providing a valid API Key, to use ChatGPT at the maximum speed, at a fraction of the cost of a full ChatGPT Plus subscription (at least for the average user). How to get an API Key Go to platform.openai.com and log-in with your OpenAI account (register if you don't have one). Click on your name initial in the top-right corner, then select \"View API keys\" . Finally click on \"Create new secret key\" . That's it. You may also need to add a payment method, clicking on Billing -- Payment methods . New accounts should have some free credits, but adding a payment method may still be mandatory. For pricing, check this page. Update (16/02/2024): Some user accounts now requires to charge in advance the credit balance in order to use the OpenAI APIs. Check Settings -- Billing for that. Installation and essential configuration You need Python (at least version 3.10), Pip and Git installed on your system. First update Pip (having an older version can cause troubles on some systems): Then, the installation is done simply with a single command: After that, you need to configure your API Key. There are three alternative ways to provide this parameter: - Edit the api-key parameter in the config.yaml file (see paragraph below) - Set the environment variable OPENAI API KEY (Check your operating system's documentation on how to do this) - Use the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcolardera","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcolardera/chatgpt-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}