Skip to content

Removing requirement for OPENAI_API_KEY when running models locally #540

Closed

Description

@moppywhip

What is the type of issue?

Bug 🪲

What is the issue?

When using ollama as a model provider, codex still requires OPENAI_API_KEY to start up.

kevinzhao@hnt-07329 codex % codex --provider ollama

Missing OpenAI API key.

Set the environment variable OPENAI_API_KEY and re-run this command.
You can create a key here: https://platform.openai.com/account/api-keys 

This is not necessary as local LLMs do not require any authentication to use.

Where did you find it?

No response

Activity

  1. added a commit that references this issue on Apr 22, 2025
    549fc65
  2. added a commit that references this issue on Apr 24, 2025
    e4413ca
  3. added a commit that references this issue on Jun 26, 2025
    6aca087
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions