Settings
Codex / ChatGPT
Connect the ChatGPT account whose usage you want to display. In the Stats container console in Portainer, run:
codex -c 'cli_auth_credentials_store="file"' login --device-auth
Open the link and enter the code shown by Codex. If prompted, enable device code authorization in your ChatGPT security settings, then try again.
The login is saved in the persistent data volume. Return to Usage Meters after signing in; the card refreshes within a minute. An OpenAI API key does not provide ChatGPT subscription usage.