Skip to content

[Bug]:invalid_request_error No enabled canonical OpenAI provider for modelย #257

Closed

Description

@raydian

Summary

xxx@MacBookPro-10 .codex % ocx init

๐Ÿ”ง opencodex (ocx) setup

Available providers:

ChatGPT login:
1. OpenAI โ€” ChatGPT login (no key; account pool default, Direct selectable)

Account login (OAuth โ€” then run: ocx login ):
2. Cursor (experimental) โ€” account login
3. xAI (Grok) โ€” account login
4. Anthropic (Claude) โ€” account login

API key (paste a key from the provider's dashboard):
5. Anthropic (API key)

Account login (OAuth โ€” then run: ocx login ):
6. Kimi (Moonshot) โ€” account login
7. Kiro (AWS CodeWhisperer) โ€” account login

API key (paste a key from the provider's dashboard):
8. OpenAI API
9. Umans AI Coding Plan
10. opencode go
11. Neuralwatt Cloud
12. OpenRouter
13. OrcaRouter
14. Groq
15. Google Gemini
16. Google Vertex AI

Account login (OAuth โ€” then run: ocx login ):
17. Google Antigravity โ€” account login

API key (paste a key from the provider's dashboard):
18. Azure OpenAI

Local servers (usually no key):
19. Ollama (local)
20. vLLM (local)
21. LM Studio (local)

API key (paste a key from the provider's dashboard):
22. DeepSeek
23. Cerebras
24. Together
25. Fireworks
26. Fire Pass (Fireworks Kimi)
27. Moonshot (Kimi API)
28. Hugging Face
29. NVIDIA NIM
30. Venice
31. Z.AI โ€” GLM Coding Plan
32. NanoGPT
33. Synthetic
34. Qwen Cloud
35. Qianfan (Baidu)
36. Alibaba Coding Plan
37. Alibaba Token Plan (Beijing)
38. Alibaba Token Plan (International)
39. Parallel
40. ZenMux
41. LiteLLM (self-hosted)
42. Ollama Cloud
43. Mistral
44. MiniMax โ€” Coding Plan
45. MiniMax โ€” Coding Plan (CN)
46. Kimi (coding)
47. opencode zen
48. Vercel AI Gateway
49. OpenCode Free
50. Xiaomi MiMo
51. Kilo
52. MiMo Free
53. Cloudflare AI Gateway
54. Cloudflare Workers AI

Account login (OAuth โ€” then run: ocx login ):
55. GitHub Copilot โ€” account login

API key (paste a key from the provider's dashboard):
56. GitLab Duo

  1. custom (enter URL manually)

Select provider (number): 1

๐Ÿ“ก OpenAI โ€” ChatGPT login (no key; account pool default, Direct selectable)
Base URL: https://chatgpt.com/backend-api/codex
No API key needed โ€” forwards your existing codex login.

Proxy port [10100]:

โœ… Config saved to ~/.opencodex/config.json
Inject into Codex config.toml? [Y/n]: Y
Fetching available models from provider...
โœ… Pointed Codex's built-in openai provider at the opencodex proxy (openai_base_url).
Codex model catalog: /Users/xxx/.codex/opencodex-catalog.json
Codex resume history: untouched (threads keep their native openai tag).
All models now route through opencodex proxy (like OpenRouter).
OpenAI models (gpt-5.5, etc.) are passed through to OpenAI.
Custom models route to their configured providers.
Fallback reference: /Users/xxx/.codex/opencodex.config.toml
Install Codex autostart shim? [Y/n]: Y
โš ๏ธ Codex autostart shim already installed at /var/folders/fm/5q9nyz2n7n304qwgt6g_92zw0000gn/T/cmux-cli-shims/D23EFD3C-8CFF-421C-A62B-A2F9D0B848B0/codex.

๐Ÿš€ Setup complete! Run 'ocx start' to start the proxy.
xxx@MacBook-Pro-10 .codex % ocx start
โš ๏ธ Previous session (PID 57159) did not shut down cleanly. Codex state restored from journal.
176 | const original = io.read(source);
177 | // v2 snapshot path. The historical .pre-openai-tiers-v1.bak is read only by restore
178 | // docs/fixtures and is never reused or overwritten as the v2 snapshot.
179 | const backup = ${source}.pre-openai-tiers-v2.bak;
180 | if (io.exists(backup)) {
181 | if (!sameBytes(original, io.read(backup))) throw new OpenAiTierBackupCollisionError();
^
OpenAiTierBackupCollisionError: Existing OpenAI tier backup differs from the current config
at backupConfigBeforeOpenAiTierMigration (/Users/xxx/.nvm/versions/node/v22.22.3/lib/node_modules/@bitkyc08/opencodex/src/config.ts:181:54)
at runOpenAiTierStartupMigration (/Users/xxx/.nvm/versions/node/v22.22.3/lib/node_modules/@bitkyc08/opencodex/src/providers/openai-tier-startup.ts:23:8)
at startServer (/Users/xxx/.nvm/versions/node/v22.22.3/lib/node_modules/@bitkyc08/opencodex/src/server/index.ts:149:18)
at handleStart (/Users/xxx/.nvm/versions/node/v22.22.3/lib/node_modules/@bitkyc08/opencodex/src/cli/index.ts:157:16)

Bun v1.3.14 (macOS arm64)

Reproduction

  1. run ocx init
  2. select 1 provider, openai
  3. ocx start
  4. throw exception

Logs and screenshots

xxx@MacBook-Pro-10 .codex % ocx init

๐Ÿ”ง opencodex (ocx) setup

Available providers:

  ChatGPT login:
    1. OpenAI โ€” ChatGPT login (no key; account pool default, Direct selectable)

  Account login (OAuth โ€” then run: ocx login <id>):
    2. Cursor (experimental) โ€” account login
    3. xAI (Grok) โ€” account login
    4. Anthropic (Claude) โ€” account login

  API key (paste a key from the provider's dashboard):
    5. Anthropic (API key)

  Account login (OAuth โ€” then run: ocx login <id>):
    6. Kimi (Moonshot) โ€” account login
    7. Kiro (AWS CodeWhisperer) โ€” account login

  API key (paste a key from the provider's dashboard):
    8. OpenAI API
    9. Umans AI Coding Plan
   10. opencode go
   11. Neuralwatt Cloud
   12. OpenRouter
   13. OrcaRouter
   14. Groq
   15. Google Gemini
   16. Google Vertex AI

  Account login (OAuth โ€” then run: ocx login <id>):
   17. Google Antigravity โ€” account login

  API key (paste a key from the provider's dashboard):
   18. Azure OpenAI

  Local servers (usually no key):
   19. Ollama (local)
   20. vLLM (local)
   21. LM Studio (local)

  API key (paste a key from the provider's dashboard):
   22. DeepSeek
   23. Cerebras
   24. Together
   25. Fireworks
   26. Fire Pass (Fireworks Kimi)
   27. Moonshot (Kimi API)
   28. Hugging Face
   29. NVIDIA NIM
   30. Venice
   31. Z.AI โ€” GLM Coding Plan
   32. NanoGPT
   33. Synthetic
   34. Qwen Cloud
   35. Qianfan (Baidu)
   36. Alibaba Coding Plan
   37. Alibaba Token Plan (Beijing)
   38. Alibaba Token Plan (International)
   39. Parallel
   40. ZenMux
   41. LiteLLM (self-hosted)
   42. Ollama Cloud
   43. Mistral
   44. MiniMax โ€” Coding Plan
   45. MiniMax โ€” Coding Plan (CN)
   46. Kimi (coding)
   47. opencode zen
   48. Vercel AI Gateway
   49. OpenCode Free
   50. Xiaomi MiMo
   51. Kilo
   52. MiMo Free
   53. Cloudflare AI Gateway
   54. Cloudflare Workers AI

  Account login (OAuth โ€” then run: ocx login <id>):
   55. GitHub Copilot โ€” account login

  API key (paste a key from the provider's dashboard):
   56. GitLab Duo

   57. custom (enter URL manually)

Select provider (number): 22

๐Ÿ“ก DeepSeek
   Base URL: https://api.deepseek.com
   ๐Ÿ”‘ Get your key: https://platform.deepseek.com/api_keys

API key (paste, or env var $DEEPSEEK_API_KEY): sk-sssssxxxxxxxxxxx
Default model [deepseek-v4-flash]:

Proxy port [10100]:

โœ… Config saved to ~/.opencodex/config.json
Inject into Codex config.toml? [Y/n]: Y
Fetching available models from provider...
โœ… Pointed Codex's built-in openai provider at the opencodex proxy (openai_base_url).
  Codex model catalog: /Users/xxx/.codex/opencodex-catalog.json
  Codex resume history: untouched (threads keep their native openai tag).
  All models now route through opencodex proxy (like OpenRouter).
  OpenAI models (gpt-5.5, etc.) are passed through to OpenAI.
  Custom models route to their configured providers.
  Fallback reference: /Users/xxx/.codex/opencodex.config.toml
Install Codex autostart shim? [Y/n]: Y
โš ๏ธ  Codex autostart shim already installed at /var/folders/fm/5q9nyz2n7n304qwgt6g_92zw0000gn/T/cmux-cli-shims/D23EFD3C-8CFF-421C-A62B-A2F9D0B848B0/codex.

๐Ÿš€ Setup complete! Run 'ocx start' to start the proxy.
xxx@MacBook-Pro-10 .codex % ocx start
โš ๏ธ  Previous session (PID 57159) did not shut down cleanly. Codex state restored from journal.
๐Ÿš€ opencodex proxy running on http://localhost:10100
   POST /v1/responses โ†’ provider translation
   GET  /healthz      โ†’ health check
   GET  /api/*        โ†’ management API
   GET  /             โ†’ GUI dashboard
[opencodex] Provider model discovery for "deepseek" omitted configured model ids; dropping them from the authoritative live catalog: deepseek-chat, deepseek-reasoner.
   + 2 models appended to Codex catalog (/Users/xxx/.codex/opencodex-catalog.json)
Pointed Codex's built-in openai provider at the opencodex proxy (openai_base_url).
  Codex model catalog: /Users/xxx/.codex/opencodex-catalog.json
  Codex resume history: untouched (threads keep their native openai tag).
  All models now route through opencodex proxy (like OpenRouter).
  OpenAI models (gpt-5.5, etc.) are passed through to OpenAI.
  Custom models route to their configured providers.
  Fallback reference: /Users/xxx/.codex/opencodex.config.toml






xxx@MacBook-Pro-10 .codex % curl http://127.0.0.1:10100/v1/responses \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "input": "Hello, world!"
  }'
{"error":{"message":"No enabled canonical OpenAI provider for model: gpt-5.5","type":"invalid_request_error","code":"invalid_request_error"}}%                                                                                                                                  xxx@MacBook-Pro-10 .codex % curl http://127.0.0.1:10100/v1/responses \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.6-sol",
    "input": "Hello, world!"
  }'
{"error":{"message":"No enabled canonical OpenAI provider for model: gpt-5.6-sol","type":"invalid_request_error","code":"invalid_request_error"}}%

Area

CLI

Version

27.13

OS

mac os 26.5.2 (25F84)

Config shape

Checks

  • I searched existing issues and docs first.
  • I removed secrets, tokens, and personal data from logs and screenshots.

Activity

  1. Ingwannu commented on Jul 22, 2026

    @Ingwannu
    Owner

    ํ™•์ธ ๊ฒฐ๊ณผ ๋ณด๊ณ ์—๋Š” ๋‘ ๋™์ž‘์ด ์„ž์—ฌ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.

    1. OpenAiTierBackupCollisionError๋กœ ์‹œ์ž‘์ด ๋ง‰ํžˆ๋Š” ํ˜„์ƒ์€ ์‹ค์ œ ๋ฒ„๊ทธ์˜€์Šต๋‹ˆ๋‹ค. ocx init์ด ์ด๋ฏธ ํ˜„์žฌ 3-tier OpenAI ๊ตฌ์กฐ๋ฅผ ์“ฐ๋ฉด์„œ๋„ ๋ฒ„์ „ ํ‘œ์‹์„ ๋„ฃ์ง€ ์•Š์•„, ์ด์ „์˜ immutable v2 ๋ฐฑ์—…์ด ์žˆ์œผ๋ฉด startup migration์ด ์ƒˆ config๋ฅผ legacy๋กœ ์˜ค์ธํ–ˆ์Šต๋‹ˆ๋‹ค. dev์˜ 2aa4430c์—์„œ fresh/re-init config์— ํ˜„์žฌ tier version์„ ๊ธฐ๋กํ•ด ๋ถˆํ•„์š”ํ•œ migration๊ณผ backup collision์„ ์—†์•ด์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด ๋ฐฑ์—…์˜ ๋ถˆ๋ณ€์„ฑ์€ ์•ฝํ™”ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

    2. DeepSeek๋งŒ ํ™œ์„ฑํ™”ํ•œ ์ƒํƒœ์—์„œ bare gpt-5.5 / gpt-5.6-sol์ด No enabled canonical OpenAI provider๋กœ ๊ฑฐ๋ถ€๋˜๋Š” ๊ฒƒ์€ ์˜๋„๋œ fail-closed ๋™์ž‘์ž…๋‹ˆ๋‹ค. ํ•ด๋‹น bare OpenAI ๋ชจ๋ธ์„ ์“ฐ๋ ค๋ฉด canonical openai ๋˜๋Š” openai-apikey tier๊ฐ€ ํ™œ์„ฑํ™”๋ผ ์žˆ์–ด์•ผ ํ•˜๋ฉฐ, ๋‹ค๋ฅธ provider๋กœ ๋ณด๋‚ด๋ ค๋ฉด provider/model ํ˜•ํƒœ๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    Fresh-config migration ํšŒ๊ท€ ํ…Œ์ŠคํŠธ, config ํ…Œ์ŠคํŠธ, ์ „์ฒด ๊ฒฉ๋ฆฌ ํ…Œ์ŠคํŠธ 3,394๊ฐœ ๋ฐ privacy scan์„ ํ†ต๊ณผํ–ˆ์Šต๋‹ˆ๋‹ค. ์‹ค์ œ startup ๊ฒฐํ•จ์€ ํ•ด๊ฒฐ๋๊ณ  ๋‚˜๋จธ์ง€ ๋ฉ”์‹œ์ง€๋Š” ์„ค์ • ์˜ค๋ฅ˜๋ฅผ ์ •ํ™•ํžˆ ๋ง‰๋Š” ๋™์ž‘์ด๋ฏ€๋กœ ์™„๋ฃŒ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions