How to Connect ChatGPT Plus to Hermes Agent with Codex OAuth
You can connect Hermes Agent to an eligible ChatGPT account through its ChatGPT or Codex Subscription provider. The setup uses a one-time device code and a browser sign-in. Once Hermes shows the account as connected, select a Codex model and send a short prompt to confirm it works. This route uses your subscription, so you can leave the OpenAI API key field blank.
1. Enable device-code sign-in in ChatGPT
- Open ChatGPT in your browser and go to Settings → Security.
- Under App Security, turn on Enable device code sign-in for Codex.
- Use the same ChatGPT account when Hermes opens the sign-in page. On a managed workspace, an administrator may control whether device-code login is available.
- OpenAI’s authentication guide explains where that permission lives.
2. Connect your account in Hermes Desktop
- Open Hermes Desktop and go to Settings → Providers → Accounts, as shown in the video.
- Choose ChatGPT or Codex Subscription. Hermes will start the login and show a short device code.
- Use the browser page opened by the app to sign in to OpenAI. Paste the current code from Hermes into the verification prompt and approve the connection. Enter only the code from the session you started yourself.
- Return to Hermes and confirm that the account shows as connected.
The key distinction in the provider picker is between OpenAI Codex, which uses ChatGPT sign-in, and OpenAI API, which uses an API key. Hermes’ provider documentation lists both routes.
3. Pick a model and send a test prompt
Open a new chat and select an available model from the connected Codex provider. The video shows GPT-6-luna replying to a greeting. To check your own setup, send a simple prompt such as Reply with “Hermes connected”, then confirm that the chat’s model picker still shows the Codex model you selected. The available model list depends on your account and installed Hermes version.
Follow the video walkthrough
- 0:31 — Find the account settings in Hermes Desktop
- 1:02 — Sign in and enter the device code
- 1:57 — See the first model response
Use the same provider from WSL or another terminal
If Hermes Agent is already installed in WSL or a Linux terminal, start the model picker:
hermes model
Choose ChatGPT or Codex Subscription and follow the browser instructions. For a local terminal where device-code login is unavailable, Hermes also documents this browser sign-in option:
hermes auth add openai-codex --browser
That option uses a callback to the same machine. On a remote or headless installation, use the device-code flow when your workspace permits it. See the provider guide for both sign-in flows.
Fix common sign-in problems
- The code expired or was rejected. Start a new sign-in from Hermes, check that device-code login is enabled, and use the newly generated code.
- Hermes asks for an API key. Return to the provider picker and choose ChatGPT or Codex Subscription.
- A model from the video is missing. Refresh the model list and choose a model your connected account offers.
- Hermes Desktop fails before you reach Settings. Start with the Hermes Desktop startup timeout guide.
Does OAuth make Hermes usage unlimited? This setup skips a separate API key for the selected Codex provider. Account limits still apply, and tools or models you configure through other providers may have their own charges.

Post a Comment for "How to Connect ChatGPT Plus to Hermes Agent with Codex OAuth"