Skip to content

Bundled cli-proxy-api-plus v6.9.28 lacks image-generation support (added upstream in CLIProxyAPI v6.9.30) #343

@spiky02plateau

Description

@spiky02plateau

Summary

The cli-proxy-api-plus binary bundled with VibeProxy v1.8.138 is CLIProxyAPI v6.9.28 (built 2026-04-16). Image generation support did not land in CLIProxyAPI until v6.9.30 (2026-04-19), so users hitting the proxy for image-gen on a current ChatGPT Plus/Pro plan get empty responses with no useful error.

Repro

Environment: macOS 15 (Apple Silicon), VibeProxy v1.8.138 fresh install, Codex Connect via menu bar UI completed, OAuth file present at ~/.cli-proxy-api/codex-<email>-plus.json, ChatGPT Plus subscription.

# Test 1 — chat-completions with image_generation tool, gpt-5.5
curl -sS -m 180 http://localhost:8318/v1/chat/completions \
  -H "Authorization: Bearer not-needed" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "stream": false,
    "messages": [{"role":"user","content":"Generate a chalkboard reading TODAY SPECIAL Lobster Roll $24"}],
    "tools": [{"type":"image_generation","output_format":"png"}],
    "tool_choice": {"type":"image_generation"}
  }'
# → HTTP 200, content: null, tool_calls: null, no `images` field, ~100 completion tokens spent silently

# Test 2 — dedicated /v1/images/generations endpoint
curl -sS http://localhost:8318/v1/images/generations \
  -H "Authorization: Bearer not-needed" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"a red cat","size":"1024x1024"}'
# → HTTP 404 page not found

The model gpt-image-2 is also missing from GET /v1/models on the bundled binary.

Root cause

CLIProxyAPI changelog (https://github.com/router-for-me/CLIProxyAPI/releases):

  • v6.9.30 (Apr 19): feat(translator): add partial and full image generation support in Codex-GPT and Codex-Gemini flows
  • v6.9.32 (Apr 22): feat(models): add hardcoded GPT-Image-2 model support in Codex
  • v6.9.34 (Apr 22): fix(handlers): remove references to unsupported n parameter in OpenAI image handlers
  • v6.9.35 (Apr 23): feat(codex): enable image generation for all Codex upstream requests
  • v6.9.36 (Apr 23): feat(codex): pass base model to enable conditional image_generation tool injection + Add GPT-5.5 Codex model support
  • Latest: v6.9.38 (Apr 25)

VibeProxy v1.8.138 was cut Apr 17, predating all of these.

Workaround (verified end-to-end on a live ChatGPT Plus account)

Swap the bundled binary with the standard CLIProxyAPI v6.9.38 release. Note: this drops the Plus-build extras (Amp/Factory integration). Users who need those should swap with a v6.9.30+ build of the Plus variant instead — I don't know off the top of my head where that's currently published.

# 1. Quit VibeProxy from menu bar (or `osascript -e 'quit app "VibeProxy"'`)
# 2. Backup
sudo cp -p /Applications/VibeProxy.app/Contents/Resources/cli-proxy-api-plus \
           /Applications/VibeProxy.app/Contents/Resources/cli-proxy-api-plus.bak-6.9.28

# 3. Download v6.9.38
cd /tmp && curl -fsSL -O \
  "https://github.com/router-for-me/CLIProxyAPI/releases/download/v6.9.38/CLIProxyAPI_6.9.38_darwin_arm64.tar.gz"
tar -xzf CLIProxyAPI_6.9.38_darwin_arm64.tar.gz

# 4. Replace + chmod (keep the same filename — the menu-bar app expects cli-proxy-api-plus)
sudo cp cli-proxy-api /Applications/VibeProxy.app/Contents/Resources/cli-proxy-api-plus
sudo chmod +x /Applications/VibeProxy.app/Contents/Resources/cli-proxy-api-plus

# 5. Re-codesign ad-hoc so macOS will execute the modified bundle
sudo codesign --force --deep --sign - /Applications/VibeProxy.app

# 6. Relaunch
open /Applications/VibeProxy.app

After the swap, /v1/models exposes gpt-image-2 directly, /v1/images/generations returns HTTP 200 with data[0].b64_json, and the request bills against the user's ChatGPT Plus subscription quota (verified — no API token charged).

Suggested fix

Bump the bundled cli-proxy-api-plus to a build of the Plus variant based on CLIProxyAPI v6.9.30+ (preferably latest v6.9.38) in the next VibeProxy release. With that, image generation works out of the box for any user on Plus/Pro/Team — which is most of them, given gpt-image-2 launched 2026-04-21 on those tiers.

Environment

  • macOS 15 (Apple Silicon)
  • VibeProxy v1.8.138 (downloaded 2026-04-25 from the Releases page)
  • Bundled binary: CLIProxyAPI Version: 6.9.28-0-plus, Commit: 0c48ef58, BuiltAt: 2026-04-16T17:45:03Z
  • ChatGPT Plus subscription (codex-<email>-plus.json present in ~/.cli-proxy-api/)

Happy to test pre-release builds if a candidate with the bumped binary is available.

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