And, just like OpenAI OAuth v1, you can always run `npx openai-oauth@latest` to instantly get a free local OpenAI API with your Codex account.
OpenAI OAuth v2 is open source under Apache-2.0 on GitHub: https://github.com/EvanZhouDev/openai-oauth
Let me know if you have any feedback or find any bugs!
That being said, by using OpenAI OAuth, you assume the risks of using this project, and you are still responsible for complying with OpenAI's Terms of use and usage Policies. See https://github.com/EvanZhouDev/openai-oauth#legal for more information.