Hi all,
Yesterday I was busy to install Codex from ChatGPT(only for pro users) but had a hard time to make it work but found a easy way to make it work and that, I want to share.
With Codex you can give tasks or ask things of, in my case, your lxc container on the cli prompt.
I am running Proxmox 8.4.8 on Debian 12 and using Traefik for http requests.
Install Codex in a lxc container:
https://developers.openai.com/codex/cli
type on the cli: codex
It then will ask you how you want to register.
Options are:
1. Sign in with ChatGPT
Usage included with Plus, Pro, and Team plans
2. Provide your own API key
Pay for what you use
In my case, I choose 1
After entering 1 you get the following to see:
Finish signing in via your browser
If the link doesn't open automatically, open the following link to authenticate:
You will see a link that starts with:
https://auth.openai.com/oauth/authorize?response_type=code&client_id=etc.
Copy that link on your desktop pc, login to ChatGPT, you then will be redirected to a link
That starts with: http://127.0.0.1:1455/etc
Copy that link.
Go back to your lxc container and install links2 (apt install links2)
After it is installed, type: links2
You then see a black screen.
Press g and insert the link that you copied and voilá, it is registered!
Yesterday I was busy to install Codex from ChatGPT(only for pro users) but had a hard time to make it work but found a easy way to make it work and that, I want to share.
With Codex you can give tasks or ask things of, in my case, your lxc container on the cli prompt.
I am running Proxmox 8.4.8 on Debian 12 and using Traefik for http requests.
Install Codex in a lxc container:
https://developers.openai.com/codex/cli
type on the cli: codex
It then will ask you how you want to register.
Options are:
1. Sign in with ChatGPT
Usage included with Plus, Pro, and Team plans
2. Provide your own API key
Pay for what you use
In my case, I choose 1
After entering 1 you get the following to see:
Finish signing in via your browser
If the link doesn't open automatically, open the following link to authenticate:
You will see a link that starts with:
https://auth.openai.com/oauth/authorize?response_type=code&client_id=etc.
Copy that link on your desktop pc, login to ChatGPT, you then will be redirected to a link
That starts with: http://127.0.0.1:1455/etc
Copy that link.
Go back to your lxc container and install links2 (apt install links2)
After it is installed, type: links2
You then see a black screen.
Press g and insert the link that you copied and voilá, it is registered!