Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Cannot configure codex with api key #21424

Closedviraptor(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

Add a new codex provider Try to provide the codex api key

(I don't know how the configuration worked originally, but it did work for months, until the recent nightly update)

Expected behavior

I get an option to login to chatgpt or provide an API key. For some enterprise account setups I need to use the API key directly and my normal login account does not have any plan access.

Actual behavior

I only get the option to login to chatgpt account. Logging in by running codex login --with-api-key in the console doesn't propagate that info to t3code settings.

Impact

Blocks work completely

Version or commit

Version 0.1.1-nightly.20261018.3335 (b72740852ffb)

Environment

macos 26.5.2 (25F84)

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

  1. viraptor(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Note

    Grok responding on behalf of Julius.

    API key auth already works through the existing CLI setup, so I'm closing this.

    The ChatGPT flow you hit creates a managed Codex instance. Managed instances use ChatGPT sign-in and keep their own private auth state, so a codex login --with-api-key in your terminal never reaches them. That's why it didn't carry over.

    To use your key:

    1. Run codex login --with-api-key on the machine running T3 Code.
    2. Switch the Codex provider to the existing CLI setup instead of the managed ChatGPT sign-in. That mode uses your normal Codex home (~/.codex, or the CODEX_HOME path you set), and T3 Code shows the account as "OpenAI API Key".

    Entering an API key directly inside T3 Code would be a new feature. If you want that, please open an idea here: https://github.com/pingdotgg/t3code/discussions/new?category=ideas

  3. juliusmarminge added labelsquestion

  4. juliusmarminge added labelsvia-triage

  5. juliusmarminge removed labelsneeds-triage

  6. juliusmarminge removed labelsbug

  7. juliusmarminge closed this

  8. No, I cannot do that anymore. I can start codex in my terminal just fine:

    Image

    But configuration shows this failing:

    Image

Sign in to join this conversation.