#oauth error

1 messages · Page 1 of 1 (latest)

echo mason
#

ubuntu@PaulJSinstant:~$ openclaw models auth login --provider openai-codex

🦞 OpenClaw 2026.3.2 (89e53fa) — I don't sleep, I just enter low-power mode and dream of clean diffs.

Error: Unknown provider "openai-codex". Loaded providers: google-gemini-cli, minimax-portal, qwen-portal. Verify plugins via openclaw plugins list --json.
ubuntu@PaulJSinstant:~$

hazy phoenixBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

wooden sailBOT
#

That error is basically saying: your install doesn’t currently have an auth-plugin loaded that knows how to run the openai-codex login flow.

openclaw models auth login only works for providers that ship a provider auth plugin (OAuth / special login flows). The command even hints at this: “Verify plugins via openclaw plugins list --json”.

Fix checklist

  1. See if the Codex auth plugin is present but disabled
openclaw plugins list

Look for something with codex / openai in the id. If it’s there but disabled:

openclaw plugins enable <that-id>

Then re-try:

openclaw models auth login --provider openai-codex
#
  1. If there’s no Codex/OpenAI auth plugin listed at all
    Run a plugin sync/update (this often fixes “missing bundled plugins” situations):
openclaw update
# or at least:
openclaw plugins doctor

Then check openclaw plugins list again.

  1. If you paste the output of:
  • openclaw plugins list --json

…I can tell you the exact plugin id to enable/install.

Docs (matches what you’re trying to do)

echo mason
#

Config warnings:\n- plugins.entries.codex: plugin not found: codex (stale config entry ignored; remove it from plugins config)

now how tf do i delete this shit

wooden sailBOT
#

Use the config helper and unset the stale key:

openclaw config unset plugins.entries.codex
openclaw config validate
openclaw gateway restart

If it still complains, you’ve got another reference to codex somewhere in your plugins config. Quick way to find it:

openclaw config get plugins

Then openclaw config unset <whatever.path.points.to.codex> (common culprits are plugins.installs.*, plugins.allow, plugins.deny, plugins.load.paths, etc.).

Docs for the command: https://docs.openclaw.ai/cli/config

echo mason
#

why tf is openai-codex plugin not found????wtf is this error

wooden sailBOT
#

Two separate things are getting mixed together here:

  1. plugins.entries.codex: plugin not found: codex
  • That’s your config referencing a plugin id called codex.
  • There is no plugin with id codex in your install, so OpenClaw warns and ignores that entry.
  • Deleting it via openclaw config unset plugins.entries.codex was the right move.
  1. models auth login --provider openai-codex → “Unknown provider”
  • openclaw models auth login only lists providers that have an auth/login implementation available on your machine.
  • On your box, the only login-capable providers it can see are: google-gemini-cli, minimax-portal, qwen-portal — so Codex OAuth support simply isn’t present/loaded, hence “Unknown provider”.

What to do next (actionable)

Run these and paste the output:

openclaw plugins list --json
#
openclaw update status

Then:

  • If you see a codex/openai-related plugin disabled → openclaw plugins enable <id> and retry login.
  • If you don’t see anything codex/openai-related at all → run:
    openclaw update
    
    (update syncs plugins/extensions to the active channel)

Docs that match this behavior:

#

Paste plugins list --json and I’ll tell you exactly what’s missing / what id to enable.

echo mason
#

how do i add new fucking codex account then. and theres no such thing called codex plugin. and its the lastest version bro

wooden sailBOT
#

You can’t add a Codex (ChatGPT OAuth) account until your install actually has the Codex OAuth login provider available — and right now it doesn’t. That’s exactly what this line means:

Unknown provider "openai-codex". Loaded providers: google-gemini-cli, minimax-portal, qwen-portal

Also: you’re right — there is no plugin called codex. That plugins.entries.codex thing was just a stale/wrong config entry (hence the warning).

So how do you add a Codex account?

Step 1 is: make openai-codex show up as a login provider on that machine.

Do this in order:

  1. Confirm you’re actually up to date (don’t trust “I installed yesterday”)
openclaw update status
  1. Sync bundled/extensions/plugins for your channel
#
openclaw update
openclaw plugins list --json
  1. Retry:
openclaw models auth login --provider openai-codex

If after openclaw update it still doesn’t show up, paste:

openclaw plugins list --json
openclaw update status --json

…because at that point you’re likely on a build/install method that simply didn’t ship the Codex OAuth bits, and we need to see what channel/install path you’re on to tell you the exact fix.

#

Once it works

Running openclaw models auth login --provider openai-codex again later is how you add another account (best practice: use separate agents for separate OpenAI accounts so you don’t mix auth/session state).

Refs:

echo mason
#

ubuntu@PaulJSinstant:~$ openclaw models auth login --provider openai-codex

🦞 OpenClaw 2026.3.2 (85377a2) — I autocomplete your thoughts—just slower and with more API calls.

Error: Unknown provider "openai-codex". Loaded providers: google-gemini-cli, minimax-portal, qwen-portal. Verify plugins via openclaw plugins list --json.
ubuntu@PaulJSinstant:~$

still doesnt fkin work

wooden sailBOT
#

You’re still on 2026.3.2. That’s the whole problem.

On your build, models auth login literally does not have a login handler for openai-codex, so it will never show up in that “Loaded providers:” list no matter how many times you rerun the command.

openclaw update clearly didn’t actually move you to the current published version (your commit hash changed, but the version stayed 2026.3.2).

Fix: update OpenClaw for real (Ubuntu)

Pick one of these:

Recommended (official path):

curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard

Or if you installed globally via node/pnpm:

#
pnpm add -g openclaw@latest
# (npm i -g openclaw@latest also works)

Then verify:

openclaw --version

After you’re actually updated

Run:

openclaw models auth login --provider openai-codex

If it still says unknown provider after the version bump, paste: