We're building an open source wrapper around ChatGPT that lets you use it programmatically as an API or from Python or in CLI. Best of all, it's completely free! So it is great for testing the waters on a hobby project.
Check it out on GitHub: https://github.com/mmabrouk/chatgpt-wrapper
p.s. Just to answer all the comments below. OpenAI currently does not provide an API to ChatGPT. Our goal is not to abuse ChatGPT, but to provide tools for hobbiest to leverage it (by creating a power shell around it, making workflows around it, even using templates...) until an official API is available. As soon as an official API is available, we would integrate it in our CLI. In any case, chatGPT has hard query limits that would not allow you to use our project for any heavy lifting!