Spaces:
Paused
Paused
Commit History
-
chore: update to v1.0.92 and Codex 26.323.20928
Lenson55ac8b5
-
fix: set proxy_api_key to null to disable login
Lensonc6ff317 -
fix: re-enable proxy_api_key
Lenson152308a -
fix: disable dashboard login for HF Spaces
Lenson951b4c7 -
feat: add HF Dataset sync for config persistence, install huggingface-hub
Lenson49de6ec -
fix: disable dashboard login for HF Spaces
Lenson5a5b104 -
chore: reset to v1.0.80, change port to 7860
Lenson3a8632d -
fix: model list not updating at startup — fast-retry on auth race (#149)
icebear +1: icebear0828Unverified signatureRoot cause: token refresh and model fetch race at startup. Initial fetch fires 1s after boot, but accounts may still be refreshing OAuth tokens. isAuthenticated() returns false → fetch silently skips → next retry is ~1 hour later. - model-fetcher: fast-retry (10s × 12 attempts) until accounts are ready - config/models.yaml: add gpt-5.4/5.4-mini/5.3-codex (restored 2026-03-18) - Export hasFetchedModels() for observability - 4 new tests covering retry/fallback/immediate-success scenarios Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>56be298
-
fix: prevent quota-exhausted accounts from cycling back to active (#115)
icebear0828Accounts that hit their quota limit were cycling between rate_limited and active status every 60s, causing requests to be routed to exhausted accounts repeatedly. Root cause: markQuotaExhausted() only worked on "active" accounts, and the quota refresher only checked "active" accounts. Since 429 backoff (60s) recovered accounts to "active" before the 5-min quota refresh could mark them exhausted with the real reset time, neither mechanism could break the cycle. Fix: - markQuotaExhausted() now works on rate_limited accounts (only extends, never shortens rate_limit_until) - Quota refresher now includes rate_limited accounts in its fetch cycle261b199
-
fix: disable desktop context injection by default (#95) (#97)
icebear +1: icebear0828Unverified signature* fix: disable desktop context injection by default (#95) The proxy was injecting a ~1500 token desktop context system prompt into every request, inflating prompt_tokens from ~17 to ~1587 for a simple message. Add `model.inject_desktop_context` config option (default false) to skip injection unless explicitly enabled. * docs: update CHANGELOG for #95 * chore: revert unrelated default.yaml changes --------- Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>921d606 -
feat: auto-refresh quota with tiered warnings (#92) (#93)
icebear +1: icebear0828Unverified signatureBackground quota refresher fetches official usage every 5min (configurable), caches on AccountEntry for instant dashboard reads, and marks exhausted accounts as rate_limited. Tiered warning thresholds (default 80%/90%) trigger visual banners in the dashboard. Frontend auto-polls every 30s. Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>4f2665c
-
fix: model store dual index, desktop UI fallback, dynamic port support
icebear0828- Model store: replace O(n) plan map with dual index (planType→models + modelId→plans), both O(1) - Desktop UI: fallback to web UI when desktop build missing, add startup path diagnostics - Server: resolve actual bound port from server.address() to support port=0 - Model fetcher: fix log message (said 5s, actually 1s) - Update Codex Desktop fingerprint to v26.311.21342 (build 993)b94940f
-
fix: harden extraction pipeline + update Codex Desktop v26.309.31024
icebear0828 +1: Claude Opus 4.6- Fallback originator scanning: try/catch extractFromMainJs, scan all .vite/build/*.js on failure instead of aborting - Webview model discovery: scan webview/assets/*.js for additional model IDs not found in main.js - Fix bracket search in extractPrompts(): limit lastIndexOf("[") to 50-char window instead of unbounded backward search - Prompt validation in savePrompt(): reject content <50 chars or with >3 garbled lines to prevent corruption - Fix corrupted title-generation.md (garbled lines 17-35) - Update Codex Desktop to v26.309.31024 (build 962) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ea06916
-
fix: update model catalog — gpt-5.4/5.3-codex removed, gpt-5.2-codex is new flagship
icebear0828 +1: Claude Opus 4.6Backend dropped gpt-5.4, gpt-5.3-codex, gpt-5.3-codex-spark. New model list: gpt-5.2-codex (default), gpt-5.2, gpt-5.1-codex-max, gpt-5.1-codex, gpt-5.1, gpt-5-codex, gpt-5, gpt-oss-120b, gpt-oss-20b, gpt-5.1-codex-mini, gpt-5-codex-mini. - config/default.yaml: default model → gpt-5.2-codex - config/models.yaml: full rewrite matching backend /codex/models response - model-store.ts: isCodexCompatibleId() now matches gpt-oss-*, normalizeBackendModel() handles supported_reasoning_levels + effort key - codex-api.ts: getModels() adds ?client_version= (now required by backend) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>597668f -
feat: add force_http11 option for proxies without HTTP/2 support (#56)
Unverified signatureWhen using proxies like Clash/mihomo that don't support HTTP/2, users encounter errors like: "curl: (16) Remote peer returned unexpected data while we expected SETTINGS frame." This commit adds a `force_http11` config option to force HTTP/1.1 protocol in both curl CLI and libcurl FFI transports. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>34fceda
-
fix: strip service_tier from request body + add OpenAI-Beta header + update gpt-5.4 efforts
icebear0828 +1: Claude Opus 4.6- Codex backend rejects service_tier in request body ("Unsupported service_tier: fast"). Desktop app handles Fast mode at app-server level, not via the API. Proxy now strips service_tier before sending to backend. - Add OpenAI-Beta: responses_websockets=2026-02-06 header (matching Desktop binary). - Update gpt-5.4 reasoning efforts: minimal→none, add xhigh (matching backend). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>44b20f4
-
feat: model name suffix system + service_tier + Docker persistence fix (#35)
icebear +2: icebear0828, Claude Opus 4.6Unverified signature* feat: model name suffix system + service_tier (fast mode) support Add a unified model name suffix convention so CLI tools (Claude Code, opencode, etc.) can control reasoning effort and speed mode purely through the model name — no extra API fields needed. Suffix parsing (`parseModelName`): - `-fast` / `-flex` → `service_tier` - `-minimal` / `-low` / `-medium` / `-high` / `-xhigh` → `reasoning_effort` - Known model IDs and aliases are never suffix-parsed - Priority: explicit API field > suffix > model default > config default Backend: - `parseModelName()` in model-store.ts (core suffix resolver) - `service_tier` field in Zod schema + CodexResponsesRequest interface - `default_service_tier` in config schema + default.yaml - All 3 translation layers (OpenAI/Anthropic/Gemini) use parseModelName() Dashboard: - Standard / Fast speed toggle in ApiConfig - AnthropicSetup shows compound model name with suffixes - CodeExamples builds compound model name, suppresses redundant params Exampl…5416ffb
-
fix: collapsible model dropdown, default to gpt-5.4, remove legacy gpt-5
icebear0828 +1: Claude Opus 4.6- Model selector now collapses after selection (click-outside close) - Default model changed from gpt-5.2-codex to gpt-5.4 - Removed deprecated gpt-5, gpt-5-codex, gpt-5-codex-mini Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c52388f
-
feat: add gpt-5.4 + codex-spark support, matrix model selector, extended reasoning efforts
icebear0828 +1: Claude Opus 4.6- Add gpt-5.4 (4 efforts: minimal/low/medium/high) and gpt-5.3-codex-spark (minimal/low) to models.yaml - Update codex alias to gpt-5.4 - Generalize isCodexModelId → isCodexCompatibleId to match bare gpt-X.Y models - Add /v1/models/catalog endpoint returning full CodexModelInfo[] with reasoning efforts - Replace flat model dropdown with family × reasoning effort matrix selector in dashboard - Add reasoning_effort to code examples when non-default effort is selected - Bump client to v26.305.950 (build 863) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7824fcd
-
chore: update client fingerprint to v26.303 / Chromium 144
icebear0828 +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>22b2541
-
chore: deduplicate model selector, auto-extract chromium version, harden update pipeline
icebear0828 +1: Claude Opus 4.6- Remove independent model dropdown from Anthropic SDK Setup; use shared Default Model from API Configuration - Auto-extract Chromium version from Electron via electron-to-chromium in extract-fingerprint - Add 5-min timeout kill timer for full-update child process to prevent permanent lock - Add try/finally in model-fetcher initial timer to prevent refresh loop interruption - Bump Codex Desktop to v26.228.1430 (build 760) - Update poll interval from 30min to 3 days Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8728276
-
chore: bump Codex Desktop to v26.227.1448 (build 747)
icebear08282171187
-
fix: remove corrupted JS from desktop-context.md that broke tool_calls (#13)
icebear0828 +1: Claude Opus 4.6The extractPrompts() end marker matched `; but minified code uses `, — causing ~7KB of garbage JS to leak into every request's instructions field. Truncated desktop-context.md to clean content and fixed the extraction script regex. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>6c4df8c
-
feat: dynamic model list fetching from Codex backend (#9)
icebear +2: icebear0828, Claude Opus 4.6Unverified signature* feat: dynamic model list fetching from Codex backend Replace static-only model loading with a hybrid approach: - Static YAML models as fallback baseline - Background fetcher probes /codex/models and /models endpoints - Backend models merge into catalog (backend wins, YAML fills gaps) - Aliases always from YAML (user-customizable) - New /debug/models endpoint for diagnostics - All fetch errors non-fatal — gracefully falls back to static models Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: PR #9 review issues + complete Codex model catalog - Remove dead _backendModelCount variable from model-store - Fix hot-reload wiping backend models: add triggerImmediateRefresh() in model-fetcher, chain it in reloadAllConfigs() - Fix premature "hot-reloaded" log message ordering in config.ts - Gate raw model sample logging to first fetch only in codex-api - Remove dead re-exports from routes/models.ts - Expand getModels() to probe sentinel/chat-requirements + flatten nested …5f8456f
-
chore: auto-update Codex Desktop v26.224.1209, Chromium 137
icebear0828 +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a35e3ee -
feat: Claude Code quick setup — dashboard card, model aliases & README
icebear0828 +1: Claude Opus 4.6Add one-click env var configuration for Claude Code in the web dashboard with model selector (opus/sonnet/haiku) and copy-all button. Map Claude model names to Codex models in aliases config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2f3712c
-
refactor: remove dead code, unused config, and fix type violations
icebear0828 +1: Claude Opus 4.6- Remove deprecated public/dashboard.html (replaced by Preact frontend) - Remove unused streaming and environment config sections (zero references) - Fix all `any` type violations (CLAUDE.md rule) in yaml-mutate, update-checker, and web components - Extract duplicate OAuth callback setup into shared startOAuthFlow() helper - Fix Vite emptyOutDir to prevent stale build artifact accumulation - Simplify .gitignore to ignore entire public/ build output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>50ae780
-
feat: suppress Codex Desktop directives in model responses
icebear0828 +1: Claude Opus 4.6Keep desktop-context.md in instructions for client fingerprinting, but inject a suppress prompt to prevent the model from outputting desktop-specific directives (::automation-update, ::code-comment, ::archive) and mentioning Codex Desktop features. Controlled by config model.suppress_desktop_directives (default: true). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d817d67 -
feat: add libcurl-impersonate FFI transport for Chrome TLS fingerprint
icebear0828 +1: Claude Opus 4.6Windows lacks curl-impersonate CLI, so use koffi FFI to call libcurl-impersonate DLL directly. Introduces TlsTransport abstraction with auto-selection: FFI on Windows, CLI subprocess on macOS/Linux. All three API protocols (OpenAI/Anthropic/Gemini) verified working. - New: src/tls/transport.ts (interface + singleton factory) - New: src/tls/curl-cli-transport.ts (extracted from codex-api.ts) - New: src/tls/libcurl-ffi-transport.ts (koffi FFI, curl_multi streaming) - New: scripts/poc-libcurl-ffi.ts (POC verification script) - Updated: setup-curl.ts auto-downloads DLL + cacert.pem on Windows - Updated: codex-api.ts uses transport abstraction (~200 lines removed) - Updated: curl-fetch.ts delegates to transport singleton Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3d01305
-
docs: clarify proxy_api_key config, set default to "pwd"
icebear0828 +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1dcf4e8 -
refactor: fingerprint alignment, auto-maintenance, Docker deployment
icebear0828 +1: Claude Opus 4.6Phase 1 - Eliminate fingerprint detection gaps: - Dynamic sec-ch-ua from config chromium_version (aligned with TLS profile) - Inject full fingerprint headers into curl-fetch (OAuth/appcast) - Unify Accept-Encoding based on curl-impersonate detection - Optimize header ordering (single sort pass) Phase 2 - Auto-maintenance: - Structured YAML mutation utility (replace regex hacks) - Auto full-update pipeline on new version detection - Config hot-reload after updates - Exponential backoff token refresh (5 attempts + 10m recovery) - Immediate persistence for critical data (tokens, cf_clearance) - Cookie v2 format with expiry timestamps - Graceful shutdown with 10s timeout protection - Usage counters auto-reset on rate limit window rollover Phase 3 - Docker deployment: - Dockerfile, docker-compose.yml, .dockerignore - Deployment docs in README Fixes: - Extract planType from JWT /auth claim (was looking in /profile) - Backfill missing planType on startup for existing accounts - Show full d…347f81b -
fix: remove fake Claude/Gemini model aliases, use dynamic catalog
icebear0828 +1: Claude Opus 4.6Remove non-existent Claude and Gemini model aliases from models.yaml. Gemini /v1beta/models endpoint now reads from getModelCatalog() instead of a hardcoded list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>87cb62c -
feat: auto proxy detection for curl + tighten dashboard layout
icebear0828 +1: Claude Opus 4.6- Add tls.proxy_url config + HTTPS_PROXY env var support - Inject proxy args into both curlPost() and getUsage() curl calls - Explicitly set Accept-Encoding to gzip,deflate for system curl compat - Include setup-curl.ts postinstall script (was gitignored) - Tighten dashboard font sizes and spacing for compact layout - Rename dashboard1.html → dashboard.html, fix web.ts reference Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d85b21d -
feat: multi-protocol support — Anthropic Messages API + Google Gemini API
icebear0828 +1: Claude Opus 4.6Add two new protocol translation layers so the proxy can serve clients speaking Anthropic (/v1/messages) or Gemini (/v1beta/models/:model:generateContent) in addition to the existing OpenAI /v1/chat/completions endpoint. All three protocols translate to the same upstream Codex Responses API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d0eb8b9 -
feat: desktop context injection, multi-turn sessions, TLS impersonation & auto-update
icebear0828 +1: Claude Opus 4.6- Inject Codex Desktop system prompt into every request for full feature parity - Add previous_response_id for multi-turn conversation continuity - Add curl-impersonate auto-detection with Chrome TLS fingerprint fallback - Fix appcast XML parsing for element-style Sparkle tags - Remove private maintenance scripts from public repo - Add README with setup and usage instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>22a7de1
-
feat: anti-detection hardening — curl TLS, auto-version, jitter & Chromium headers
icebear0828 +1: Claude Opus 4.6- Replace fetch() with curl subprocess for POST /codex/responses to match native TLS fingerprint (Cloudflare evasion) - Auto-apply version updates from Sparkle appcast to config file and runtime - Add timing jitter to all fixed intervals (refresh, retry, backoff, polling) to eliminate automation signatures - Add sec-ch-ua, sec-ch-ua-mobile, sec-ch-ua-platform, sec-fetch-* headers to match Chromium/Electron request fingerprint - Add CookieJar.captureRaw() for Set-Cookie handling from curl responses Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0d2f54c -
feat: native OAuth PKCE login with fixed localhost:1455 redirect
icebear0828 +1: Claude Opus 4.6Implement native OAuth PKCE flow replacing Codex CLI dependency. - Always use http://localhost:1455/auth/callback as redirect_uri to match OpenAI's whitelist for the Codex CLI client_id - Add callback server lifecycle management (close old before starting new) - Handle EADDRINUSE gracefully instead of crashing - Listen on dual-stack (::) so localhost works on both IPv4 and IPv6 - Add account pool, refresh scheduler, and multi-account dashboard UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5dd5107
-
feat: architecture audit — disguise hardening, update automation, robustness
icebear0828 +1: Claude Opus 4.6Disguise hardening (P0): - Enforce HTTP header order from fingerprint.yaml config - Add browser-level headers (Accept-Encoding, Accept-Language) - Add Codex-specific request body fields (tools, previous_response_id) - Protect /debug/fingerprint endpoint (dev/localhost only) Update automation (P0-P1): - Integrate appcast version checker into server process (30-min polling) - Expose update state via /health endpoint - Externalize model catalog to config/models.yaml - Fail fast on critical extraction failures (originator, api_base_url) - Update apply-update.ts to compare models against YAML config Robustness (P0-P1): - Add 5xx retry with exponential backoff in chat route (max 2 retries) - Wrap HTML file reads in try-catch to prevent server crashes - Add config load try-catch with friendly error messages - Log persistence errors instead of silently swallowing - Add retry (1 attempt, 5s delay) for token refresh failures Code hygiene: - Delete leftover WHAM dist files - Mark 6 backward-co…85aec43 -
refactor: remove dead code, extract hardcoded values into config
icebear0828 +1: Claude Opus 4.6- Delete unused AuthManager (src/auth/manager.ts, replaced by AccountPool) - Delete unused ProxyClient + serializePath (src/proxy/client.ts) - Replace hardcoded "Codex Desktop" in chatgpt-oauth.ts with config.client.originator - Extract magic timestamp 1700000000 into MODEL_CREATED_TIMESTAMP constant - Move session TTL and cleanup interval from hardcoded values to config schema - Fix unused `target` variable in models.ts route loop Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ab21b87 -
Initial commit: Codex Proxy with quota API and Cloudflare bypass
icebear0828 +1: Claude Opus 4.6OpenAI-compatible proxy that translates Chat Completions API to ChatGPT's Codex Responses API. Includes multi-account management, official quota querying via curl subprocess (bypasses Cloudflare TLS fingerprinting), per-account cookie jar, and full API documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5d0a52f