Just pushed an unofficial ChatGPT API that doesn't require a headless browser or a hard coding of access token and that's not an interactive CLI, hopefully a real API is coming soon but feel free to use this until then.